bug-gnu-emacs
[Top][All Lists]
Advanced

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

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


From: Andreas Röhler
Subject: bug#20911: 24.5.3; Syntax should not require font-lock
Date: Sat, 27 Jun 2015 17:19:55 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

python.el and others.

While working at a general-close mode, tests succeeded locally, but Travis CI repeatedly sent errors like this:

FAILED gen-close-python-doublequoted-tqs-test
FAILED gen-close-python-singlequoted-tqs-test

for example from
https://travis-ci.org/emacs-berlin/general-close/builds/68578148

These tests succeed, if boolean gen-verbose-p was set to t, which OTOH isn't intendet at batch-mode.

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

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

Documentation:
Mode-specific function to apply syntax-table' text properties. It is the work horse ofsyntax-propertize', which is called by things like
Font-Lock and indentation.


Setting up syntax seems to require font-lock - which doesn't feel right.

;;;;;;;;;;

GNU Emacs 24.5.3 (i686-pc-linux-gnu, GTK+ Version 2.24.23) of 2015-04-20





reply via email to

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