From 23d4d869f5421ae026e85ad13f46f59293e1e73d Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Wed, 11 Feb 2015 23:42:52 +0100 Subject: [PATCH] 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 --- lisp/org-agenda.el | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index d23174fbd..23e407645 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)