[Top][All Lists]

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

[Emacs-diffs] Changes to emacs/man/mh-e.texi

From: Bill Wohler
Subject: [Emacs-diffs] Changes to emacs/man/mh-e.texi
Date: Tue, 18 Apr 2006 00:03:19 +0000

Index: emacs/man/mh-e.texi
diff -u emacs/man/mh-e.texi:1.34 emacs/man/mh-e.texi:1.35
--- emacs/man/mh-e.texi:1.34    Sun Apr  2 23:05:51 2006
+++ emacs/man/mh-e.texi Tue Apr 18 00:03:18 2006
@@ -11,8 +11,8 @@
 @set VERSION 7.93
 @c Edition of the manual. It is either empty for the first edition or
 @c has the form ", nth Edition" (without the quotes).
address@hidden EDITION , 6th Edition
address@hidden UPDATED 2006-04-02
address@hidden EDITION , 7th Edition
address@hidden UPDATED 2006-04-17
 @set UPDATE-MONTH April, 2006
 @c Other variables.
@@ -3724,33 +3724,36 @@
 @findex mh-execute-commands
 @kindex q
 @vindex mh-before-quit-hook
address@hidden mh-before-quit-hook, example
 @vindex mh-quit-hook
address@hidden mh-quit-hook, example
 The two hooks @code{mh-before-quit-hook} and @code{mh-quit-hook} are
 called by @kbd{q}. The former one is called before the quit occurs, so
 you might use it to perform any MH-E operations; you could perform
 some query and abort the quit or call @code{mh-execute-commands}, for
 example. The latter is not run in an MH-E context, so you might use it
-to modify the window setup. For example, if the window configuration
-was saved as in the example in @ref{Miscellaneous Commands and
-Options}, you would also want to set @code{mh-quit-hook} to the
address@hidden XXX Replace this with my example for killing the mail buffers.
address@hidden mh-quit-hook, example
+to modify the window setup. If you find that @kbd{q} buries a lot of
+buffers that you would rather remove, you can use both
address@hidden and @code{mh-quit-hook} to accomplish that.
+(defvar my-mh-folder-buffer-to-delete nil
+  "Folder buffer that is being quit.")
+(defun my-mh-before-quit-hook ()
+  "Save folder buffer that is to be deleted."
+  (setq my-mh-folder-buffer-to-delete (current-buffer)))
 (defun my-mh-quit-hook ()
-  "Clear window configuration variables as the MH window is gone."
-  (setq my-mh-screen-saved nil)
-  (setq my-mh-screen nil)
-  (if my-normal-screen
-      (set-window-configuration my-normal-screen))
-  (setq my-normal-screen nil))
+  "Kill folder buffer rather than just bury it."
+  (set-buffer my-mh-folder-buffer-to-delete)
+  (if (get-buffer mh-show-buffer)
+      (kill-buffer mh-show-buffer))
+  (kill-buffer (current-buffer)))
address@hidden up window setup in mh-quit-hook}
address@hidden MH-Folder buffer instead of burying it}
 @end group
 @end smalllisp

reply via email to

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