* resetting the span in agenda (current git version)
@ 2011-02-13 12:58 Gábor Melis
0 siblings, 0 replies; only message in thread
From: Gábor Melis @ 2011-02-13 12:58 UTC (permalink / raw)
To: emacs-orgmode
On the current master branch, it seems to me that doing anything that
ends up calling org-agenda-redo resets the span (most often pressing g,
l, R for me). I papered over the damage with this for l and R, but it is
obviously not the right fix:
diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index aea7291..34d71d1 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -6420,7 +6420,11 @@ agenda filter."
(setq org-agenda-clockreport-mode 'with-filter)
(setq org-agenda-clockreport-mode (not org-agenda-clockreport-mode)))
(org-agenda-set-mode-name)
- (org-agenda-redo)
+ (let* ((sd (org-agenda-compute-starting-span
+ (org-today) (or org-agenda-current-span org-agenda-ndays org-agenda-span)))
+ (org-agenda-overriding-arguments org-agenda-last-arguments))
+ (setf (nth 1 org-agenda-overriding-arguments) sd)
+ (org-agenda-redo))
(message "Clocktable mode is %s"
(if org-agenda-clockreport-mode "on" "off")))
@@ -6437,7 +6441,11 @@ With a double `C-u' prefix arg, show *only* log items, nothing else."
(if special '(closed clock state)
(not org-agenda-show-log))))
(org-agenda-set-mode-name)
- (org-agenda-redo)
+ (let* ((sd (org-agenda-compute-starting-span
+ (org-today) (or org-agenda-current-span org-agenda-ndays org-agenda-span)))
+ (org-agenda-overriding-arguments org-agenda-last-arguments))
+ (setf (nth 1 org-agenda-overriding-arguments) sd)
+ (org-agenda-redo))
(message "Log mode is %s"
(if org-agenda-show-log "on" "off")))
Cheers,
Gabor Melis
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-02-13 12:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-13 12:58 resetting the span in agenda (current git version) Gábor Melis
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.