aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1998-06-13 06:00:00 +0000
committerRichard M. Stallman1998-06-13 06:00:00 +0000
commita6e4564e8e69e304b06c2a456bd27c8446a48649 (patch)
treefdc36c50e74b46b2ead934f72fa47646dcbb3cf2
parent4b08b7ed056226e8b49a7f2ec2233d0492d933fe (diff)
downloademacs-a6e4564e8e69e304b06c2a456bd27c8446a48649.tar.gz
emacs-a6e4564e8e69e304b06c2a456bd27c8446a48649.zip
(info-other-window): New function.
-rw-r--r--lisp/info.el8
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."
274 (call-process-region (point-min) (point-max) decoder t t))) 274 (call-process-region (point-min) (point-max) decoder t t)))
275 (insert-file-contents fullname visit)))) 275 (insert-file-contents fullname visit))))
276 276
277;;;###autoload
278(defun info-other-window (&optional file)
279 "Like `info' but show the Info buffer in another window."
280 (interactive (if current-prefix-arg
281 (list (read-file-name "Info file name: " nil nil t))))
282 (let (same-window-buffer-names)
283 (info file)))
284
277;;;###autoload (add-hook 'same-window-buffer-names "*info*") 285;;;###autoload (add-hook 'same-window-buffer-names "*info*")
278 286
279;;;###autoload 287;;;###autoload