diff options
| author | Richard M. Stallman | 1997-01-05 02:55:09 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-01-05 02:55:09 +0000 |
| commit | 467ff6923479331bb5b4cc5d7c87232d83682984 (patch) | |
| tree | 01b3483b5fddcac3c5b6b5f7e915462cf88fa87e | |
| parent | 6d12711f447dbbff81212b06809b6b0dd5e655d6 (diff) | |
| download | emacs-467ff6923479331bb5b4cc5d7c87232d83682984.tar.gz emacs-467ff6923479331bb5b4cc5d7c87232d83682984.zip | |
(switch-to-buffer-other-frame)
(switch-to-buffer-other-window): New arg NORECORD.
| -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) |