Function: org-agenda-skip-eval

org-agenda-skip-eval is a byte-compiled function defined in org-agenda.el.gz.

Signature

(org-agenda-skip-eval FORM)

Documentation

If FORM is a function or a list, call (or eval) it and return the result.

save-excursion and save-match-data are wrapped around the call, so point and match data are returned to the previous state no matter what these functions do.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org-agenda.el.gz
(defun org-agenda-skip-eval (form)
  "If FORM is a function or a list, call (or eval) it and return the result.
`save-excursion' and `save-match-data' are wrapped around the call, so point
and match data are returned to the previous state no matter what these
functions do."
  (let (fp)
    (and form
	 (or (setq fp (functionp form))
	     (consp form))
	 (save-excursion
	   (save-match-data
	     (if fp
		 (funcall form)
	       (eval form t)))))))