emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [bug] (org-todo-list ) causes exception with sticky agenda buffers.
@ 2012-03-30 13:16 Martyn Jago
  0 siblings, 0 replies; only message in thread
From: Martyn Jago @ 2012-03-30 13:16 UTC (permalink / raw)
  To: emacs-orgmode


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)
	;; 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 (x86_64-apple-darwin, NS apple-appkit-1038.36)
 of 2012-02-28 on bob.porkrind.org

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-03-30 13:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-30 13:16 [bug] (org-todo-list ) causes exception with sticky agenda buffers Martyn Jago

Code repositories for project(s) associated with this public inbox


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).