branch: elpa/rainbow-delimiters
commit e75a4b18e9b0d3e618805f1a90d299fe6026910a
Author: Fanael Linithien <[email protected]>
Commit: Fanael Linithien <[email protected]>

    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