message.el (message-bury): Make `buffer' optional;
authorThierry Volpiatto <thierry.volpiatto@gmail.com>
Sat, 4 May 2013 22:42:46 +0000 (22:42 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Sat, 4 May 2013 22:42:46 +0000 (22:42 +0000)
 (message-send-and-exit): Don't pass `buf' so as to hide the buffer
 (bug#14085)

lisp/ChangeLog
lisp/message.el

index 2ce4cb6..bf55e5a 100644 (file)
@@ -1,3 +1,9 @@
+2013-05-04  Thierry Volpiatto  <thierry.volpiatto@gmail.com>
+
+       * message.el (message-bury): Make `buffer' optional.
+       (message-send-and-exit): Don't pass `buf' so as to hide the buffer
+       (bug#14085).
+
 2013-05-04  Andrew Cohen  <cohen@bu.edu>
 
        * gnus-sum.el (gnus-read-header): Ensure groups are prefixed when
index d87879b..fbc7868 100644 (file)
@@ -4091,7 +4091,7 @@ It should typically alter the sending method in some way or other."
        (actions message-exit-actions))
     (when (and (message-send arg)
               (buffer-name buf))
-      (message-bury buf)
+      (message-bury)
       (if message-kill-buffer-on-exit
          (kill-buffer buf))
       (message-do-actions actions)
@@ -4139,7 +4139,7 @@ Instead, just auto-save the buffer and then bury it."
          (message-disassociate-draft)))
       (message-do-actions actions))))
 
-(defun message-bury (buffer)
+(defun message-bury (&optional buffer)
   "Bury this mail BUFFER."
   (if message-return-action
       (progn