mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-11-26 07:33:39 +00:00
org.el: Fix org-diary' again by checking
org-agenda-buffer' correctly.
This commit is contained in:
parent
bea597be96
commit
237c65b1f7
@ -4748,7 +4748,8 @@ function from a program - use `org-agenda-get-day-entries' instead."
|
||||
;; list is then no longer a global variable.
|
||||
(org-agenda-reset-markers))
|
||||
;; Prevent `org-compile-prefix-format' to fail when there is no agenda
|
||||
(when org-agenda-buffer (org-compile-prefix-format 'agenda))
|
||||
(when (buffer-live-p org-agenda-buffer)
|
||||
(org-compile-prefix-format 'agenda))
|
||||
(org-set-sorting-strategy 'agenda)
|
||||
(setq args (or args '(:deadline :scheduled :timestamp :sexp)))
|
||||
(let* ((files (if (and entry (stringp entry) (string-match "\\S-" entry))
|
||||
|
Loading…
Reference in New Issue
Block a user