Function: elisp-function-argstring

elisp-function-argstring is a byte-compiled function defined in elisp-mode.el.gz.

Signature

(elisp-function-argstring ARGLIST)

Documentation

Return ARGLIST as a string enclosed by ().

ARGLIST is either a string, or a list of strings or symbols.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/elisp-mode.el.gz
(defun elisp-function-argstring (arglist)
  "Return ARGLIST as a string enclosed by ().
ARGLIST is either a string, or a list of strings or symbols."
  (let ((str (cond ((stringp arglist) arglist)
                   ((not (listp arglist)) nil)
                   (t (substitute-command-keys
                       (help--make-usage-docstring 'toto arglist))))))
    (if (and str (string-match "\\`([^ )]+ ?" str))
        (replace-match "(" t t str)
      str)))