From: Dmitry Gutov <dgutov@yandex.ru>
To: 23272@debbugs.gnu.org
Subject: bug#23272: 25.0.92; syntax-propertize-via-font-lock considered harmful
Date: Tue, 12 Apr 2016 01:54:01 +0300 [thread overview]
Message-ID: <8637qrn4dy.fsf@yandex.ru> (raw)
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.
next reply other threads:[~2016-04-11 22:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-11 22:54 Dmitry Gutov [this message]
2019-10-30 15:56 ` bug#23272: 25.0.92; syntax-propertize-via-font-lock considered harmful Lars Ingebrigtsen
2019-11-20 23:22 ` Dmitry Gutov
2019-11-21 12:34 ` Lars Ingebrigtsen
2020-02-29 2:19 ` Stefan Kangas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8637qrn4dy.fsf@yandex.ru \
--to=dgutov@yandex.ru \
--cc=23272@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).