|
@@ -7166,10 +7166,10 @@ in the file. Otherwise, restriction will be to the current subtree."
|
|
|
(list (buffer-file-name (buffer-base-buffer))))
|
|
|
(org-back-to-heading t)
|
|
|
(move-overlay org-agenda-restriction-lock-overlay
|
|
|
- (point) (save-excursion (org-end-of-subtree t) (point)))
|
|
|
+ (point) (save-excursion (org-end-of-subtree t t) (point)))
|
|
|
(move-marker org-agenda-restrict-begin (point))
|
|
|
(move-marker org-agenda-restrict-end
|
|
|
- (save-excursion (org-end-of-subtree t)))
|
|
|
+ (save-excursion (org-end-of-subtree t t)))
|
|
|
(message "Locking agenda restriction to subtree"))
|
|
|
(put 'org-agenda-files 'org-restrict
|
|
|
(list (buffer-file-name (buffer-base-buffer))))
|