diff options
| author | Eli Zaretskii | 2001-09-17 14:44:14 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2001-09-17 14:44:14 +0000 |
| commit | a408ce1816b17f59ba3c15d8a38dd1a0a1463243 (patch) | |
| tree | bda5d7c22096e9b5dca48b040a6925a5678650ce | |
| parent | d8a973aa6ec202751d871890b89b3799e185ea57 (diff) | |
| download | emacs-a408ce1816b17f59ba3c15d8a38dd1a0a1463243.tar.gz emacs-a408ce1816b17f59ba3c15d8a38dd1a0a1463243.zip | |
Document Font Lock problems with parens in column zero.
| -rw-r--r-- | etc/PROBLEMS | 22 |
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 |
| 346 | libungif-4.1.0 are resolved by using version libungif-4.1.0b1. | 346 | libungif-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 | |||
| 350 | By 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 | ||
| 352 | any comment or string. This is of course not true in general, but the | ||
| 353 | vast majority of well-formatted program source files don't have such | ||
| 354 | parens, and therefore this assumption is used to allow optimizations | ||
| 355 | in Font Lock's syntactical analysis. These optimizations avoid some | ||
| 356 | patological cases where jit-lock, the Just-in-Time fontification | ||
| 357 | introduced with Emacs 21.1, could significantly slow down scrolling | ||
| 358 | through the buffer, especially scrolling backwards, and also jumping | ||
| 359 | to the end of a very large buffer. | ||
| 360 | |||
| 361 | If you don't use large buffers, or have a very fast machine which | ||
| 362 | makes the delays insignificant, you can avoid the incorrect | ||
| 363 | fontification by setting the variable | ||
| 364 | `font-lock-beginning-of-syntax-function' to a nil value. (This must | ||
| 365 | be done _after_ turning on Font Lock.) | ||
| 366 | |||
| 367 | Another alternative is to avoid a paren in column zero. For example, | ||
| 368 | in 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 | ||
| 350 | Cygwin 1.x builds of the ported Bash cannot be interrupted from the | 372 | Cygwin 1.x builds of the ported Bash cannot be interrupted from the |