diff options
| author | Stefan Monnier | 2004-04-14 18:39:52 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2004-04-14 18:39:52 +0000 |
| commit | 6070505443d4d95f5d376c6c4cdbedbf19a2b879 (patch) | |
| tree | 7197acc752b1e9fc3ca625a7fd29e3afe467f29a | |
| parent | c7f8d055af063db20890ffca3b4fa862bb7379b2 (diff) | |
| download | emacs-6070505443d4d95f5d376c6c4cdbedbf19a2b879.tar.gz emacs-6070505443d4d95f5d376c6c4cdbedbf19a2b879.zip | |
(info): Always jump to *info*.
| -rw-r--r-- | lisp/info.el | 20 |
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' | |||
| 470 | in all the directories in that path." | 470 | in 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 |