Function: elint-find-builtin-args
elint-find-builtin-args is a byte-compiled function defined in
elint.el.gz.
Signature
(elint-find-builtin-args &optional LIST)
Documentation
Return a list of the built-in functions and their arguments.
If LIST is nil, call elint-find-builtins to get a list of all built-in
functions, otherwise use LIST.
Each function is represented by a cons cell:
(function-symbol . args)
If no documentation could be found args will be unknown.
Source Code
;; Defined in /usr/src/emacs/lisp/obsolete/elint.el.gz
(defun elint-find-builtin-args (&optional list)
"Return a list of the built-in functions and their arguments.
If LIST is nil, call `elint-find-builtins' to get a list of all built-in
functions, otherwise use LIST.
Each function is represented by a cons cell:
\(function-symbol . args)
If no documentation could be found args will be `unknown'."
(mapcar (lambda (f)
(let ((doc (documentation f t)))
(or (and doc
(string-match "\n\n(fn\\(.*)\\)\\'" doc)
(ignore-errors
;; "BODY...)" -> "&rest BODY)".
(read (replace-regexp-in-string
"\\([^ ]+\\)\\.\\.\\.)\\'" "&rest \\1)"
(format "(%s %s" f (match-string 1 doc)) t))))
(cons f 'unknown))))
(or list (elint-find-builtins))))