From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: bug with %^{Property}p in org-remember templates Date: Tue, 3 Nov 2009 06:44:25 +0100 Message-ID: <239FD45A-B93E-4FC4-982A-5BC49F43703B@gmail.com> References: <20091102145857.GE30665@atlantic.linksys.moosehall> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N5CC4-0001Fh-RU for emacs-orgmode@gnu.org; Tue, 03 Nov 2009 00:44:37 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N5CBy-0001AH-PD for emacs-orgmode@gnu.org; Tue, 03 Nov 2009 00:44:35 -0500 Received: from [199.232.76.173] (port=54480 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N5CBy-0001AA-Bu for emacs-orgmode@gnu.org; Tue, 03 Nov 2009 00:44:30 -0500 Received: from mail-ew0-f228.google.com ([209.85.219.228]:36128) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N5CBx-0004Wt-Vu for emacs-orgmode@gnu.org; Tue, 03 Nov 2009 00:44:30 -0500 Received: by ewy28 with SMTP id 28so3188598ewy.42 for ; Mon, 02 Nov 2009 21:44:29 -0800 (PST) In-Reply-To: <20091102145857.GE30665@atlantic.linksys.moosehall> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Adam Spiers Cc: org-mode mailing list 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. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten