arthur miller <[email protected]> writes:

> Hi,
>
> I have discovered that org-capture templates can't expand Lisp variabels with 
> %
> (), only functions. Is that a bug or a feature?
>
> In Emacs -q do:
>
> #+begin_src emacs-lisp
> (require 'org-capture)
>
> (defun test1 ()
>   (with-temp-buffer
>     (org-capture-fill-template "%(default-directory)")))
>
> ;; => "%![Error: (void-function default-directory)]
> ;; "

If you just want to insert a variable, why not use eval?:

(defun test1 ()
  (with-temp-buffer
    (org-capture-fill-template "%(eval default-directory)")))

Changing the current meaning of the form would break configurations that
already rely on it.

Reply via email to