[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#20911: 24.5.3; Syntax should not require font-lock

From: Dmitry Gutov
Subject: bug#20911: 24.5.3; Syntax should not require font-lock
Date: Sat, 27 Jun 2015 18:31:02 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0

Tags: notabug


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))

Don't do that, then.

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

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

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'.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]