[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] Using org-remember to include stored link?
From: |
Bastien |
Subject: |
Re: [Orgmode] Using org-remember to include stored link? |
Date: |
Thu, 08 Nov 2007 13:09:28 +0000 |
User-agent: |
Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.0 (gnu/linux) |
Hi Georg,
"Georg C. F. Greve" <address@hidden> writes:
> I would like to do this in a way that it only temporarily modifies the
> org-remember-templates, but at the moment, this function does that
> permanently.
See my comment below.
> (defun org-mairix-sent-message-remember ()
> "Function to be called by org-mairix-message-send-and-exit-with-link
> via hook to store a link to a sent message by calling remember.
>
> It works by first inserting the 'org-mairix' link provided by
> org-mairix-message-send-and-exit-with-link for '%a' in the
> org-mairix-message-sent-remember-template string and then
> iterating through the org-remember-templates, replacing all the
> standard items by the org-mairix-message-sent-remember-template
> before calling org-remember."
> (let* ((templates) (templ)
> (org-remember-templates org-remember-templates)
Why do you need to copy the global value of `org-remember-templates'?
Can't you just define it *locally*?
(let* ((org-remember-templates
'((?w org-mairix-message-sent-remember-template
nil ; no file name
"WAITING" ; the headline))))
...)
This shouldn't modify the global set of templates.
--
Bastien