[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RMAIL, summary/message focus switching with `h' button
From: |
Alexander Pohoyda |
Subject: |
Re: RMAIL, summary/message focus switching with `h' button |
Date: |
Thu, 13 Feb 2003 07:24:18 +0100 (CET) |
> you can tighten the binding construct to something like:
>
> (let ((was-in-summary (eq major-mode 'rmail-summary-mode)))
> ...)
Indeed. Thanks a lot! Here comes a new version:
--- rmailsum.el.orig Sun Jan 5 23:01:28 2003
+++ rmailsum.el Sun Jan 5 23:40:13 2003
@@ -66,7 +66,10 @@
(defun rmail-summary ()
"Display a summary of all messages, one line per message."
(interactive)
- (rmail-new-summary "All" '(rmail-summary) nil))
+ (let ((was-in-summary) (eq major-mode 'rmail-summary-mode))
+ (rmail-new-summary "All" '(rmail-summary) nil)
+ ;; Swap the focus.
+ (if was-in-summary (other-window 1))))
;;;###autoload
(defun rmail-summary-by-labels (labels)
---
--
Alexander Pohoyda
<alexander.pohoyda@gmx.net>
- RMAIL, summary/message focus switching with `h' button, Alexander Pohoyda, 2003/02/12
- Re: RMAIL, summary/message focus switching with `h' button, Thien-Thi Nguyen, 2003/02/12
- Re: RMAIL, summary/message focus switching with `h' button,
Alexander Pohoyda <=
- Re: RMAIL, summary/message focus switching with `h' button, Andreas Schwab, 2003/02/13
- Re: RMAIL, summary/message focus switching with `h' button, Alexander Pohoyda, 2003/02/13
- Re: RMAIL, summary/message focus switching with `h' button, Andreas Schwab, 2003/02/13
- Re: RMAIL, summary/message focus switching with `h' button, Alexander Pohoyda, 2003/02/13