emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Robert Goldman <rpgoldman@sift.info>
To: Matthew Lundin <mdl@imapmail.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: Possible to get a subtree agenda view? --- possible bug?
Date: Sat, 13 Dec 2008 16:35:08 -0600	[thread overview]
Message-ID: <4944389C.3070904@sift.info> (raw)
In-Reply-To: <m2bpvf3gs0.fsf@fastmail.fm>

Matthew Lundin wrote:
> Hi Robert,
> 
....
> 
>> Is there any existing way to do this, or should I start rooting around
>> in the code?
> 
> For a custom agenda command:
> 
> (setq org-agenda-custom-commands
>       '(("f" tags-tree "+car+TODO=\"TODO\""
> 	 ((org-show-entry-below t)
> 	  (org-show-hierarchy-above nil)))
>           ;; other commands
>         ))
>         

Actually, I just tried this with a recent git pull, and when I try to
execute it, it crashes, with the following error:

Debugger entered--Lisp error: (error "Cannot execute org-mode agenda
command on buffer in org-agenda-mode.")
  signal(error ("Cannot execute org-mode agenda command on buffer in
org-agenda-mode."))
  ad-Orig-error("Cannot execute org-mode agenda command on buffer in
%s." org-agenda-mode)
  apply(ad-Orig-error ("Cannot execute org-mode agenda command on buffer
in %s." org-agenda-mode))
  error("Cannot execute org-mode agenda command on buffer in %s."
org-agenda-mode)
  org-check-for-org-mode()
  byte-code(...)
  org-agenda(nil)
  call-interactively(org-agenda)

Looks like something's being called here that is only callable in
org-mode, not org-agenda-mode.

Indeed, looking at org-agenda, I see:

	       ((eq type 'tags-tree)
		(org-check-for-org-mode)
		(org-let lprops '(org-tags-sparse-tree current-prefix-arg match)))

Aren't we always in org-agenda-mode at this point?

I tried moving to a different buffer (in emacs-lisp mode) to invoke the
same command, thinking it might be a problem specifically with invoking
this custom agenda from inside org-agenda-mode, but then got the same
error with emacs-lisp-mode instead of org-agenda-mode

I have just this moment pulled an update from git, so I think this bug
is current (unless it's some weird misconfiguration on my part).

R

  reply	other threads:[~2008-12-13 22:35 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-13 18:05 Possible to get a subtree agenda view? Robert Goldman
2008-12-13 21:29 ` Matthew Lundin
2008-12-13 22:35   ` Robert Goldman [this message]
2008-12-14  5:34     ` Possible to get a subtree agenda view? --- possible bug? Matthew Lundin
2008-12-14 19:43       ` Robert Goldman
2008-12-13 23:43   ` Possible to get a subtree agenda view? Robert Goldman
2008-12-14 13:46     ` Matthew Lundin
2008-12-14 19:14       ` Robert Goldman
2008-12-15  3:07         ` Matthew Lundin
2008-12-15  3:35           ` Robert Goldman
2008-12-15 10:50       ` Carsten Dominik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4944389C.3070904@sift.info \
    --to=rpgoldman@sift.info \
    --cc=emacs-orgmode@gnu.org \
    --cc=mdl@imapmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).