branch: externals/denote
commit 61d21920091ee1df0d821dfbd3a8945eac6175f5
Author: Protesilaos Stavrou <i...@protesilaos.com>
Commit: Protesilaos Stavrou <i...@protesilaos.com>

    Remove needless denote-fontify-query-links (per commit ff50b32)
    
    The technical discussion for this is in issue 561:
    <https://github.com/protesilaos/denote/issues/561>.
---
 denote.el | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/denote.el b/denote.el
index 59c7dabe84..29eab4a5cc 100644
--- a/denote.el
+++ b/denote.el
@@ -5431,10 +5431,6 @@ Implementation based on the function 
`org-activate-links'."
   (when-let* ((type (denote-filetype-heuristics (buffer-file-name))))
     (denote--fontify-links-subr (denote--link-in-context-regexp type) limit)))
 
-(defun denote-fontify-query-links (limit)
-    "Provide font-lock matcher to fontify query links up to LIMIT."
-  (denote--fontify-links-subr "\\[\\[denote:\\(?1:[^[]*?\\)]]" limit))
-
 (define-obsolete-function-alias
   'denote-get-identifier-at-point
   'denote-get-link-identifier-or-query-term-at-point
@@ -5482,12 +5478,12 @@ major mode is not `org-mode' (or derived therefrom).  
Consider using
   (if denote-fontify-links-mode
       (progn
         (add-to-invisibility-spec 'denote-link)
-        (font-lock-add-keywords nil '((denote-fontify-links) 
(denote-fontify-query-links)))
+        (font-lock-add-keywords nil '((denote-fontify-links)))
         (setq-local thing-at-point-provider-alist
                     (append thing-at-point-provider-alist
                             '((url . denote--get-link-file-path-at-point)))))
     (remove-from-invisibility-spec 'denote-link)
-    (font-lock-remove-keywords nil '((denote-fontify-links) 
(denote-fontify-query-links)))
+    (font-lock-remove-keywords nil '((denote-fontify-links)))
     (setq-local thing-at-point-provider-alist
                 (delete
                  '(url . denote--get-link-file-path-at-point)

Reply via email to