bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#23272: 25.0.92; syntax-propertize-via-font-lock considered harmful


From: Dmitry Gutov
Subject: bug#23272: 25.0.92; syntax-propertize-via-font-lock considered harmful
Date: Tue, 12 Apr 2016 01:54:01 +0300

It makes it impossible to call syntax-propertize without enabling
font-lock-mode first, e.g. when delay-mode-hooks is used.

Example:

(with-temp-buffer
  (insert "-- -*- mode: ada -*-")
  (delay-mode-hooks
    (set-auto-mode))
  (syntax-propertize (point)))

=> (error "Font-lock trying to use keywords before setting them up")

I've hit this when working on a patch in
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=23223#38.





reply via email to

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