[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] Patch to fix bug where remember template dies w/ non-filename
From: |
Christopher Allan Webber |
Subject: |
[Orgmode] Patch to fix bug where remember template dies w/ non-filename buffer name |
Date: |
Tue, 03 Nov 2009 19:28:24 -0600 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) |
Hi,
So I ran into an annoying bug where if you have an orgmode remember
template like:
("Test" ?e "* foo \n %^{Bar}p" "~/org/test.org" "Test")
Currently, if either test.org is not open, or test.org is open but the
buffer is named something else (say, test.org<2>), orgmode will die when
asking for the property (in this case, Bar).
The issue was that in the org-remember-apply-template function, it would
attempt to get the buffer like so:
(get-buffer (file-name-nondirectory file))
in other words, it would try to get the buffer with the name of
"test.org"... no matter what that buffer was, if exists, or if it was
even called that.
I've attached a patch that fixes the problem.
Thanks,
- Christopher Allan Webber
org-remember-fix.diff
Description: Text Data
- [Orgmode] Patch to fix bug where remember template dies w/ non-filename buffer name,
Christopher Allan Webber <=