diff options
| author | Karl Heuer | 1998-02-25 22:45:29 +0000 |
|---|---|---|
| committer | Karl Heuer | 1998-02-25 22:45:29 +0000 |
| commit | a1fee1bc2add11a9814bc43b11804f1f5822f646 (patch) | |
| tree | c5d21cfdec32449d0cd763a588eab77171d053e7 | |
| parent | d5323ba0c25159b7e73de1cfbc096d848230a03b (diff) | |
| download | emacs-a1fee1bc2add11a9814bc43b11804f1f5822f646.tar.gz emacs-a1fee1bc2add11a9814bc43b11804f1f5822f646.zip | |
Added support for the Emacs Lisp manual.
(info-complete-file): Use default value if MODE is nil.
(info-lookup-file-alist): Variable removed.
| -rw-r--r-- | lisp/info-look.el | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/lisp/info-look.el b/lisp/info-look.el index c7667fa91a8..8a8faffa5a9 100644 --- a/lisp/info-look.el +++ b/lisp/info-look.el | |||
| @@ -230,13 +230,6 @@ REFER-MODES is a list of other help modes to use.") | |||
| 230 | (defsubst info-lookup->all-modes (topic mode) | 230 | (defsubst info-lookup->all-modes (topic mode) |
| 231 | (cons mode (info-lookup->refer-modes topic mode))) | 231 | (cons mode (info-lookup->refer-modes topic mode))) |
| 232 | 232 | ||
| 233 | (defvar info-lookup-file-alist | ||
| 234 | '((c-mode | ||
| 235 | "[_a-zA-Z0-9./+-]+" nil | ||
| 236 | (("(libc)File Index")))) | ||
| 237 | "*Alist of help specifications for file names. | ||
| 238 | See the documentation of the variable `info-lookup-alist' for more details.") | ||
| 239 | |||
| 240 | ;;;###autoload | 233 | ;;;###autoload |
| 241 | (defun info-lookup-reset () | 234 | (defun info-lookup-reset () |
| 242 | "Throw away all cached data. | 235 | "Throw away all cached data. |
| @@ -533,12 +526,13 @@ Return nil if there is nothing appropriate." | |||
| 533 | ;;;###autoload | 526 | ;;;###autoload |
| 534 | (defun info-complete-file (&optional mode) | 527 | (defun info-complete-file (&optional mode) |
| 535 | "Perform completion on file preceding point." | 528 | "Perform completion on file preceding point." |
| 536 | (interactive | 529 | (interactive) |
| 537 | (list (if (info-lookup->mode-value | 530 | (info-complete 'file |
| 538 | 'file (or info-lookup-mode major-mode)) | 531 | (or mode |
| 539 | (or info-lookup-mode major-mode) | 532 | (if (info-lookup->mode-value |
| 540 | (info-lookup-change-mode 'file)))) | 533 | 'file (or info-lookup-mode major-mode)) |
| 541 | (info-complete 'file mode)) | 534 | (or info-lookup-mode major-mode) |
| 535 | (info-lookup-change-mode 'file))))) | ||
| 542 | 536 | ||
| 543 | (defun info-complete (topic mode) | 537 | (defun info-complete (topic mode) |
| 544 | "Try to complete a help item." | 538 | "Try to complete a help item." |
| @@ -750,7 +744,15 @@ Special commands: | |||
| 750 | :mode 'emacs-lisp-mode | 744 | :mode 'emacs-lisp-mode |
| 751 | :regexp "[^()' \t\n]+" | 745 | :regexp "[^()' \t\n]+" |
| 752 | :doc-spec '(("(emacs)Command Index") | 746 | :doc-spec '(("(emacs)Command Index") |
| 753 | ("(emacs)Variable Index"))) | 747 | ("(emacs)Variable Index") |
| 748 | ("(elisp)Index" | ||
| 749 | (lambda (item) | ||
| 750 | (let ((sym (intern-soft item))) | ||
| 751 | (cond ((null sym) | ||
| 752 | (if (string-equal item "nil") item)) | ||
| 753 | ((or (boundp sym) (fboundp sym)) | ||
| 754 | item)))) | ||
| 755 | "^[ \t]+- [^:]+:[ \t]*" "\\b"))) | ||
| 754 | 756 | ||
| 755 | (info-lookup-maybe-add-help | 757 | (info-lookup-maybe-add-help |
| 756 | :mode 'lisp-interaction-mode | 758 | :mode 'lisp-interaction-mode |