Function: semantic-elisp-setup-form-parser
semantic-elisp-setup-form-parser is a macro defined in el.el.gz.
Signature
(semantic-elisp-setup-form-parser PARSER &rest SYMBOLS)
Documentation
Install the function PARSER as the form parser for SYMBOLS.
SYMBOLS is a list of symbols identifying the forms to parse. PARSER is called on every forms whose first element (car FORM) is found in SYMBOLS. It is passed the parameters FORM, START, END, where:
- FORM is an Elisp form read from the current buffer.
- START and END are the beginning and end location of the
corresponding data in the current buffer.
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/semantic/bovine/el.el.gz
(defmacro semantic-elisp-setup-form-parser (parser &rest symbols)
"Install the function PARSER as the form parser for SYMBOLS.
SYMBOLS is a list of symbols identifying the forms to parse.
PARSER is called on every forms whose first element (car FORM) is
found in SYMBOLS. It is passed the parameters FORM, START, END,
where:
- FORM is an Elisp form read from the current buffer.
- START and END are the beginning and end location of the
corresponding data in the current buffer."
(declare (indent 1))
(let ((sym (make-symbol "sym")))
`(dolist (,sym ',symbols)
(put ,sym 'semantic-elisp-form-parser #',parser))))