[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
address@hidden: Re: RMAIL, summary/message focus switching with `h' butt
From: |
Richard Stallman |
Subject: |
address@hidden: Re: RMAIL, summary/message focus switching with `h' button] |
Date: |
Thu, 13 Feb 2003 14:27:29 -0500 |
I have doubts about whether this change is desirable, so please don't
install it.
------- Start of forwarded message -------
Date: Thu, 13 Feb 2003 07:24:18 +0100 (CET)
From: Alexander Pohoyda <address@hidden>
To: Thien-Thi Nguyen <address@hidden>
In-reply-to: <address@hidden> (message from Thien-Thi Nguyen on 12
Feb 2003 19:01:54 -0500)
cc: address@hidden
Subject: Re: RMAIL, summary/message focus switching with `h' button
Sender: address@hidden
> 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
<address@hidden>
_______________________________________________
Bug-gnu-emacs mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/bug-gnu-emacs
------- End of forwarded message -------
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- address@hidden: Re: RMAIL, summary/message focus switching with `h' button],
Richard Stallman <=