Mercurial > emacs
diff lisp/info.el @ 22471:39efe6bebb46
(info-other-window): New function.
| author | Richard M. Stallman <rms@gnu.org> |
|---|---|
| date | Sat, 13 Jun 1998 06:00:00 +0000 |
| parents | fcc3db2d9778 |
| children | 4f99ccb85f3a |
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
