diff options
| author | Gregory Heytings | 2022-07-29 08:11:10 +0000 |
|---|---|---|
| committer | Gregory Heytings | 2022-07-29 10:15:06 +0200 |
| commit | cdaa3b51f1500ca1d91452037efe68fa0f7808bc (patch) | |
| tree | 305a98ddcf9a72ab00f2eae459abdc222ff66358 | |
| parent | c6029ed34ea83c7c0adbd723d63bd78ff0ec0796 (diff) | |
| download | emacs-feature/long-lines-and-font-locking.tar.gz emacs-feature/long-lines-and-font-locking.zip | |
Further minor improvements of documentationfeature/long-lines-and-font-locking
* src/xdisp.c (syms_of_xdisp) <fontification-functions>:
* etc/NEWS: Further minor wording improvements.
| -rw-r--r-- | etc/NEWS | 19 | ||||
| -rw-r--r-- | src/xdisp.c | 8 |
2 files changed, 14 insertions, 13 deletions
| @@ -334,18 +334,19 @@ Use something like 'M-x shell RET ssh <host> RET' instead. | |||
| 334 | * Changes in Emacs 29.1 | 334 | * Changes in Emacs 29.1 |
| 335 | 335 | ||
| 336 | --- | 336 | --- |
| 337 | ** Emacs is now capable of editing files with very long lines. | 337 | ** Emacs is now capable of editing files with arbitrarily long lines. |
| 338 | The display of long lines has been optimized, and Emacs should no | 338 | The display of long lines has been optimized, and Emacs no longer |
| 339 | longer choke when a buffer on display contains long lines. The | 339 | chokes when a buffer on display contains long lines. The variable |
| 340 | variable 'long-line-threshold' controls whether and when these display | 340 | 'long-line-threshold' controls whether and when these display |
| 341 | optimizations are in effect. | 341 | optimizations are in effect. |
| 342 | 342 | ||
| 343 | If you still experience slowdowns while editing files with long lines, | 343 | If you still experience slowdowns while editing files with long lines, |
| 344 | this is due either to the current major mode or to one of the enabled | 344 | this is due to line truncation, or to one of the enabled minor modes, |
| 345 | minor modes. Try disabling the minor modes, or turn on 'so-long-mode' | 345 | or to the current major mode. Try turning off line truncation with |
| 346 | or 'so-long-minor-mode', or visit the file with find-file-literally' | 346 | 'C-x x t', or try disabling all known slow minor modes with 'M-x |
| 347 | instead of the usual 'C-x C-f'. Another reason for slowdown could be | 347 | so-long-minor-mode', or try disabling all known slow minor modes and |
| 348 | line truncation, which you can turn off with 'C-x x t'. | 348 | the major mode with 'M-x so-long-mode', or visit the file with 'M-x |
| 349 | find-file-literally' instead of the usual 'C-x C-f'. | ||
| 349 | 350 | ||
| 350 | Note that the display optimizations in these cases may cause the | 351 | Note that the display optimizations in these cases may cause the |
| 351 | buffer to be occasionally mis-fontified. | 352 | buffer to be occasionally mis-fontified. |
diff --git a/src/xdisp.c b/src/xdisp.c index 3ef3c0d3796..e13d68eab9d 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -36656,10 +36656,10 @@ fontify a region starting at POS in the current buffer, and give | |||
| 36656 | fontified regions the property `fontified' with a non-nil value. | 36656 | fontified regions the property `fontified' with a non-nil value. |
| 36657 | 36657 | ||
| 36658 | Note that, when the buffer contains one or more lines whose length is | 36658 | Note that, when the buffer contains one or more lines whose length is |
| 36659 | above `long-line-threshold', the narrowing of the buffer is locked | 36659 | above `long-line-threshold', these functions only have access to a |
| 36660 | (see `narrow-to-region'), and these functions only have access to a | 36660 | small portion of the buffer around POS, and cannot use `widen' to gain |
| 36661 | small portion of the buffer around POS and cannot use `widen' to gain | 36661 | access to other portions of buffer text because the narrowing of the |
| 36662 | access to other portions of buffer text. */); | 36662 | buffer is locked (see `narrow-to-region'). */); |
| 36663 | Vfontification_functions = Qnil; | 36663 | Vfontification_functions = Qnil; |
| 36664 | Fmake_variable_buffer_local (Qfontification_functions); | 36664 | Fmake_variable_buffer_local (Qfontification_functions); |
| 36665 | 36665 | ||