emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] bug with %^{Property}p in org-remember templates


From: Carsten Dominik
Subject: Re: [Orgmode] bug with %^{Property}p in org-remember templates
Date: Tue, 3 Nov 2009 06:44:25 +0100

Fixed, thanks.

- Carsten

On Nov 2, 2009, at 3:58 PM, Adam Spiers wrote:

The code for handling %^{PROP}p in org-remember templates seems to
have a bug:

             ((equal char "p")
             (edebug)
              (let*
                  ((prop (org-substring-no-properties prompt))
                   (pall (concat prop "_ALL"))
                   (allowed
                    (with-current-buffer
                        (get-buffer (file-name-nondirectory file))

Here get-buffer can return nil, in which case `org-remember' fails
with the error:

 Wrong type argument: stringp, nil

It seems to be assuming that the non-directory part of the filename
corresponds to the buffer name, but this is not guaranteed.  Perhaps I
noticed it because I am using uniquify.el ?


_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

- Carsten







reply via email to

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