diff options
| author | Glenn Morris | 2014-02-05 20:27:26 -0800 |
|---|---|---|
| committer | Glenn Morris | 2014-02-05 20:27:26 -0800 |
| commit | 314ffdb1d7dfe361462be949ae953334e1aa5977 (patch) | |
| tree | 8d17995822006d1989f529b490c1401fcdd10fb0 | |
| parent | b3a271a56ca3f7f9b137f2ae502c6cf86b1097b7 (diff) | |
| download | emacs-314ffdb1d7dfe361462be949ae953334e1aa5977.tar.gz emacs-314ffdb1d7dfe361462be949ae953334e1aa5977.zip | |
Doc changes for cache-long-scans
Ref: http://debbugs.gnu.org/15797#65
* doc/lispref/display.texi (Truncation):
* doc/lispref/positions.texi (Screen Lines): Do not mention cache-long-scans.
* src/buffer.c (cache-long-scans): Doc fix.
* etc/NEWS: Related edit.
| -rw-r--r-- | doc/lispref/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/lispref/display.texi | 2 | ||||
| -rw-r--r-- | doc/lispref/positions.texi | 8 | ||||
| -rw-r--r-- | etc/NEWS | 4 | ||||
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/buffer.c | 2 |
6 files changed, 20 insertions, 5 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index b38256a4492..eff328caa60 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-02-06 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * display.texi (Truncation): | ||
| 4 | * positions.texi (Screen Lines): Do not mention cache-long-scans. | ||
| 5 | |||
| 1 | 2014-01-31 Juri Linkov <juri@jurta.org> | 6 | 2014-01-31 Juri Linkov <juri@jurta.org> |
| 2 | 7 | ||
| 3 | * searching.texi (String Search): Incremental word search fixes. | 8 | * searching.texi (String Search): Incremental word search fixes. |
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi index 9123e940e08..7d52ad7207b 100644 --- a/doc/lispref/display.texi +++ b/doc/lispref/display.texi | |||
| @@ -214,6 +214,7 @@ A line prefix may also be specified for regions of text using the | |||
| 214 | over the @code{line-prefix} variable. @xref{Special Properties}. | 214 | over the @code{line-prefix} variable. @xref{Special Properties}. |
| 215 | @end defvar | 215 | @end defvar |
| 216 | 216 | ||
| 217 | @ignore | ||
| 217 | If your buffer contains only very short lines, you might find it | 218 | If your buffer contains only very short lines, you might find it |
| 218 | advisable to set @code{cache-long-scans} to @code{nil}. | 219 | advisable to set @code{cache-long-scans} to @code{nil}. |
| 219 | 220 | ||
| @@ -227,6 +228,7 @@ Turning off the cache speeds up processing of short lines somewhat. | |||
| 227 | 228 | ||
| 228 | This variable is automatically buffer-local in every buffer. | 229 | This variable is automatically buffer-local in every buffer. |
| 229 | @end defvar | 230 | @end defvar |
| 231 | @end ignore | ||
| 230 | 232 | ||
| 231 | @node The Echo Area | 233 | @node The Echo Area |
| 232 | @section The Echo Area | 234 | @section The Echo Area |
diff --git a/doc/lispref/positions.texi b/doc/lispref/positions.texi index 9a9152b4044..f83173e2038 100644 --- a/doc/lispref/positions.texi +++ b/doc/lispref/positions.texi | |||
| @@ -486,9 +486,11 @@ flag, and display table may vary between windows). @xref{Usual | |||
| 486 | Display}. | 486 | Display}. |
| 487 | 487 | ||
| 488 | These functions scan text to determine where screen lines break, and | 488 | These functions scan text to determine where screen lines break, and |
| 489 | thus take time proportional to the distance scanned. If you intend to | 489 | thus take time proportional to the distance scanned. |
| 490 | use them heavily, Emacs provides caches which may improve the | 490 | @ignore |
| 491 | performance of your code. @xref{Truncation, cache-long-scans}. | 491 | If you intend to use them heavily, Emacs provides caches which may |
| 492 | improve the performance of your code. @xref{Truncation, cache-long-scans}. | ||
| 493 | @end ignore | ||
| 492 | 494 | ||
| 493 | @defun vertical-motion count &optional window | 495 | @defun vertical-motion count &optional window |
| 494 | This function moves point to the start of the screen line @var{count} | 496 | This function moves point to the start of the screen line @var{count} |
| @@ -240,9 +240,9 @@ to be printed in other formats (octal, hexadecimal, and character). | |||
| 240 | ** `write-region-inhibit-fsync' now defaults to t in batch mode. | 240 | ** `write-region-inhibit-fsync' now defaults to t in batch mode. |
| 241 | 241 | ||
| 242 | +++ | 242 | +++ |
| 243 | ** `cache-long-line-scans' has been renamed to `cache-long-scans' | 243 | ** `cache-long-line-scans' is now non-nil, and renamed to `cache-long-scans', |
| 244 | because it affects caching of paragraph scanning results as well. | 244 | because it affects caching of paragraph scanning results as well. |
| 245 | Also, it is now enabled by default. | 245 | There is no reason to set this to nil except for debugging purposes. |
| 246 | 246 | ||
| 247 | --- | 247 | --- |
| 248 | ** The option `set-mark-default-inactive' has been deleted. | 248 | ** The option `set-mark-default-inactive' has been deleted. |
diff --git a/src/ChangeLog b/src/ChangeLog index 2df6c99edc1..925cb4625a2 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2014-02-06 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * buffer.c (cache-long-scans): Doc fix. | ||
| 4 | |||
| 1 | 2014-02-05 Eli Zaretskii <eliz@gnu.org> | 5 | 2014-02-05 Eli Zaretskii <eliz@gnu.org> |
| 2 | 6 | ||
| 3 | * w32fns.c (Fw32_shell_execute): Doc fix. | 7 | * w32fns.c (Fw32_shell_execute): Doc fix. |
diff --git a/src/buffer.c b/src/buffer.c index 33bd80d3f4f..cbf7291e3c8 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -6130,6 +6130,8 @@ If the value of the variable is t, undo information is not recorded. */); | |||
| 6130 | DEFVAR_PER_BUFFER ("cache-long-scans", &BVAR (current_buffer, cache_long_scans), Qnil, | 6130 | DEFVAR_PER_BUFFER ("cache-long-scans", &BVAR (current_buffer, cache_long_scans), Qnil, |
| 6131 | doc: /* Non-nil means that Emacs should use caches in attempt to speedup buffer scans. | 6131 | doc: /* Non-nil means that Emacs should use caches in attempt to speedup buffer scans. |
| 6132 | 6132 | ||
| 6133 | There is no reason to set this to nil except for debugging purposes. | ||
| 6134 | |||
| 6133 | Normally, the line-motion functions work by scanning the buffer for | 6135 | Normally, the line-motion functions work by scanning the buffer for |
| 6134 | newlines. Columnar operations (like `move-to-column' and | 6136 | newlines. Columnar operations (like `move-to-column' and |
| 6135 | `compute-motion') also work by scanning the buffer, summing character | 6137 | `compute-motion') also work by scanning the buffer, summing character |