aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2004-04-14 18:39:52 +0000
committerStefan Monnier2004-04-14 18:39:52 +0000
commit6070505443d4d95f5d376c6c4cdbedbf19a2b879 (patch)
tree7197acc752b1e9fc3ca625a7fd29e3afe467f29a
parentc7f8d055af063db20890ffca3b4fa862bb7379b2 (diff)
downloademacs-6070505443d4d95f5d376c6c4cdbedbf19a2b879.tar.gz
emacs-6070505443d4d95f5d376c6c4cdbedbf19a2b879.zip
(info): Always jump to *info*.
-rw-r--r--lisp/info.el20
1 files changed, 9 insertions, 11 deletions
diff --git a/lisp/info.el b/lisp/info.el
index 96445a18e28..c67a1a5f0c7 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -470,18 +470,16 @@ The top-level Info directory is made by combining all the files named `dir'
470in all the directories in that path." 470in all the directories in that path."
471 (interactive (if current-prefix-arg 471 (interactive (if current-prefix-arg
472 (list (read-file-name "Info file name: " nil nil t)))) 472 (list (read-file-name "Info file name: " nil nil t))))
473 (pop-to-buffer "*info*")
473 (if file 474 (if file
474 (progn 475 ;; If argument already contains parentheses, don't add another set
475 (pop-to-buffer "*info*") 476 ;; since the argument will then be parsed improperly. This also
476 ;; If argument already contains parentheses, don't add another set 477 ;; has the added benefit of allowing node names to be included
477 ;; since the argument will then be parsed improperly. This also 478 ;; following the parenthesized filename.
478 ;; has the added benefit of allowing node names to be included 479 (if (and (stringp file) (string-match "(.*)" file))
479 ;; following the parenthesized filename. 480 (Info-goto-node file)
480 (if (and (stringp file) (string-match "(.*)" file)) 481 (Info-goto-node (concat "(" file ")")))
481 (Info-goto-node file) 482 (if (zerop (buffer-size))
482 (Info-goto-node (concat "(" file ")"))))
483 (if (get-buffer "*info*")
484 (pop-to-buffer "*info*")
485 (Info-directory)))) 483 (Info-directory))))
486 484
487;;;###autoload 485;;;###autoload