From: Richard M. Stallman Date: Sat, 13 Jun 1998 06:00:00 +0000 (+0000) Subject: (info-other-window): New function. X-Git-Tag: emacs-20.3~608 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a6e4564e8e69e304b06c2a456bd27c8446a48649;p=emacs.git (info-other-window): New function. --- 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