diff options
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/files.el | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/lisp/files.el b/lisp/files.el index f62e7d9aa0c..3d605384344 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -489,17 +489,21 @@ unlike `file-truename'." | |||
| 489 | (setq count (1- count))) | 489 | (setq count (1- count))) |
| 490 | newname)) | 490 | newname)) |
| 491 | 491 | ||
| 492 | (defun switch-to-buffer-other-window (buffer) | 492 | (defun switch-to-buffer-other-window (buffer &optional norecord) |
| 493 | "Select buffer BUFFER in another window." | 493 | "Select buffer BUFFER in another window. |
| 494 | Optional second arg NORECORD non-nil means | ||
| 495 | do not put this buffer at the front of the list of recently selected ones." | ||
| 494 | (interactive "BSwitch to buffer in other window: ") | 496 | (interactive "BSwitch to buffer in other window: ") |
| 495 | (let ((pop-up-windows t)) | 497 | (let ((pop-up-windows t)) |
| 496 | (pop-to-buffer buffer t))) | 498 | (pop-to-buffer buffer t norecord))) |
| 497 | 499 | ||
| 498 | (defun switch-to-buffer-other-frame (buffer) | 500 | (defun switch-to-buffer-other-frame (buffer &optional norecord) |
| 499 | "Switch to buffer BUFFER in another frame." | 501 | "Switch to buffer BUFFER in another frame. |
| 502 | Optional second arg NORECORD non-nil means | ||
| 503 | do not put this buffer at the front of the list of recently selected ones." | ||
| 500 | (interactive "BSwitch to buffer in other frame: ") | 504 | (interactive "BSwitch to buffer in other frame: ") |
| 501 | (let ((pop-up-frames t)) | 505 | (let ((pop-up-frames t)) |
| 502 | (pop-to-buffer buffer t) | 506 | (pop-to-buffer buffer t norecord) |
| 503 | (raise-frame (window-frame (selected-window))))) | 507 | (raise-frame (window-frame (selected-window))))) |
| 504 | 508 | ||
| 505 | (defun find-file (filename) | 509 | (defun find-file (filename) |