Variable: denote-grep-display-buffer-action

denote-grep-display-buffer-action is a customizable variable defined in denote.el.

Value

((display-buffer-same-window)
 (mode . denote-query-mode))

Documentation

display-buffer action for the results of denote-grep.

This is the same as denote-backlinks-display-buffer-action. Refer to its documentation for the technicalities.

This variable was added, or its default value changed, in denote version 4.0.0.

Source Code

;; Defined in ~/.emacs.d/elpa/denote-4.2.3/denote.el
;;;;;; Additional features for searching file contents

;; TODO 2026-04-06: I need to review `denote-grep' and all its
;; ancillary functions.

;; NOTE 2025-12-12: Unlike `denote-query-links-display-buffer-action'
;; we want `denote-grep' to behave like `denote-dired', whereby
;; `dired' normally works in the current window.
(defcustom denote-grep-display-buffer-action
  '((display-buffer-same-window)
    (mode . denote-query-mode))
  "`display-buffer' action for the results of `denote-grep'.
This is the same as `denote-backlinks-display-buffer-action'.  Refer to
its documentation for the technicalities."
  :risky t
  :type `(choice
          (alist :key-type
                 (choice :tag "Condition"
                         regexp
                         (function :tag "Matcher function"))
                 :value-type ,display-buffer--action-custom-type)
          (function :tag "Custom function to return an action alist"))
  :package-version '(denote . "4.0.0")
  :group 'denote-query)