Skip to content

Commit 5f70636

Browse files
committedOct 7, 2022
Add: (org-ql-find-display-buffer-action)
1 parent e54ba01 commit 5f70636

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

‎org-ql-find.el

+6-1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@
4343
"Functions called when selecting an entry."
4444
:type 'hook)
4545

46+
(defcustom org-ql-find-display-buffer-action '(display-buffer-same-window)
47+
"Display buffer action list for `org-ql-find'.
48+
See function `display-buffer'."
49+
:type 'sexp)
50+
4651
;;;; Functions
4752

4853
;;;###autoload
@@ -80,7 +85,7 @@ single predicate)."
8085
:prompt prompt)))
8186
(with-current-buffer (marker-buffer marker)
8287
(goto-char marker)
83-
(display-buffer (current-buffer))
88+
(display-buffer (current-buffer) org-ql-find-display-buffer-action)
8489
(select-window (get-buffer-window (current-buffer)))
8590
(run-hook-with-args 'org-ql-find-goto-hook))))
8691

0 commit comments

Comments
 (0)
Please sign in to comment.