emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] sparse-tree in indirect buffer


From: Bastien
Subject: Re: [Orgmode] sparse-tree in indirect buffer
Date: Mon, 22 Oct 2007 23:11:11 +0100
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.0 (gnu/linux)

Stuart McLean <address@hidden> 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:

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

reply via email to

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