diff options
| author | Juanma Barranquero | 2003-04-05 12:59:38 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2003-04-05 12:59:38 +0000 |
| commit | 16524b9bcb60c6fe683b8143220b9bec0ced3995 (patch) | |
| tree | 8cfeda6340acdabf95f397d47ccbf85838260c87 | |
| parent | afc9c9e4a2cc3864cd9251ef15ff4a5e082069cc (diff) | |
| download | emacs-16524b9bcb60c6fe683b8143220b9bec0ced3995.tar.gz emacs-16524b9bcb60c6fe683b8143220b9bec0ced3995.zip | |
(emacs-lisp-mode): Add prefix/suffix matching regexps.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/info-look.el | 16 |
2 files changed, 17 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 988976797ae..6409f873837 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2003-04-05 Kevin Ryde <user42@zip.com.au> | ||
| 2 | |||
| 3 | * info-look.el (emacs-lisp-mode): Add prefix/suffix matching regexps. | ||
| 4 | |||
| 1 | 2003-04-04 Vinicius Jose Latorre <viniciusjl@ig.com.br> | 5 | 2003-04-04 Vinicius Jose Latorre <viniciusjl@ig.com.br> |
| 2 | 6 | ||
| 3 | * subr.el (number-sequence): Adjust code. | 7 | * subr.el (number-sequence): Adjust code. |
diff --git a/lisp/info-look.el b/lisp/info-look.el index bc360a1d57d..b4a8d3be6a8 100644 --- a/lisp/info-look.el +++ b/lisp/info-look.el | |||
| @@ -756,9 +756,19 @@ Return nil if there is nothing appropriate in the buffer near point." | |||
| 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 |