diff options
| author | Chong Yidong | 2011-12-04 09:55:49 +0800 |
|---|---|---|
| committer | Chong Yidong | 2011-12-04 09:55:49 +0800 |
| commit | 527497423d0305e6404776f8032aefa2e5501875 (patch) | |
| tree | f1287e2cf68aad9e68f54d900c0ad01e71217979 /lisp | |
| parent | 5e605a2e528955721fc6f2bd7b9f174c15075fb1 (diff) | |
| download | emacs-527497423d0305e6404776f8032aefa2e5501875.tar.gz emacs-527497423d0305e6404776f8032aefa2e5501875.zip | |
* message.el (message-pop-to-buffer): Partially revert 2011-11-30 change (Bug#10200).
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/gnus/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/gnus/message.el | 5 |
2 files changed, 7 insertions, 3 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index fbfcda57b53..1f2b5c9d1cf 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-12-04 Chong Yidong <cyd@gnu.org> | ||
| 2 | |||
| 3 | * message.el (message-pop-to-buffer): Partially revert 2011-11-30 | ||
| 4 | change (Bug#10200). | ||
| 5 | |||
| 1 | 2011-12-02 Katsumi Yamaoka <yamaoka@jpl.org> | 6 | 2011-12-02 Katsumi Yamaoka <yamaoka@jpl.org> |
| 2 | 7 | ||
| 3 | * compface.el (uncompface): | 8 | * compface.el (uncompface): |
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el index ee9d4992158..d75f85a897a 100644 --- a/lisp/gnus/message.el +++ b/lisp/gnus/message.el | |||
| @@ -6327,7 +6327,6 @@ between beginning of field and beginning of line." | |||
| 6327 | 6327 | ||
| 6328 | (defun message-pop-to-buffer (name &optional switch-function) | 6328 | (defun message-pop-to-buffer (name &optional switch-function) |
| 6329 | "Pop to buffer NAME, and warn if it already exists and is modified." | 6329 | "Pop to buffer NAME, and warn if it already exists and is modified." |
| 6330 | (unless switch-function (setq switch-function #'pop-to-buffer)) | ||
| 6331 | (let ((buffer (get-buffer name))) | 6330 | (let ((buffer (get-buffer name))) |
| 6332 | (if (and buffer | 6331 | (if (and buffer |
| 6333 | (buffer-name buffer)) | 6332 | (buffer-name buffer)) |
| @@ -6337,7 +6336,7 @@ between beginning of field and beginning of line." | |||
| 6337 | (progn | 6336 | (progn |
| 6338 | (gnus-select-frame-set-input-focus (window-frame window)) | 6337 | (gnus-select-frame-set-input-focus (window-frame window)) |
| 6339 | (select-window window)) | 6338 | (select-window window)) |
| 6340 | (funcall switch-function buffer) | 6339 | (funcall (or switch-function #'pop-to-buffer) buffer) |
| 6341 | (set-buffer buffer)) | 6340 | (set-buffer buffer)) |
| 6342 | (when (and (buffer-modified-p) | 6341 | (when (and (buffer-modified-p) |
| 6343 | (not (prog1 | 6342 | (not (prog1 |
| @@ -6345,7 +6344,7 @@ between beginning of field and beginning of line." | |||
| 6345 | "Message already being composed; erase? ") | 6344 | "Message already being composed; erase? ") |
| 6346 | (message nil)))) | 6345 | (message nil)))) |
| 6347 | (error "Message being composed"))) | 6346 | (error "Message being composed"))) |
| 6348 | (funcall switch-function name) | 6347 | (funcall (or switch-function #'switch-to-buffer) name) |
| 6349 | (set-buffer name)) | 6348 | (set-buffer name)) |
| 6350 | (erase-buffer) | 6349 | (erase-buffer) |
| 6351 | (message-mode))) | 6350 | (message-mode))) |