emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] %( in capture template


From: Nicolas Goaziou
Subject: Re: [O] %( in capture template
Date: Tue, 14 Mar 2017 09:13:49 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

Hello,

Samuel Wales <address@hidden> writes:

> ===
> * ecm
> capture literally inserts.  i was told this is not normal,
> but a bug.
>
> recent maint
>
> to reproduce, evaluate the following code, select the lines
> in the scratch buffer, and run m-x org-capture RET p.
>
> set the notes file to whatever works for you.
>
> *** code
>   (require 'org-capture)
>   (setq org-default-notes-file (substitute-in-file-name
> "$dorg/alpha-org-testcase.org"))
>   ;; (find-file org-default-notes-file)
>   (defun alpha-org-testcase--create-capture-bug ()
>     (add-to-list 'org-capture-templates
>                  `("p" "Protocol p" entry
>                    (file+headline ,org-default-notes-file "xyzzy-remember")
>                    "%(alpha-org-protocol-string \"%:link\"
> \"%:description\" \"%i\")"
>                    :prepend t :immediate-finish t :jump-to-captured t))
>     (defun alpha-org-protocol-string (link description region)
>       (format "* debug org-capture
>            - link %s
>            - description %s
>            - region %s \
>            "
>               link description region)))
> *** the bug is below
> ***** debug org-capture
>              - link
>              - description
>              - region ;; This buffer is for notes you don't want to
> save, and for Lisp evaluation.
>   %(alpha-org-protocol-string "" "" ";; If you want to create a file,
> visit that file with C-x C-f,
>   %(alpha-org-protocol-string "" "" ";; then enter the text in that
> file's own buffer.
>   %(alpha-org-protocol-string "" "" "
>   %(alpha-org-protocol-string "" "" "
> ===

Thank you. I think it is fixed, now. Could you test maint branch and
report your result?

Regards,

-- 
Nicolas Goaziou



reply via email to

[Prev in Thread] Current Thread [Next in Thread]