From: Sam Steingold Date: Mon, 18 Mar 2013 17:25:15 +0000 (-0400) Subject: * lisp/gnus/message.el (message-bury): Minor cleanup. X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~2026^2~536 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a22b4ca1402f60eca2d86f92e44bde4fb03bbd89;p=emacs.git * lisp/gnus/message.el (message-bury): Minor cleanup. --- diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 870164023d5..c0cf9472dd8 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog @@ -1,3 +1,7 @@ +2013-03-18 Sam Steingold + + * message.el (message-bury): Minor cleanup. + 2013-03-06 Katsumi Yamaoka * nndir.el (nndir-request-list): Remove 2nd argument passed to diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el index a6638097b47..2b2a0a94413 100644 --- a/lisp/gnus/message.el +++ b/lisp/gnus/message.el @@ -4097,11 +4097,9 @@ Instead, just auto-save the buffer and then bury it." (defun message-bury (buffer) "Bury this mail BUFFER." - (if message-return-action - (progn - (bury-buffer buffer) - (apply (car message-return-action) (cdr message-return-action))) - (with-current-buffer buffer (bury-buffer)))) + (bury-buffer buffer) + (when message-return-action + (apply (car message-return-action) (cdr message-return-action)))) (defun message-send (&optional arg) "Send the message in the current buffer.