emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/denote 8c1f4f8d4c 1/4: Move conditional backlink fontif


From: ELPA Syncer
Subject: [elpa] externals/denote 8c1f4f8d4c 1/4: Move conditional backlink fontification outside the major mode
Date: Thu, 25 Jul 2024 06:57:51 -0400 (EDT)

branch: externals/denote
commit 8c1f4f8d4cadfaabed19a24eda19a60684cc8868
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    Move conditional backlink fontification outside the major mode
---
 denote.el | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/denote.el b/denote.el
index d1cf892696..d2d19469c1 100644
--- a/denote.el
+++ b/denote.el
@@ -4333,9 +4333,7 @@ matching identifiers."
 
 (define-derived-mode denote-backlinks-mode xref--xref-buffer-mode "Backlinks"
   "Major mode for backlinks buffers."
-  :interactive nil
-  (unless denote-backlinks-show-context
-    (font-lock-add-keywords nil denote-faces-file-name-keywords-for-backlinks 
t)))
+  :interactive nil)
 
 (defun denote-link--prepare-backlinks (query &optional files-matching-regexp 
buffer-name display-buffer-action)
   "Create backlinks' buffer called BUFFER-NAME for the current file matching 
QUERY.
@@ -4377,7 +4375,8 @@ concomitant alist, such as 
`denote-backlinks-display-buffer-action'."
                 (insert (car x))
                 (make-button (line-beginning-position) (line-end-position) 
:type 'denote-link-backlink-button)
                 (newline))
-              xref-alist))
+              xref-alist)
+        (font-lock-add-keywords nil 
denote-faces-file-name-keywords-for-backlinks t))
       (goto-char (point-min))
       (setq-local revert-buffer-function
                   (lambda (_ignore-auto _noconfirm)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]