Function: org-list--generic-eval

org-list--generic-eval is a byte-compiled function defined in org-list.el.gz.

Signature

(org-list--generic-eval VALUE &rest ARGS)

Documentation

Evaluate VALUE according to its type.

VALUE is either nil, a string or a function. In the latter case, it is called with arguments ARGS.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org-list.el.gz
(defun org-list--generic-eval (value &rest args)
  "Evaluate VALUE according to its type.
VALUE is either nil, a string or a function.  In the latter case,
it is called with arguments ARGS."
  (cond ((null value) nil)
	((stringp value) value)
	((functionp value) (apply value args))
	(t (error "Wrong value: %s" value))))