summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Wahl <marcowahlsoft@gmail.com>2017-03-21 20:47:30 +0100
committerMarco Wahl <marcowahlsoft@gmail.com>2017-03-21 20:47:30 +0100
commit4b4ccdc3fac7f2405088b730bb8a2559d784605c (patch)
tree64fecb1450c312a5b9212207955f6c59b45d02c6
parentf50f8d0d103c170633428ffa315ce397531922d5 (diff)
downloadorg-mode-4b4ccdc3fac7f2405088b730bb8a2559d784605c.tar.gz
org-agenda: Fix agenda buffer name after reload sticky agenda
* lisp/org-agenda.el (org-agenda-list): Don't rename the buffer when redoing sticky. This fix has been proposed by Ian Dunn. <http://permalink.gmane.org/gmane.emacs.orgmode/112833> TINYCHANGE
-rw-r--r--lisp/org-agenda.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index f126a78..b7a20cd 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -4201,6 +4201,7 @@ items if they have an hour specification like [h]h:mm."
(catch 'exit
(setq org-agenda-buffer-name
(or org-agenda-buffer-tmp-name
+ (and org-agenda-doing-sticky-redo org-agenda-buffer-name)
(if org-agenda-sticky
(cond ((and org-keys (stringp org-match))
(format "*Org Agenda(%s:%s)*" org-keys org-match))