Mercurial > emacs
changeset 22471:39efe6bebb46
(info-other-window): New function.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 13 Jun 1998 06:00:00 +0000 |
parents | eec1f722bded |
children | 7d99675ff55f |
files | lisp/info.el |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/info.el Sat Jun 13 05:59:46 1998 +0000 +++ b/lisp/info.el Sat Jun 13 06:00:00 1998 +0000 @@ -274,6 +274,14 @@ (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