Function: org-capture--expand-keyword-in-embedded-elisp

org-capture--expand-keyword-in-embedded-elisp is a byte-compiled function defined in org-capture.el.gz.

Signature

(org-capture--expand-keyword-in-embedded-elisp ATTR)

Documentation

Recursively replace capture link keywords in ATTR sexp.

Such keywords are prefixed with "%:". See org-capture-template for more information.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org-capture.el.gz
(defun org-capture--expand-keyword-in-embedded-elisp (attr)
  "Recursively replace capture link keywords in ATTR sexp.
Such keywords are prefixed with \"%:\".  See
`org-capture-template' for more information."
  (cond ((consp attr)
	 (mapcar 'org-capture--expand-keyword-in-embedded-elisp attr))
	((symbolp attr)
	 (let* ((attr-symbol (symbol-name attr))
		(key (and (string-match "%\\(:.*\\)" attr-symbol)
			  (intern (match-string 1 attr-symbol)))))
	   (or (plist-get org-store-link-plist key)
	       attr)))
	(t attr)))