Skip to content

Commit

Permalink
org-agenda-get-sexps: Query headline at point once in skip function
Browse files Browse the repository at this point in the history
* lisp/org-agenda.el (org-agenda-get-sexps): Provide headline at point
for `org-agenda-skip'.
  • Loading branch information
yantar92 committed Sep 16, 2022
1 parent 1de67d0 commit 8cc821b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lisp/org-agenda.el
Original file line number Diff line number Diff line change
Expand Up @@ -5908,7 +5908,7 @@ displayed in agenda view."
(goto-char (point-min))
(while (re-search-forward regexp nil t)
(catch :skip
(org-agenda-skip)
(org-agenda-skip (org-element-lineage (org-element-at-point) '(headline inlinetask) 'with-self))
(setq beg (match-beginning 0))
(goto-char (1- (match-end 0)))
(setq b (point))
Expand Down

0 comments on commit 8cc821b

Please sign in to comment.