branch: externals/denote commit 0728da8a28a174852ce5076631e514c1059d9179 Author: Protesilaos Stavrou <i...@protesilaos.com> Commit: Protesilaos Stavrou <i...@protesilaos.com>
Use correct revert-buffer-function in denote--display-buffer-from-xref-alist The code was submitted by Jean-Philippe Gagné Guay as part of the larger pull request 621: <https://github.com/protesilaos/denote/pull/621>. --- denote.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/denote.el b/denote.el index 284fa08d92..f2955275ba 100644 --- a/denote.el +++ b/denote.el @@ -5573,7 +5573,7 @@ alist, such as `denote-backlinks-display-buffer-action'." (setq-local revert-buffer-function (lambda (_ignore-auto _noconfirm) (when-let* ((buffer-file-name file)) - (denote--display-buffer xref-alist buffer-name display-buffer-action))))) + (denote--display-buffer-from-xref-alist xref-alist buffer-name display-buffer-action))))) (display-buffer buffer-name display-buffer-action))) ;; NOTE 2025-03-24: The `&rest' is there because we used to have an