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

This commit is contained in:
Katsumi Yamaoka 2011-12-07 06:07:53 +00:00
parent 7efa6272f0
commit 1ea1c2fa5f
2 changed files with 10 additions and 1 deletions

View 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

View 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)))