[Top][All Lists]

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

Re: [Orgmode] org-protocol://remember:// question

From: Carsten Dominik
Subject: Re: [Orgmode] org-protocol://remember:// question
Date: Thu, 2 Apr 2009 18:03:26 +0200

Hi Sebastian, Tassilo,

this can be easily fixed.

Org-protocol may add arbitrary properties to the link properties.
For example, after a call

      (org-store-link-props :type type
                            :link url
                            :region region
                            :description title
                            :hello "Hello world")

a template could use "%:hello" to access and insert this
string.  I have just changed org-remember so that the
property :annotation will be the default for %a.
Sebastian, could you please add

   :annotation (concat "[[" url "][" title "]]")

or something similar to the call to org-store-link-props?

Also, feel free to add any other properties that might
provide useful information for a template.


- Carsten

On Apr 2, 2009, at 1:10 PM, Sebastian Rose wrote:

Hi Tassilo,

your right, the docs are wrong, Sorry for the inconvenience.

Actually, I now understand Bastiens comment in org-annotation-helper.el:

;; FIXME can't access %a in the template -- how to set annotation?

I'll fix the table in the docs.

I'll be back as soon as possible.


Tassilo Horn <address@hidden> writes:

Hi all,

first I'd like to say that this is superb.  It'll deprecate my
home-brewn remember webpage hacks for conkeror soon. :-)

Ok, now the problem I have: I defined a remember template for
remembering pages from my browser like that:

(setq org-default-notes-file "~/repos/org/remember.org"
     org-remember-default-headline 'bottom
     '(;; TODOs
       ("TODO"    ?t "* TODO %?\n  (created: %U)\n  %i\n  %a")
       ("BROWSER" ?b "* BROWSER %a\n  (created: %U)\n\n  %A\n\n  %i")))

When I execute

 emacsclient \

now I get a remember buffer with these contents:

 (created: [2009-04-02 Thu 08:41])


Accorting to the template table at [1] I thought that the TITLE would be
filled in after BROWSER, and the [[URL][TITLE]] link between the
timestamp and the BODY.  But that's not the case.  The [[URL][TITLE]] is
on top of the kill-ring, though.

What am I doing wrong?

BTW: Has some Conkeror user managed to setup an org-protocol handler

[1] http://orgmode.org/worg/org-contrib/org-protocol.php

Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449 Hannover
Tel.:  +49 (0)511 - 36 58 472
Fax:   +49 (0)1805 - 233633 - 11044
mobil: +49 (0)173 - 83 93 417
Email: address@hidden, address@hidden
Http:  www.emma-stil.de

Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.

reply via email to

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