all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: 23272@debbugs.gnu.org
Subject: bug#23272: 25.0.92; syntax-propertize-via-font-lock considered harmful
Date: Thu, 21 Nov 2019 13:34:14 +0100	[thread overview]
Message-ID: <871ru14ddl.fsf@gnus.org> (raw)
In-Reply-To: <a7960645-7d4b-1e65-07de-095259e8778b@yandex.ru> (Dmitry Gutov's message of "Thu, 21 Nov 2019 01:22:41 +0200")

Dmitry Gutov <dgutov@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





  reply	other threads:[~2019-11-21 12:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-11 22:54 bug#23272: 25.0.92; syntax-propertize-via-font-lock considered harmful Dmitry Gutov
2019-10-30 15:56 ` Lars Ingebrigtsen
2019-11-20 23:22   ` Dmitry Gutov
2019-11-21 12:34     ` Lars Ingebrigtsen [this message]
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871ru14ddl.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=23272@debbugs.gnu.org \
    --cc=dgutov@yandex.ru \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.