diff options
| -rw-r--r-- | lisp/font-lock.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/font-lock.el b/lisp/font-lock.el index 8cb43bc0bd8..052e92391af 100644 --- a/lisp/font-lock.el +++ b/lisp/font-lock.el | |||
| @@ -1516,7 +1516,9 @@ Sets various variables using `font-lock-defaults' (or, if nil, using | |||
| 1516 | (make-local-variable 'font-lock-fontified) | 1516 | (make-local-variable 'font-lock-fontified) |
| 1517 | (make-local-variable 'font-lock-multiline) | 1517 | (make-local-variable 'font-lock-multiline) |
| 1518 | (let* ((defaults (or font-lock-defaults | 1518 | (let* ((defaults (or font-lock-defaults |
| 1519 | (cdr (assq major-mode font-lock-defaults-alist)))) | 1519 | (cdr (assq major-mode |
| 1520 | (with-no-warnings | ||
| 1521 | font-lock-defaults-alist))))) | ||
| 1520 | (keywords | 1522 | (keywords |
| 1521 | (font-lock-choose-keywords (nth 0 defaults) | 1523 | (font-lock-choose-keywords (nth 0 defaults) |
| 1522 | (font-lock-value-in-major-mode font-lock-maximum-decoration))) | 1524 | (font-lock-value-in-major-mode font-lock-maximum-decoration))) |