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

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

[nongnu] elpa/rainbow-delimiters ecacb319d3 093/188: Wrap the font-lock-


From: ELPA Syncer
Subject: [nongnu] elpa/rainbow-delimiters ecacb319d3 093/188: Wrap the font-lock-fontify-buffer call with with-no-warnings.
Date: Sat, 1 Jan 2022 00:58:55 -0500 (EST)

branch: elpa/rainbow-delimiters
commit ecacb319d30626a22e1dd87367d233e323c362aa
Author: Fanael Linithien <fanael4@gmail.com>
Commit: Fanael Linithien <fanael4@gmail.com>

    Wrap the font-lock-fontify-buffer call with with-no-warnings.
    
    font-lock-fontify-buffer is for interactive use only in Emacs >= 24.5.
---
 rainbow-delimiters.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rainbow-delimiters.el b/rainbow-delimiters.el
index 0d4d571cb1..fb44af773d 100644
--- a/rainbow-delimiters.el
+++ b/rainbow-delimiters.el
@@ -572,7 +572,7 @@ Used by font-lock for dynamic highlighting."
   (when font-lock-mode
     (if (fboundp 'font-lock-flush)
         (font-lock-flush)
-      (font-lock-fontify-buffer))))
+      (with-no-warnings (font-lock-fontify-buffer)))))
 
 ;;;###autoload
 (defun rainbow-delimiters-mode-enable ()



reply via email to

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