* Capture template 'C': nil @ 2017-06-30 7:23 Alan Schmitt 2017-06-30 8:15 ` Mario Martelli 0 siblings, 1 reply; 5+ messages in thread From: Alan Schmitt @ 2017-06-30 7:23 UTC (permalink / raw) To: emacs-orgmode [-- Attachment #1: Type: text/plain, Size: 877 bytes --] Hello, I'm having a problem with a capture template called from org-protocol, both with old and new style links. Here is the template ("C" "capture CWN through org protocol" item (file "next-cwn.org") "- %?%:description\n %:link\n\n") When I use it on a page, it directly adds the entry to the file, without going through the capture interface, and it adds an extra %? in the text. For instance, using it on http://orgmode.org/ I get - %?Org mode for Emacs – Your Life in Plain Text http://orgmode.org/ In the *Messages* buffer I see this: Greedy org-protocol handler. Killing client. No server editing buffers exist Capture template ‘C’: nil Is this a bug, or a misconfiguration on my side? Thanks, Alan -- OpenPGP Key ID : 040D0A3B4ED2E5C7 Monthly Athmospheric CO₂, Mauna Loa Obs. 2017-05: 409.65, 2016-05: 407.70 [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 487 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Capture template 'C': nil 2017-06-30 7:23 Capture template 'C': nil Alan Schmitt @ 2017-06-30 8:15 ` Mario Martelli 2017-06-30 9:23 ` Alan Schmitt 0 siblings, 1 reply; 5+ messages in thread From: Mario Martelli @ 2017-06-30 8:15 UTC (permalink / raw) To: Alan Schmitt; +Cc: emacs-orgmode [-- Attachment #1.1: Type: text/plain, Size: 894 bytes --] Hi, > Here is the template > > ("C" "capture CWN through org protocol" item (file "next-cwn.org") > "- %?%:description\n %:link\n\n") > > When I use it on a page, it directly adds the entry to the file, without > going through the capture interface, and it adds an extra %? in the > text. Try to use ‘entry’ instead of ‘item’ ("C" "capture CWN through org protocol" entry (file "next-cwn.org") "- %?%:description\n %:link\n\n") “C” is usually bound to “Customise org-capture-templates”. Probably it’s better to choose another key. In the next step you will probably get an error: org-capture: Capture template ‘i’: Template is not a valid Org entry or tree To avoid that make the entry a tree: (“c" "capture CWN through org protocol" entry (file "next-cwn.org") “* %?%:description\n %:link\n\n") rgrds Mario — [-- Attachment #1.2: Type: text/html, Size: 1916 bytes --] [-- Attachment #2: smime.p7s --] [-- Type: application/pkcs7-signature, Size: 3690 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Capture template 'C': nil 2017-06-30 8:15 ` Mario Martelli @ 2017-06-30 9:23 ` Alan Schmitt 2017-06-30 10:49 ` Mario Martelli 0 siblings, 1 reply; 5+ messages in thread From: Alan Schmitt @ 2017-06-30 9:23 UTC (permalink / raw) To: Mario Martelli; +Cc: emacs-orgmode [-- Attachment #1: Type: text/plain, Size: 518 bytes --] "MM" == Mario Martelli <mario@martelli.de> writes: MM> Try to use ‘entry’ instead of ‘item’ Unfortunately I need an item. It used to work, unfortunately it no longer does. MM> “C” is usually bound to “Customise org-capture-templates”. Probably MM> it’s better to choose another key. Thank you for the suggestion. I changed it and it did not fix it. Best, Alan -- OpenPGP Key ID : 040D0A3B4ED2E5C7 Monthly Athmospheric CO₂, Mauna Loa Obs. 2017-05: 409.65, 2016-05: 407.70 [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 487 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Capture template 'C': nil 2017-06-30 9:23 ` Alan Schmitt @ 2017-06-30 10:49 ` Mario Martelli 2017-06-30 11:14 ` Alan Schmitt 0 siblings, 1 reply; 5+ messages in thread From: Mario Martelli @ 2017-06-30 10:49 UTC (permalink / raw) To: Alan Schmitt; +Cc: emacs-orgmode [-- Attachment #1: Type: text/plain, Size: 674 bytes --] > MM> Try to use ‘entry’ instead of ‘item’ > > Unfortunately I need an item. It used to work, unfortunately it no > longer does. I was probably to quick by changing ‘item’ to ‘entry’. I tried your template once again. And it turned out that the file must be existent. ("c" "capture CWN through org protocol" item (file "~/org/notes.org") "- %?%:description\n %:link\n\n") Does work for me. So giving a path to file might help. > Greedy org-protocol handler. Killing client. > No server editing buffers exist > Capture template ‘C’: nil That was caused by using “C”, wasn’t it? Kind regards Mario — [-- Attachment #2: Type: text/html, Size: 1720 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Capture template 'C': nil 2017-06-30 10:49 ` Mario Martelli @ 2017-06-30 11:14 ` Alan Schmitt 0 siblings, 0 replies; 5+ messages in thread From: Alan Schmitt @ 2017-06-30 11:14 UTC (permalink / raw) To: Mario Martelli; +Cc: emacs-orgmode [-- Attachment #1: Type: text/plain, Size: 618 bytes --] "MM" == Mario Martelli <tlmtr@schnuddelhuddel.de> writes: MM> I tried your template once again. And it turned out that the file must be existent. MM> ("c" "capture CWN through org protocol" item (file "~/org/notes.org") MM> "- %?%:description\n %:link\n\n") MM> Does work for me. So giving a path to file might help. Thank you for testing. There is another thread where someone has the same problem. It seems that for item templates one has to give the full path. Alan -- OpenPGP Key ID : 040D0A3B4ED2E5C7 Monthly Athmospheric CO₂, Mauna Loa Obs. 2017-05: 409.65, 2016-05: 407.70 [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 487 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-06-30 11:14 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2017-06-30 7:23 Capture template 'C': nil Alan Schmitt 2017-06-30 8:15 ` Mario Martelli 2017-06-30 9:23 ` Alan Schmitt 2017-06-30 10:49 ` Mario Martelli 2017-06-30 11:14 ` Alan Schmitt
Code repositories for project(s) associated with this public inbox https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).