From: Martyn Jago <martyn.jago@btinternet.com>
To: emacs-orgmode@gnu.org
Subject: [bug] (org-todo-list ) causes exception with sticky agenda buffers.
Date: Fri, 30 Mar 2012 14:16:02 +0100 [thread overview]
Message-ID: <m28viitejx.fsf@btinternet.com> (raw)
Hi
I've noticed that if (org-todo-list ) is called programatically where
`org-agenda-sticky' is set to t, an exception is caused:
The exception happens in (org-prepare-agenda ):
--8<---------------cut here---------------start------------->8---
(defun org-prepare-agenda (&optional name)
(if (org-agenda-use-sticky-p)
(progn
;; Popup existing buffer
(org-prepare-agenda-window (get-buffer org-agenda-buffer-name))
(message "Sticky Agenda buffer, use `r' to refresh")
(throw 'exit nil))
--8<---------------cut here---------------end--------------->8---
This looks somewhat intentional.
Unfortunately this kills further execution of the calling script.
NOTE: This only appears to happen once the agenda buffer exists (and is buried).
The debug trace follows:
--8<---------------cut here---------------start------------->8---
Debugger entered--Lisp error: (no-catch exit nil)
throw(exit nil)
(progn (org-prepare-agenda-window (get-buffer org-agenda-buffer-name))
(message "Sticky Agenda buffer, use `r' to refresh") (throw (quote exit) nil))
(if (org-agenda-use-sticky-p) (progn (org-prepare-agenda-window
(get-buffer org-agenda-buffer-name)) (message "Sticky Agenda buffer,
use `r' to refresh") (throw (quote exit) nil)) (setq
org-todo-keywords-for-agenda nil) ...
--8<---------------cut here---------------end--------------->8---
Calling (org-todo-list ) interactively appears to exhibit the same behavior.
Best, Martyn
---
Org-mode version 7.8.06 (release_7.8.03.594.g013d)
GNU Emacs 24.0.94.1 (x86_64-apple-darwin, NS apple-appkit-1038.36)
of 2012-02-28 on bob.porkrind.org
reply other threads:[~2012-03-30 13:16 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=m28viitejx.fsf@btinternet.com \
--to=martyn.jago@btinternet.com \
--cc=emacs-orgmode@gnu.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).