diff options
| author | Kim F. Storm | 2006-12-07 16:05:56 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2006-12-07 16:05:56 +0000 |
| commit | 03e8d958c512a43e802c19fffcd6cf2eacd9e58e (patch) | |
| tree | dc1c17cddf5b7177167bd9d1a86e6b3c5c8d0b87 | |
| parent | 48b33882d25e81d1b5516fe580415c41b33e0cf3 (diff) | |
| download | emacs-03e8d958c512a43e802c19fffcd6cf2eacd9e58e.tar.gz emacs-03e8d958c512a43e802c19fffcd6cf2eacd9e58e.zip | |
(Info-index): Strip leading colon from topic.
| -rw-r--r-- | lisp/info.el | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lisp/info.el b/lisp/info.el index 05c07220892..2318f3240dd 100644 --- a/lisp/info.el +++ b/lisp/info.el | |||
| @@ -2805,6 +2805,11 @@ Give an empty topic name to go to the Index node itself." | |||
| 2805 | (kill-buffer Info-complete-menu-buffer))))) | 2805 | (kill-buffer Info-complete-menu-buffer))))) |
| 2806 | (if (equal Info-current-file "dir") | 2806 | (if (equal Info-current-file "dir") |
| 2807 | (error "The Info directory node has no index; use m to select a manual")) | 2807 | (error "The Info directory node has no index; use m to select a manual")) |
| 2808 | ;; Strip leading colon in topic; index format does not allow them. | ||
| 2809 | (if (and (stringp topic) | ||
| 2810 | (> (length topic) 0) | ||
| 2811 | (= (aref topic 0) ?:)) | ||
| 2812 | (setq topic (substring topic 1))) | ||
| 2808 | (let ((orignode Info-current-node) | 2813 | (let ((orignode Info-current-node) |
| 2809 | (pattern (format "\n\\* +\\([^\n]*%s[^\n]*\\):[ \t]+\\([^\n]*\\)\\.\\(?:[ \t\n]*(line +\\([0-9]+\\))\\)?" | 2814 | (pattern (format "\n\\* +\\([^\n]*%s[^\n]*\\):[ \t]+\\([^\n]*\\)\\.\\(?:[ \t\n]*(line +\\([0-9]+\\))\\)?" |
| 2810 | (regexp-quote topic))) | 2815 | (regexp-quote topic))) |