Compare commits

...

3 Commits

Author SHA1 Message Date
e6b2f9eefb
Make custom Org location query function available in main init file 2025-08-17 15:42:47 +02:00
9f55facdb6
Do not create new nodes when refiling
I haven't used this … ever?
2025-08-17 15:42:00 +02:00
195a6afb5f
Avoid duplicate entries in Org location queries
This happens when the current buffer is already part of the Org agenda files.  In this case, we do
not add the default buffer to the list of search files.
2025-08-17 15:41:07 +02:00
2 changed files with 5 additions and 3 deletions

View File

@ -727,7 +727,8 @@ split horizontally again, but this extra work should not matter much."
db/org-bookmark-store-link
db/org-bookmark-export
db/org-lint-invalid-bookmark-link
db/org-lint-possible-bookmark-link))
db/org-lint-possible-bookmark-link
db/org-get-location))
;; This is to make the byte-compiler happy about setting some variables later on
;; that are defined in those packages.
@ -872,7 +873,7 @@ split horizontally again, but this extra work should not matter much."
(db/org-default-notes-file . (:maxlevel . 9)))
org-refile-use-outline-path 'buffer-name
org-refile-use-cache nil
org-refile-allow-creating-parent-nodes 'confirm
org-refile-allow-creating-parent-nodes 'nil
org-indirect-buffer-display 'current-window
org-outline-path-complete-in-steps nil
org-refile-target-verify-function 'db/verify-refile-target)

View File

@ -1896,7 +1896,8 @@ linking to any item."
org-agenda-files)))
(scope (cond (use-all-org-files
(append (list (buffer-file-name default-buffer))
(append (unless current-buffer-is-in-org-agenda-files? ; avoid duplicate entries
(list (buffer-file-name default-buffer)))
(org-agenda-files)
(cl-remove-if-not #'stringp
org-agenda-text-search-extra-files)))