diff options
| author | Chong Yidong | 2011-09-01 13:04:30 -0400 |
|---|---|---|
| committer | Chong Yidong | 2011-09-01 13:04:30 -0400 |
| commit | 437014c8adcd604bdec350015d89eab1d7c12ec2 (patch) | |
| tree | 0f99a4185c3a4be031f3ee75af62d88cea64aa66 /lisp/view.el | |
| parent | 6ed17f119f52dee3199a3efbdf8a92b93f5f8fd0 (diff) | |
| download | emacs-437014c8adcd604bdec350015d89eab1d7c12ec2.tar.gz emacs-437014c8adcd604bdec350015d89eab1d7c12ec2.zip | |
Fix display-buffer interactive spec, and fixes for pop-to-buffer*.
* lisp/window.el (display-buffer): Restore interactive spec.
(display-buffer-same-window, display-buffer-other-window): New
functions.
(pop-to-buffer-1): New function. Use the above.
(pop-to-buffer, pop-to-buffer-same-window): Use it.
(pop-to-buffer-other-window, pop-to-buffer-other-frame): Deleted.
* lisp/view.el (view-buffer-other-window, view-buffer-other-frame):
Just use pop-to-buffer.
Diffstat (limited to 'lisp/view.el')
| -rw-r--r-- | lisp/view.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/view.el b/lisp/view.el index be011d217fc..96fecd9df1c 100644 --- a/lisp/view.el +++ b/lisp/view.el | |||
| @@ -338,7 +338,8 @@ Optional argument EXIT-ACTION is either nil or a function with buffer as | |||
| 338 | argument. This function is called when finished viewing buffer. Use | 338 | argument. This function is called when finished viewing buffer. Use |
| 339 | this argument instead of explicitly setting `view-exit-action'." | 339 | this argument instead of explicitly setting `view-exit-action'." |
| 340 | (interactive "bIn other window view buffer:\nP") | 340 | (interactive "bIn other window view buffer:\nP") |
| 341 | (pop-to-buffer-other-window buffer) | 341 | (let ((pop-up-windows t)) |
| 342 | (pop-to-buffer buffer t)) | ||
| 342 | (view-mode-enter nil exit-action)) | 343 | (view-mode-enter nil exit-action)) |
| 343 | 344 | ||
| 344 | ;;;###autoload | 345 | ;;;###autoload |
| @@ -358,7 +359,8 @@ Optional argument EXIT-ACTION is either nil or a function with buffer as | |||
| 358 | argument. This function is called when finished viewing buffer. Use | 359 | argument. This function is called when finished viewing buffer. Use |
| 359 | this argument instead of explicitly setting `view-exit-action'." | 360 | this argument instead of explicitly setting `view-exit-action'." |
| 360 | (interactive "bView buffer in other frame: \nP") | 361 | (interactive "bView buffer in other frame: \nP") |
| 361 | (pop-to-buffer-other-frame buffer) | 362 | (let ((pop-up-frames t)) |
| 363 | (pop-to-buffer buffer t)) | ||
| 362 | (view-mode-enter nil exit-action)) | 364 | (view-mode-enter nil exit-action)) |
| 363 | 365 | ||
| 364 | ;;;###autoload | 366 | ;;;###autoload |