[gnus git] branch master updated: n0-17-419-gd1732c5 =1= message.el (message-pop-to-buffer): Use pop-to-buffer instead of pop-to-buffer-same-window for old Emacsen.

Katsumi Yamaoka <[email protected]>
Newsgroups gmane.emacs.gnus.cvs
Message-ID <[email protected]>
       via  d1732c5a92e1fbbeb24c560140ba15ce666695be (commit)
      from  1d2202caaa05cd0afb7cf75314f263ee1e2ae574 (commit)


- Log -----------------------------------------------------------------
commit d1732c5a92e1fbbeb24c560140ba15ce666695be
Author: Katsumi Yamaoka <[email protected]>
Date:   Wed Dec 7 06:07:58 2011 +0000

    message.el (message-pop-to-buffer): Use pop-to-buffer instead of pop-to-buffer-same-window for old Emacsen.

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 9d570f2..d8e264a 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2011-12-07  Katsumi Yamaoka  <[email protected]>
+
+	* message.el (message-pop-to-buffer): Use pop-to-buffer instead of
+	pop-to-buffer-same-window for old Emacsen.
+
 2011-12-06  Juanma Barranquero  <[email protected]>
 
 	* gnus-sum.el (gnus-summary-make-tool-bar): Fix typo.
diff --git a/lisp/message.el b/lisp/message.el
index ecb6dbd..d87f7b3 100644
--- a/lisp/message.el
+++ b/lisp/message.el
@@ -6388,7 +6388,11 @@ between beginning of field and beginning of line."
 			       "Message already being composed; erase? ")
 			    (message nil))))
 	    (error "Message being composed")))
-      (funcall (or switch-function #'pop-to-buffer-same-window) name)
+      (funcall (or switch-function
+		   (if (fboundp #'pop-to-buffer-same-window)
+		       #'pop-to-buffer-same-window
+		     #'pop-to-buffer))
+	       name)
       (set-buffer name))
     (erase-buffer)
     (message-mode)))

-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.

Summary of changes:
 lisp/ChangeLog  |    5 +++++
 lisp/message.el |    6 +++++-
 2 files changed, 10 insertions(+), 1 deletions(-)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".

The branch, master has been updated


hooks/post-receive
-- 
Gnus Project
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.