diff options
author | Bastien Guerry <bzg@altern.org> | 2011-02-10 15:30:09 +0100 |
---|---|---|
committer | Bastien Guerry <bzg@altern.org> | 2011-02-10 15:30:09 +0100 |
commit | e4b762af3459fc9251ee1f3c66dccd2c83e420b1 (patch) | |
tree | 8b218533f160c35f3554561e2c98dea970e7a644 | |
parent | 7473e3cc78c094cc07133951ee4d59baf4481761 (diff) | |
download | org-mode-e4b762af3459fc9251ee1f3c66dccd2c83e420b1.tar.gz |
org-agenda.el: fix bug about wrong current span.
Locally kill org-agenda-current-span as a variable, otherwise
the current value of org-agenda-current-span is taken as the
default value when redoing the buffer or calling org-agenda
with a different view.
This might be a temporary fix, as Julien is looking for a
more general solution. See his message here:
http://article.gmane.org/gmane.emacs.orgmode/37359
-rw-r--r-- | lisp/org-agenda.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index 2a13cf3..2c81184 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -2161,6 +2161,7 @@ Pressing `<' twice means to restrict to the current subtree or region (put 'org-agenda-redo-command 'org-lprops nil) ;; Remember where this call originated (setq org-agenda-last-dispatch-buffer (current-buffer)) + (kill-local-variable 'org-agenda-current-span) (unless keys (setq ans (org-agenda-get-restriction-and-command prefix-descriptions) keys (car ans) |