branch: externals/org-transclusion
commit 66f686dfacd89550ac4f27c8d610b83a2afd24df
Author: Noboru Ota <[email protected]>
Commit: Noboru Ota <[email protected]>
fix: #299 switching buffer when transcluding
---
org-transclusion.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/org-transclusion.el b/org-transclusion.el
index 1352880a8d..ddbe861195 100644
--- a/org-transclusion.el
+++ b/org-transclusion.el
@@ -17,7 +17,7 @@
;; Author: Noboru Ota <[email protected]>
;; Created: 10 October 2020
-;; Last modified: 15 January 2026
+;; Last modified: 06 March 2026
;; URL: https://github.com/nobiot/org-transclusion
;; Keywords: org-mode, transclusion, writing
@@ -1114,7 +1114,8 @@ offsets from file beginning, not from cursor position."
;; t is a less surprising default than nil - fuzzy search.
(let ((org-link-search-must-match-exact-headline t))
(condition-case nil
- (progn
+ (let ((display-buffer-alist '((".*" display-buffer-no-window
+ (allow-no-window t)))))
(org-link-open link)
;; In the target buffer temporarily.
(save-excursion