From 83e0451cba680d9a34d3f69f0f12396b039240fd Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 27 Mar 2021 11:43:22 -0400 Subject: [PATCH] Fix org-capture popup rules for partials & non-org files When a capture target didn't have an *.org file extension OR its buffer was displayed before it was renamed to CAPTURE-* (e.g. while a capture template prompts for input) the popup handler fails to capture the new window, displaying it in other-window, rather than a popup. --- modules/lang/org/config.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/lang/org/config.el b/modules/lang/org/config.el index c5a0e8a6b..58b79db41 100644 --- a/modules/lang/org/config.el +++ b/modules/lang/org/config.el @@ -887,7 +887,7 @@ between the two." ("^\\*Org Agenda" :ignore t) ("^\\*Org Src" :size 0.4 :quit nil :select t :autosave t :modeline t :ttl nil) ("^\\*Org-Babel") - ("^CAPTURE-.*\\.org$" :size 0.25 :quit nil :select t :autosave ignore)))) + ("^\\*Capture\\*$\\|CAPTURE-.*$" :size 0.25 :quit nil :select t :autosave ignore)))) (defun +org-init-protocol-lazy-loader-h ()