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.
master
Fanael Linithien 12 years ago
parent 4bac5ce118
commit e75a4b18e9
  1. 3
      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.

Loading…
Cancel
Save