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 #16 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: bug#23272: 25.0.92; syntax-propertize-via-font-lock considered
 harmful
Date: Thu, 21 Nov 2019 13:34:14 +0100
Dmitry Gutov <dgutov <at> yandex.ru> writes:

> Since Emacs 26 (where the bug still reproduces), ada-mode has both
> switched to a proper syntax-propertize-function instead of the one 
> mentioned above and moved out of Emacs core, so "mode: ada" isn't
> doing anything in 'emacs -Q'.
>
> So the repro scenario is like this now:
>
> (define-derived-mode foo-mode fundamental-mode "Foo"
>   (setq-local syntax-propertize-function
> 	      (syntax-propertize-via-font-lock nil)))
>
> (with-temp-buffer
>   (insert "-- -*- mode: foo -*-")
>   (delay-mode-hooks
>     (set-auto-mode))
>   (syntax-propertize (point)))

Ah; thanks for the explanation.

> Considering font-lock-syntactic-keywords are obsolete since Emacs 24,
> this is not very important, and people should feel free to close this
> if a fix is not found soon.

OK; I'll leave it open for now, but probably closing this in a month or
so if nothing further happens.

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




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

Previous Next


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