Merge branch 'maint'
This commit is contained in:
commit
caf762e9bc
|
@ -2403,7 +2403,8 @@ the currently selected interval size."
|
||||||
(setq scope (org-agenda-files t))
|
(setq scope (org-agenda-files t))
|
||||||
(setq scope (org-add-archive-files scope)))
|
(setq scope (org-add-archive-files scope)))
|
||||||
((eq scope 'file-with-archives)
|
((eq scope 'file-with-archives)
|
||||||
(setq scope (org-add-archive-files (list (buffer-file-name)))
|
(setq scope (and buffer-file-name
|
||||||
|
(org-add-archive-files (list buffer-file-name)))
|
||||||
one-file-with-archives t)))
|
one-file-with-archives t)))
|
||||||
(setq scope-is-list (and scope (listp scope)))
|
(setq scope-is-list (and scope (listp scope)))
|
||||||
(if scope-is-list
|
(if scope-is-list
|
||||||
|
|
|
@ -15490,7 +15490,7 @@ a *different* entry, you cannot use these techniques."
|
||||||
(if (not scope)
|
(if (not scope)
|
||||||
(progn
|
(progn
|
||||||
(org-agenda-prepare-buffers
|
(org-agenda-prepare-buffers
|
||||||
(list (buffer-file-name (current-buffer))))
|
(and buffer-file-name (list buffer-file-name)))
|
||||||
(setq res (org-scan-tags func matcher todo-only start-level)))
|
(setq res (org-scan-tags func matcher todo-only start-level)))
|
||||||
;; Get the right scope
|
;; Get the right scope
|
||||||
(cond
|
(cond
|
||||||
|
@ -15502,7 +15502,7 @@ a *different* entry, you cannot use these techniques."
|
||||||
(setq scope (org-agenda-files t))
|
(setq scope (org-agenda-files t))
|
||||||
(setq scope (org-add-archive-files scope)))
|
(setq scope (org-add-archive-files scope)))
|
||||||
((eq scope 'file)
|
((eq scope 'file)
|
||||||
(setq scope (list (buffer-file-name))))
|
(setq scope (and buffer-file-name (list buffer-file-name))))
|
||||||
((eq scope 'file-with-archives)
|
((eq scope 'file-with-archives)
|
||||||
(setq scope (org-add-archive-files (list (buffer-file-name))))))
|
(setq scope (org-add-archive-files (list (buffer-file-name))))))
|
||||||
(org-agenda-prepare-buffers scope)
|
(org-agenda-prepare-buffers scope)
|
||||||
|
|
Loading…
Reference in New Issue