diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2015-02-11 23:42:52 +0100 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2015-02-11 23:44:26 +0100 |
commit | 23d4d869f5421ae026e85ad13f46f59293e1e73d (patch) | |
tree | 92fdf4acf3e11567cad370b33e6bfd5b99406e00 | |
parent | d92ef9517079359de022465b69fd3f99813d993e (diff) | |
download | org-mode-23d4d869f5421ae026e85ad13f46f59293e1e73d.tar.gz |
org-agenda: Ignore sticky feature when picking date from calendar
* lisp/org-agenda.el (org-calendar-goto-agenda): Ignore sticky
feature.
Reported-by: Tory S. Anderson <torys.anderson@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/94865>
-rw-r--r-- | lisp/org-agenda.el | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index d23174f..23e4076 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -9640,9 +9640,13 @@ argument, latitude and longitude will be prompted for." "Compute the Org-mode agenda for the calendar date displayed at the cursor. This is a command that has to be installed in `calendar-mode-map'." (interactive) - (org-agenda-list nil (calendar-absolute-from-gregorian - (calendar-cursor-to-date)) - nil)) + ;; Temporarily disable sticky agenda since user clearly wants to + ;; refresh view anyway. + (let ((org-agenda-buffer-tmp-name "*Org Agenda(a)*") + (org-agenda-sticky nil)) + (org-agenda-list nil (calendar-absolute-from-gregorian + (calendar-cursor-to-date)) + nil))) (defun org-agenda-convert-date () (interactive) |