]> code.delx.au - gnu-emacs/commitdiff
*** empty log message ***
authorRichard M. Stallman <rms@gnu.org>
Mon, 22 Dec 2008 19:58:55 +0000 (19:58 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 22 Dec 2008 19:58:55 +0000 (19:58 +0000)
etc/NEWS
lisp/mail/ChangeLog.pmail

index eaeea4195dc469ba5f1e22a807755f0593a0014a..333cadecb527f162c326dd7bd60e0aba3f4c3b51 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1733,6 +1733,9 @@ uses the minibuffer-local-shell-command-map for that.
 *** `buffer-swap-text' swaps text between two buffers.  This can be
 useful for modes such as tar-mode, archive-mode, RMAIL.
 
+*** New variable `buffer-swapped-with' lets the modes that use
+`buffer-swap-text' arrange to save the file from the proper buffer.
+
 +++
 *** `read-color' reads a color name using the minibuffer.
 
index d5b0a675e62ffc5b0bb924b2a9688422c04811da..38187d3307e5784a643b45f01cc67d0446d90e09 100644 (file)
@@ -1,3 +1,22 @@
+2008-12-22  Richard M Stallman  <rms@gnu.org>
+
+       * pmailout.el (pmail-output): Use pmail-buffers-swapped-p as function.
+
+       * pmail.el (pmail-swap-buffers-maybe): Variable deleted.
+       All uses call the function instead.
+
+       * pmail.el (pmail-save): Function deleted.
+       (pmail-mode-map): Don't bind C-x C-s.
+       (pmail-mode-1): Don't set up write-region-annotate-functions.
+       (pmail-write-region-annotate): Function deleted.
+       (pmail-change-major-mode-hook): Set buffer-swapped-with.
+       (pmail-use-collection-buffer): Likewise.
+       (pmail-show-message): Likewise.
+
+       * pmail.el (pmail-swap-buffers-maybe): Go to pmail-buffer before
+       testing anything.
+       (pmail): Call pmail-swap-buffers-maybe only if already in Pmail mode.
+
 2008-12-22  Chong Yidong  <cyd@stupidchicken.com>
 
        * pmail.el (pmail-save): New function.