]> git.eshelyaron.com Git - emacs.git/commitdiff
message.el (message-pop-to-buffer): Use pop-to-buffer instead of pop-to-buffer-same...
authorKatsumi Yamaoka <yamaoka@jpl.org>
Wed, 7 Dec 2011 06:07:53 +0000 (06:07 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Wed, 7 Dec 2011 06:07:53 +0000 (06:07 +0000)
lisp/gnus/ChangeLog
lisp/gnus/message.el

index 1f46887f00f313b472919248cfbb6cfe7062611c..bdc7313e57aeaf6442cf71d08c7f483533fe490e 100644 (file)
@@ -1,3 +1,8 @@
+2011-12-07  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * message.el (message-pop-to-buffer): Use pop-to-buffer instead of
+       pop-to-buffer-same-window for old Emacsen.
+
 2011-12-04  Chong Yidong  <cyd@gnu.org>
 
        * message.el (message-pop-to-buffer): Partially revert 2011-11-30
index 8ecbd22fc0dde8b8f207ecc5e057d70f47de6f7f..b127160dfc42a585dc7fc8796622fb59614002fe 100644 (file)
@@ -6344,7 +6344,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)))