Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
538996c7
Commit
538996c7
authored
Apr 23, 2004
by
Stefan Monnier
Browse files
Add support for cfengine-mode.
(info-lookup-setup-mode): Use dolist.
parent
f24814e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
lisp/info-look.el
lisp/info-look.el
+12
-7
No files found.
lisp/info-look.el
View file @
538996c7
;;; info-look.el --- major-mode-sensitive Info index lookup facility
;; An older version of this was known as libc.el.
;; Copyright (C) 1995,96,97,98,99,2001,
20
03,
20
04 Free Software Foundation, Inc.
;; Copyright (C) 1995,96,97,98,99,2001,03,04 Free Software Foundation, Inc.
;; Author: Ralph Schleicher <rs@nunatak.allgaeu.org>
;; (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."
(
message
"No %s help available for `%s'"
topic
mode
)
;; Recursively setup cross references.
;; But refer only to non-void modes.
(
mapcar
(
lambda
(
arg
)
(
or
(
info-lookup->initialized
topic
arg
)
(
info-lookup-setup-mode
topic
arg
))
(
and
(
eq
(
info-lookup->initialized
topic
arg
)
t
)
(
setq
refer-modes
(
cons
arg
refer-modes
))))
(
info-lookup->other-modes
topic
mode
))
(
dolist
(
arg
(
info-lookup->other-modes
topic
mode
))
(
or
(
info-lookup->initialized
topic
arg
)
(
info-lookup-setup-mode
topic
arg
))
(
and
(
eq
(
info-lookup->initialized
topic
arg
)
t
)
(
setq
refer-modes
(
cons
arg
refer-modes
))))
(
setq
refer-modes
(
nreverse
refer-modes
))
;; Build the full completion alist.
(
setq
completions
...
...
@@ -887,6 +886,12 @@ Return nil if there is nothing appropriate in the buffer near point."
"awk"
)
((
string-equal
item
"gawk, versions of, information about, printing"
)
"gawk"
))))))
(
info-lookup-maybe-add-help
:mode
'cfengine-mode
:regexp
"[[:alnum:]_]+"
:doc-spec
'
((
"(cfengine-Reference)Variable Index"
nil
"^ - [^:]+:[ ]+\\(\\[[^=]*=[ ]+\\)?"
nil
)))
(
provide
'info-look
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment