diff options
| author | Stefan Monnier | 2004-04-23 20:44:54 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2004-04-23 20:44:54 +0000 |
| commit | 538996c7cd289e7e1d28d71b572023c463d17a7f (patch) | |
| tree | 3c2703fed45e360900466ec6130f7c852be99fa5 | |
| parent | f24814e0e9806db8d01c16b8d8592d6e9b9ee481 (diff) | |
| download | emacs-538996c7cd289e7e1d28d71b572023c463d17a7f.tar.gz emacs-538996c7cd289e7e1d28d71b572023c463d17a7f.zip | |
Add support for cfengine-mode.
(info-lookup-setup-mode): Use dolist.
| -rw-r--r-- | lisp/info-look.el | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/lisp/info-look.el b/lisp/info-look.el index 35138121838..8e09f326019 100644 --- a/lisp/info-look.el +++ b/lisp/info-look.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; info-look.el --- major-mode-sensitive Info index lookup facility | 1 | ;;; info-look.el --- major-mode-sensitive Info index lookup facility |
| 2 | ;; An older version of this was known as libc.el. | 2 | ;; An older version of this was known as libc.el. |
| 3 | 3 | ||
| 4 | ;; Copyright (C) 1995,96,97,98,99,2001,2003,2004 Free Software Foundation, Inc. | 4 | ;; Copyright (C) 1995,96,97,98,99,2001,03,04 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: Ralph Schleicher <rs@nunatak.allgaeu.org> | 6 | ;; Author: Ralph Schleicher <rs@nunatak.allgaeu.org> |
| 7 | ;; (did not show signs of life (Nov 2001) -stef) | 7 | ;; (did not show signs of life (Nov 2001) -stef) |
| @@ -408,12 +408,11 @@ If optional argument QUERY is non-nil, query for the help mode." | |||
| 408 | (message "No %s help available for `%s'" topic mode) | 408 | (message "No %s help available for `%s'" topic mode) |
| 409 | ;; Recursively setup cross references. | 409 | ;; Recursively setup cross references. |
| 410 | ;; But refer only to non-void modes. | 410 | ;; But refer only to non-void modes. |
| 411 | (mapcar (lambda (arg) | 411 | (dolist (arg (info-lookup->other-modes topic mode)) |
| 412 | (or (info-lookup->initialized topic arg) | 412 | (or (info-lookup->initialized topic arg) |
| 413 | (info-lookup-setup-mode topic arg)) | 413 | (info-lookup-setup-mode topic arg)) |
| 414 | (and (eq (info-lookup->initialized topic arg) t) | 414 | (and (eq (info-lookup->initialized topic arg) t) |
| 415 | (setq refer-modes (cons arg refer-modes)))) | 415 | (setq refer-modes (cons arg refer-modes)))) |
| 416 | (info-lookup->other-modes topic mode)) | ||
| 417 | (setq refer-modes (nreverse refer-modes)) | 416 | (setq refer-modes (nreverse refer-modes)) |
| 418 | ;; Build the full completion alist. | 417 | ;; Build the full completion alist. |
| 419 | (setq completions | 418 | (setq completions |
| @@ -887,6 +886,12 @@ Return nil if there is nothing appropriate in the buffer near point." | |||
| 887 | "awk") | 886 | "awk") |
| 888 | ((string-equal item "gawk, versions of, information about, printing") | 887 | ((string-equal item "gawk, versions of, information about, printing") |
| 889 | "gawk")))))) | 888 | "gawk")))))) |
| 889 | |||
| 890 | (info-lookup-maybe-add-help | ||
| 891 | :mode 'cfengine-mode | ||
| 892 | :regexp "[[:alnum:]_]+" | ||
| 893 | :doc-spec '(("(cfengine-Reference)Variable Index" nil | ||
| 894 | "^ - [^:]+:[ ]+\\(\\[[^=]*=[ ]+\\)?" nil))) | ||
| 890 | 895 | ||
| 891 | (provide 'info-look) | 896 | (provide 'info-look) |
| 892 | 897 | ||