summaryrefslogtreecommitdiff
path: root/lisp/progmodes/cwarn.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/progmodes/cwarn.el')
-rw-r--r--lisp/progmodes/cwarn.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/cwarn.el b/lisp/progmodes/cwarn.el
index 4e4fc138877..1aa5170591a 100644
--- a/lisp/progmodes/cwarn.el
+++ b/lisp/progmodes/cwarn.el
@@ -188,7 +188,7 @@ and disable it otherwise. If called from Lisp, enable the mode
if ARG is omitted or nil."
:group 'cwarn :lighter cwarn-mode-text
(cwarn-font-lock-keywords cwarn-mode)
- (if font-lock-mode (font-lock-fontify-buffer)))
+ (font-lock-flush))
;;;###autoload
(define-obsolete-function-alias 'turn-on-cwarn-mode 'cwarn-mode "24.1")