aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2001-09-17 14:44:14 +0000
committerEli Zaretskii2001-09-17 14:44:14 +0000
commita408ce1816b17f59ba3c15d8a38dd1a0a1463243 (patch)
treebda5d7c22096e9b5dca48b040a6925a5678650ce
parentd8a973aa6ec202751d871890b89b3799e185ea57 (diff)
downloademacs-a408ce1816b17f59ba3c15d8a38dd1a0a1463243.tar.gz
emacs-a408ce1816b17f59ba3c15d8a38dd1a0a1463243.zip
Document Font Lock problems with parens in column zero.
-rw-r--r--etc/PROBLEMS22
1 files changed, 22 insertions, 0 deletions
diff --git a/etc/PROBLEMS b/etc/PROBLEMS
index 6610814d021..254e29ec90c 100644
--- a/etc/PROBLEMS
+++ b/etc/PROBLEMS
@@ -345,6 +345,28 @@ src/s/hpux10.h.
345* Crashes when displaying uncompressed GIFs with version 345* Crashes when displaying uncompressed GIFs with version
346libungif-4.1.0 are resolved by using version libungif-4.1.0b1. 346libungif-4.1.0 are resolved by using version libungif-4.1.0b1.
347 347
348* Font Lock displays portions of the bufefr in incorrect faces.
349
350By far the most frequent cause of this is a parenthesis `(' or a brace
351`{' in column zero. Font Lock assumes that such a paren is outside of
352any comment or string. This is of course not true in general, but the
353vast majority of well-formatted program source files don't have such
354parens, and therefore this assumption is used to allow optimizations
355in Font Lock's syntactical analysis. These optimizations avoid some
356patological cases where jit-lock, the Just-in-Time fontification
357introduced with Emacs 21.1, could significantly slow down scrolling
358through the buffer, especially scrolling backwards, and also jumping
359to the end of a very large buffer.
360
361If you don't use large buffers, or have a very fast machine which
362makes the delays insignificant, you can avoid the incorrect
363fontification by setting the variable
364`font-lock-beginning-of-syntax-function' to a nil value. (This must
365be done _after_ turning on Font Lock.)
366
367Another alternative is to avoid a paren in column zero. For example,
368in a Lisp string you could precede the paren with a backslash.
369
348* Interrupting Cygwin port of Bash from Emacs doesn't work. 370* Interrupting Cygwin port of Bash from Emacs doesn't work.
349 371
350Cygwin 1.x builds of the ported Bash cannot be interrupted from the 372Cygwin 1.x builds of the ported Bash cannot be interrupted from the