Stuart McLean <[EMAIL PROTECTED]> 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
_______________________________________________
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

Reply via email to