diff options
| author | Richard M. Stallman | 2002-07-01 07:48:12 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2002-07-01 07:48:12 +0000 |
| commit | aebd1760c029fdbeb0ceeb0f48a939226908cc63 (patch) | |
| tree | 47d56d43d4e6d9bf33733a1d63d8067c026185cd | |
| parent | 4855897e98686e83242570f3076a3f2b4da77b0c (diff) | |
| download | emacs-aebd1760c029fdbeb0ceeb0f48a939226908cc63.tar.gz emacs-aebd1760c029fdbeb0ceeb0f48a939226908cc63.zip | |
(Info-index): Get immediate error if used in `dir'.
| -rw-r--r-- | lisp/info.el | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/info.el b/lisp/info.el index a12602afb3e..6be518b0147 100644 --- a/lisp/info.el +++ b/lisp/info.el | |||
| @@ -1854,11 +1854,15 @@ Give a blank topic name to go to the Index node itself." | |||
| 1854 | (list | 1854 | (list |
| 1855 | (let ((Info-complete-menu-buffer (clone-buffer)) | 1855 | (let ((Info-complete-menu-buffer (clone-buffer)) |
| 1856 | (Info-complete-next-re "\\<Index\\>")) | 1856 | (Info-complete-next-re "\\<Index\\>")) |
| 1857 | (if (equal Info-current-file "dir") | ||
| 1858 | (error "The Info directory node has no index; use m to select a manual")) | ||
| 1857 | (unwind-protect | 1859 | (unwind-protect |
| 1858 | (with-current-buffer Info-complete-menu-buffer | 1860 | (with-current-buffer Info-complete-menu-buffer |
| 1859 | (Info-goto-index) | 1861 | (Info-goto-index) |
| 1860 | (completing-read "Index topic: " 'Info-complete-menu-item)) | 1862 | (completing-read "Index topic: " 'Info-complete-menu-item)) |
| 1861 | (kill-buffer Info-complete-menu-buffer))))) | 1863 | (kill-buffer Info-complete-menu-buffer))))) |
| 1864 | (if (equal Info-current-file "dir") | ||
| 1865 | (error "The Info directory node has no index; use m to select a manual")) | ||
| 1862 | (let ((orignode Info-current-node) | 1866 | (let ((orignode Info-current-node) |
| 1863 | (rnode nil) | 1867 | (rnode nil) |
| 1864 | (pattern (format "\n\\* +\\([^\n:]*%s[^\n:]*\\):[ \t]*\\([^.\n]*\\)\\.[ \t]*\\([0-9]*\\)" | 1868 | (pattern (format "\n\\* +\\([^\n:]*%s[^\n:]*\\):[ \t]*\\([^.\n]*\\)\\.[ \t]*\\([0-9]*\\)" |