Function: internal--listify

internal--listify is a byte-compiled function defined in subr-x.el.gz.

Signature

(internal--listify ELT)

Documentation

Wrap ELT in a list if it is not one.

If ELT is of the form ((EXPR)), listify (EXPR) with a dummy symbol.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/subr-x.el.gz
(defsubst internal--listify (elt)
  "Wrap ELT in a list if it is not one.
If ELT is of the form ((EXPR)), listify (EXPR) with a dummy symbol."
  (cond
   ((symbolp elt) (list elt elt))
   ((null (cdr elt))
    (list (make-symbol "s") (car elt)))
   (t elt)))