aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/info-look.el26
1 files changed, 12 insertions, 14 deletions
diff --git a/lisp/info-look.el b/lisp/info-look.el
index d1d5661fb8a..44017042776 100644
--- a/lisp/info-look.el
+++ b/lisp/info-look.el
@@ -454,12 +454,17 @@ The default file name is the one found at point."
454 (while (re-search-forward "\n\\* \\([^:\t\n]*\\):" nil t) 454 (while (re-search-forward "\n\\* \\([^:\t\n]*\\):" nil t)
455 (setq entry (match-string 1) 455 (setq entry (match-string 1)
456 item (funcall trans entry)) 456 item (funcall trans entry))
457 (and (info-lookup->ignore-case topic mode) 457 ;; `trans' can return nil if the regexp doesn't match.
458 (setq item (downcase item))) 458 (when (and item
459 (and (string-equal entry item) 459 ;; Sometimes there's more than one Menu:
460 (setq entry nil)) 460 (not (string= entry "Menu")))
461 (or (assoc item result) 461 (and (info-lookup->ignore-case topic mode)
462 (setq result (cons (cons item entry) result)))))) 462 (setq item (downcase item)))
463 (and (string-equal entry item)
464 (setq entry nil))
465 (and (or (assoc item result)
466 (setq result (cons (cons item entry)
467 result))))))))
463 (error nil)))) 468 (error nil))))
464 (message "Processing Info node `%s'...done" node) 469 (message "Processing Info node `%s'...done" node)
465 (setq doc-spec (cdr doc-spec))) 470 (setq doc-spec (cdr doc-spec)))
@@ -712,14 +717,6 @@ Return nil if there is nothing appropriate."
712 "`" "\\({[^}]*}\\)?'"))) 717 "`" "\\({[^}]*}\\)?'")))
713 718
714(info-lookup-maybe-add-help 719(info-lookup-maybe-add-help
715 :mode 'scheme-mode
716 :regexp ;; "\\(\\sw\\|\\s_\\)+"
717 "[^()' \t\n]+"
718 :ignore-case t
719 ;; Aubrey Jaffer's rendition from <URL:ftp://ftp-swiss.ai.mit.edu/pub/scm>
720 :doc-spec '(("(r5rs)Index")))
721
722(info-lookup-maybe-add-help
723 :mode 'emacs-lisp-mode 720 :mode 'emacs-lisp-mode
724 :regexp "[^()' \t\n]+" 721 :regexp "[^()' \t\n]+"
725 :doc-spec '(("(emacs)Command Index") 722 :doc-spec '(("(emacs)Command Index")
@@ -749,6 +746,7 @@ Return nil if there is nothing appropriate."
749 :mode 'scheme-mode 746 :mode 'scheme-mode
750 :regexp "[^()' \t\n]+" 747 :regexp "[^()' \t\n]+"
751 :ignore-case t 748 :ignore-case t
749 ;; Aubrey Jaffer's rendition from <URL:ftp://ftp-swiss.ai.mit.edu/pub/scm>
752 :doc-spec '(("(r5rs)Index" nil 750 :doc-spec '(("(r5rs)Index" nil
753 "^[ \t]+- [^:]+:[ \t]*" "\\b"))) 751 "^[ \t]+- [^:]+:[ \t]*" "\\b")))
754 752