Honour existing restrictions when regenerating the agenda
* lisp/org.el: Honour existing restrictions when regenerating the agenda Narrowed org buffers are now retained when regenerating the agenda with org-agenda-redo
This commit is contained in:
parent
53eb6088a2
commit
a0a26cddda
|
@ -16498,13 +16498,13 @@ When a buffer is unmodified, it is just killed. When modified, it is saved
|
||||||
(rea (concat ":" org-archive-tag ":"))
|
(rea (concat ":" org-archive-tag ":"))
|
||||||
bmp file re)
|
bmp file re)
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(save-restriction
|
|
||||||
(while (setq file (pop files))
|
(while (setq file (pop files))
|
||||||
(catch 'nextfile
|
(catch 'nextfile
|
||||||
(if (bufferp file)
|
(if (bufferp file)
|
||||||
(set-buffer file)
|
(set-buffer file)
|
||||||
(org-check-agenda-file file)
|
(org-check-agenda-file file)
|
||||||
(set-buffer (org-get-agenda-file-buffer file)))
|
(set-buffer (org-get-agenda-file-buffer file)))
|
||||||
|
(save-restriction
|
||||||
(widen)
|
(widen)
|
||||||
(setq bmp (buffer-modified-p))
|
(setq bmp (buffer-modified-p))
|
||||||
(org-refresh-category-properties)
|
(org-refresh-category-properties)
|
||||||
|
|
Loading…
Reference in New Issue