comparison lisp/info-look.el @ 50451:fedb9513a26e

(emacs-lisp-mode): Add prefix/suffix matching regexps.
author Juanma Barranquero <lekktu@gmail.com>
date Sat, 05 Apr 2003 12:58:02 +0000
parents 41c0eed9d556
children a7b2bce87058
comparison
equal deleted inserted replaced
50450:33c5c2bf40c2 50451:fedb9513a26e
754 "`" "\\({[^}]*}\\)?'"))) 754 "`" "\\({[^}]*}\\)?'")))
755 755
756 (info-lookup-maybe-add-help 756 (info-lookup-maybe-add-help
757 :mode 'emacs-lisp-mode 757 :mode 'emacs-lisp-mode
758 :regexp "[^][()'\" \t\n]+" 758 :regexp "[^][()'\" \t\n]+"
759 :doc-spec '(("(emacs)Command Index") 759 :doc-spec '(;; Commands with key sequences appear in nodes as `foo' and
760 ("(emacs)Variable Index") 760 ;; those without as `M-x foo'.
761 ("(elisp)Index"))) 761 ("(emacs)Command Index" nil "`\\(M-x[ \t\n]+\\)?" "'")
762 ;; Variables normally appear in nodes as just `foo'.
763 ("(emacs)Variable Index" nil "`" "'")
764 ;; Almost all functions, variables, etc appear in nodes as
765 ;; " - Function: foo" etc. A small number of aliases and
766 ;; symbols appear only as `foo', and will miss out on exact
767 ;; positions. Allowing `foo' would hit too many false matches
768 ;; for things that should go to Function: etc, and those latter
769 ;; are much more important. Perhaps this could change if some
770 ;; sort of fallback match scheme existed.
771 ("(elisp)Index" nil "^ - .*: " "\\( \\|$\\)")))
762 772
763 (info-lookup-maybe-add-help 773 (info-lookup-maybe-add-help
764 :mode 'lisp-interaction-mode 774 :mode 'lisp-interaction-mode
765 :regexp "[^][()'\" \t\n]+" 775 :regexp "[^][()'\" \t\n]+"
766 :parse-rule 'ignore 776 :parse-rule 'ignore