mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-27 10:54:40 +00:00
(info): Always jump to *info*.
This commit is contained in:
parent
c7f8d055af
commit
6070505443
20
lisp/info.el
20
lisp/info.el
@ -470,18 +470,16 @@ The top-level Info directory is made by combining all the files named `dir'
|
||||
in all the directories in that path."
|
||||
(interactive (if current-prefix-arg
|
||||
(list (read-file-name "Info file name: " nil nil t))))
|
||||
(pop-to-buffer "*info*")
|
||||
(if file
|
||||
(progn
|
||||
(pop-to-buffer "*info*")
|
||||
;; If argument already contains parentheses, don't add another set
|
||||
;; since the argument will then be parsed improperly. This also
|
||||
;; has the added benefit of allowing node names to be included
|
||||
;; following the parenthesized filename.
|
||||
(if (and (stringp file) (string-match "(.*)" file))
|
||||
(Info-goto-node file)
|
||||
(Info-goto-node (concat "(" file ")"))))
|
||||
(if (get-buffer "*info*")
|
||||
(pop-to-buffer "*info*")
|
||||
;; If argument already contains parentheses, don't add another set
|
||||
;; since the argument will then be parsed improperly. This also
|
||||
;; has the added benefit of allowing node names to be included
|
||||
;; following the parenthesized filename.
|
||||
(if (and (stringp file) (string-match "(.*)" file))
|
||||
(Info-goto-node file)
|
||||
(Info-goto-node (concat "(" file ")")))
|
||||
(if (zerop (buffer-size))
|
||||
(Info-directory))))
|
||||
|
||||
;;;###autoload
|
||||
|
Loading…
Reference in New Issue
Block a user