From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: sparse-tree in indirect buffer Date: Mon, 22 Oct 2007 23:11:11 +0100 Message-ID: <87ejfm3im8.fsf@bzg.ath.cx> References: <87bqarthlx.fsf@makhector.hypnokush.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ik4Yg-0003P6-Nf for emacs-orgmode@gnu.org; Mon, 22 Oct 2007 17:11:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ik4Yd-0003Hr-H8 for emacs-orgmode@gnu.org; Mon, 22 Oct 2007 17:11:33 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ik4Yd-0003He-CN for emacs-orgmode@gnu.org; Mon, 22 Oct 2007 17:11:31 -0400 Received: from ug-out-1314.google.com ([66.249.92.175]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ik4Yd-0008K2-7E for emacs-orgmode@gnu.org; Mon, 22 Oct 2007 17:11:31 -0400 Received: by ug-out-1314.google.com with SMTP id a2so24189ugf for ; Mon, 22 Oct 2007 14:11:09 -0700 (PDT) In-Reply-To: <87bqarthlx.fsf@makhector.hypnokush.org> (Stuart McLean's message of "Mon, 22 Oct 2007 06:16:10 -0700") 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: emacs-orgmode@gnu.org --=-=-= Stuart McLean writes: > Now, _from the indirect buffer_ I want a sparse tree as follows `C-c > /' (org-sparse-tree) and at the prompt I type `p', enter the property > name "CATEGORY" with the value "work" > > The message in the echo area is Wrong type argument: stringp, nil It's because the indirect buffer doesn't have a `buffer-file-name'. This small patch against latest Org 5.13d should fix it: --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=org.el.patch diff -u /home/guerry/elisp/testing/org/org.el /home/guerry/elisp/testing/bzg/org.el --- /home/guerry/elisp/testing/org/org.el 2007-10-22 15:04:16.000000000 +0100 +++ /home/guerry/elisp/testing/bzg/org.el 2007-10-22 23:06:42.000000000 +0100 @@ -14143,7 +14143,8 @@ 'keymap org-agenda-keymap 'help-echo (format "mouse-2 or RET jump to org file %s" - (abbreviate-file-name buffer-file-name)))) + (abbreviate-file-name + (or buffer-file-name (buffer-name)))))) (case-fold-search nil) lspos tags tags-list tags-alist (llast 0) rtn level category i txt Diff finished. Mon Oct 22 23:06:50 2007 --=-=-= -- Bastien --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --=-=-=--