Forráskód Böngészése

org-agenda-get-sexps: Query headline at point once in skip function

* lisp/org-agenda.el (org-agenda-get-sexps): Provide headline at point
for `org-agenda-skip'.
Ihor Radchenko 2 éve
szülő
commit
8cc821bda2
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      lisp/org-agenda.el

+ 1 - 1
lisp/org-agenda.el

@@ -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))