diff options
author | Richard M. Stallman <rms@gnu.org> | 1998-06-13 06:00:00 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1998-06-13 06:00:00 +0000 |
commit | 90882cf429ea751624c8fbdc4428e05797425ab9 (patch) | |
tree | 2dad15fe464357e817cee9ddce6b116a16ac6223 | |
parent | 0e3e8ecc00b7641402eccaa940cd1a35d042f8b9 (diff) | |
download | emacs-90882cf429ea751624c8fbdc4428e05797425ab9.tar.gz |
(info-other-window): New function.
-rw-r--r-- | lisp/info.el | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lisp/info.el b/lisp/info.el index 244ab236265..a73780a16c4 100644 --- a/lisp/info.el +++ b/lisp/info.el @@ -274,6 +274,14 @@ Do the right thing if the file has been compressed or zipped." (call-process-region (point-min) (point-max) decoder t t))) (insert-file-contents fullname visit)))) +;;;###autoload +(defun info-other-window (&optional file) + "Like `info' but show the Info buffer in another window." + (interactive (if current-prefix-arg + (list (read-file-name "Info file name: " nil nil t)))) + (let (same-window-buffer-names) + (info file))) + ;;;###autoload (add-hook 'same-window-buffer-names "*info*") ;;;###autoload |