bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RMAIL, summary/message focus switching with `h' button


From: Alexander Pohoyda
Subject: RMAIL, summary/message focus switching with `h' button
Date: Wed, 12 Feb 2003 22:13:14 +0100 (CET)

Hi,

As a user of Gnus, I'm used to switch the focus (switch-to-buffer)
typing `h'. This is fixed with the following patch.


--- rmailsum.el.orig    Sun Jan  5 23:01:28 2003
+++ rmailsum.el Sun Jan  5 23:40:13 2003
@@ -66,7 +66,13 @@
 (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)
+    (if (eq major-mode 'rmail-summary-mode)
+       (setq was-in-summary t))
+    (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>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]