GNU bug report logs - #20911
24.5.3; Syntax should not require font-lock

Previous Next

Package: emacs;

Reported by: Andreas Röhler <andreas.roehler <at> easy-emacs.de>

Date: Sat, 27 Jun 2015 15:21:03 UTC

Severity: normal

Tags: notabug

Found in version 24.5.3

Done: Dmitry Gutov <dgutov <at> yandex.ru>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 20911-done <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Andreas Röhler <andreas.roehler <at> easy-emacs.de>,
 20911-done <at> debbugs.gnu.org
Subject: Re: bug#20911: 24.5.3; Syntax should not require font-lock
Date: Sat, 27 Jun 2015 18:31:02 +0300
Tags: notabug

Hi!

On 06/27/2015 06:19 PM, Andreas Röhler wrote:

> Both macros in question -- for example gen-test-with-python-buffer--
> have this:
>
>     `(when gen-verbose-p
>   (switch-to-buffer (current-buffer))
>   (font-lock-fontify-buffer))`

Don't do that, then.

> AFAICS the error is caused, because TQS-syntax in python.el is set by
> syntax-propertize-function

Call (syntax-propertize (point-max)) instead.

> Documentation:
> Mode-specific function to apply syntax-table' text properties. It is the
> work horse of `syntax-propertize', which is called by things like
> Font-Lock and indentation.
>
>
> Setting up syntax seems to require font-lock - which doesn't feel right.

That only says that font-lock requires it, not vice versa. The docstring 
even mentions `syntax-propertize'.




This bug report was last modified 10 years and 24 days ago.

Previous Next


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