GNU bug report logs - #23272
25.0.92; syntax-propertize-via-font-lock considered harmful

Previous Next

Package: emacs;

Reported by: Dmitry Gutov <dgutov <at> yandex.ru>

Date: Mon, 11 Apr 2016 22:55:01 UTC

Severity: normal

Tags: moreinfo

Found in version 25.0.92

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 23272 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Dmitry Gutov <dgutov <at> yandex.ru>
Cc: 23272 <at> debbugs.gnu.org
Subject: Re: 25.0.92; syntax-propertize-via-font-lock considered harmful
Date: Wed, 30 Oct 2019 16:56:54 +0100
Dmitry Gutov <dgutov <at> yandex.ru> writes:

> 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'm unable to reproduce this bug on the current trunk.  Has this been
fixed in the three years since it was reported?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 5 years and 83 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.