From 8c5cdd00bd0c8df02a376b98e60f005230f53576 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Sun, 17 Aug 2025 17:51:33 +0200 Subject: [PATCH] Provide regular expression in custom Org refile location function Not sure what this is good for, but it might be necessary somewhen? --- site-lisp/db-org.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/site-lisp/db-org.el b/site-lisp/db-org.el index 8a0420a..dad032a 100644 --- a/site-lisp/db-org.el +++ b/site-lisp/db-org.el @@ -498,7 +498,8 @@ Also note that the usual variables governing the behavior of (db/org-get-location t nil (concat prompt " "))))) ; TODO: incorporate verify function (list (buffer-name (marker-buffer pom)) (buffer-file-name (marker-buffer pom)) - "" ; some regexp matching the headline? + ;; The third entry is some regexp matching the headline, apparently? + (format org-complex-heading-regexp-format (org-entry-get pom "ITEM")) (marker-position pom))))