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

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

[nongnu] elpa/rainbow-delimiters e75a4b18e9 159/188: Remove unneeded wit


From: ELPA Syncer
Subject: [nongnu] elpa/rainbow-delimiters e75a4b18e9 159/188: Remove unneeded with-no-warnings.
Date: Sat, 1 Jan 2022 00:59:01 -0500 (EST)

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

    Remove unneeded with-no-warnings.
    
    The presence of a (boundp 'foo) call is enough to suppress warnings
    about foo being obsolete, see the docstring of
    byte-compile-maybe-guarded.
---
 rainbow-delimiters.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/rainbow-delimiters.el b/rainbow-delimiters.el
index 00988c64b0..854449a2c0 100644
--- a/rainbow-delimiters.el
+++ b/rainbow-delimiters.el
@@ -266,8 +266,7 @@ Used by font-lock for dynamic highlighting."
       ;; Obsolete equivalent of `syntax-begin-function'.
       (when (bound-and-true-p font-lock-beginning-of-syntax-function)
         (setq flush-needed t)
-        (with-no-warnings
-          (set (make-local-variable 'font-lock-beginning-of-syntax-function) 
nil)))
+        (set (make-local-variable 'font-lock-beginning-of-syntax-function) 
nil))
       (when flush-needed
         ;; We modified `syntax-begin-function', so flush the cache to avoid
         ;; getting cached values that used the old value.



reply via email to

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