]> git.eshelyaron.com Git - emacs.git/commitdiff
Doc changes for cache-long-scans
authorGlenn Morris <rgm@gnu.org>
Thu, 6 Feb 2014 04:27:26 +0000 (20:27 -0800)
committerGlenn Morris <rgm@gnu.org>
Thu, 6 Feb 2014 04:27:26 +0000 (20:27 -0800)
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.

doc/lispref/ChangeLog
doc/lispref/display.texi
doc/lispref/positions.texi
etc/NEWS
src/ChangeLog
src/buffer.c

index b38256a44928fdb8440813d2577465696e13984f..eff328caa60d057120474b7e198a130c06269ed7 100644 (file)
@@ -1,3 +1,8 @@
+2014-02-06  Glenn Morris  <rgm@gnu.org>
+
+       * display.texi (Truncation):
+       * positions.texi (Screen Lines): Do not mention cache-long-scans.
+
 2014-01-31  Juri Linkov  <juri@jurta.org>
 
        * searching.texi (String Search): Incremental word search fixes.
index 9123e940e0863f5ffc6ea21028361bb382c019a3..7d52ad7207b843c9d171b96cefdd16da35887e77 100644 (file)
@@ -214,6 +214,7 @@ A line prefix may also be specified for regions of text using the
 over the @code{line-prefix} variable.  @xref{Special Properties}.
 @end defvar
 
+@ignore
   If your buffer contains only very short lines, you might find it
 advisable to set @code{cache-long-scans} to @code{nil}.
 
@@ -227,6 +228,7 @@ Turning off the cache speeds up processing of short lines somewhat.
 
 This variable is automatically buffer-local in every buffer.
 @end defvar
+@end ignore
 
 @node The Echo Area
 @section The Echo Area
index 9a9152b4044730e898be4da6aff7ec338932ea97..f83173e2038d31c103b52336a7c0290fd6c14da0 100644 (file)
@@ -486,9 +486,11 @@ flag, and display table may vary between windows).  @xref{Usual
 Display}.
 
   These functions scan text to determine where screen lines break, and
-thus take time proportional to the distance scanned.  If you intend to
-use them heavily, Emacs provides caches which may improve the
-performance of your code.  @xref{Truncation, cache-long-scans}.
+thus take time proportional to the distance scanned.
+@ignore
+If you intend to use them heavily, Emacs provides caches which may
+improve the performance of your code.  @xref{Truncation, cache-long-scans}.
+@end ignore
 
 @defun vertical-motion count &optional window
 This function moves point to the start of the screen line @var{count}
index 7f58284d978fa8e173af785c73822c3b5415c1dc..ea2287e0f5e6384add9abfcf042ac51d3267e622 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -240,9 +240,9 @@ to be printed in other formats (octal, hexadecimal, and character).
 ** `write-region-inhibit-fsync' now defaults to t in batch mode.
 
 +++
-** `cache-long-line-scans' has been renamed to `cache-long-scans'
+** `cache-long-line-scans' is now non-nil, and renamed to `cache-long-scans',
 because it affects caching of paragraph scanning results as well.
-Also, it is now enabled by default.
+There is no reason to set this to nil except for debugging purposes.
 
 ---
 ** The option `set-mark-default-inactive' has been deleted.
index 2df6c99edc1d91a1fad223da215f9f63cd8bfe64..925cb4625a21bb12c634ab0f1bca2545c43780fa 100644 (file)
@@ -1,3 +1,7 @@
+2014-02-06  Glenn Morris  <rgm@gnu.org>
+
+       * buffer.c (cache-long-scans): Doc fix.
+
 2014-02-05  Eli Zaretskii  <eliz@gnu.org>
 
        * w32fns.c (Fw32_shell_execute): Doc fix.
index 33bd80d3f4fc2f828b557fef633dde6f53501d66..cbf7291e3c8cfadb50fc876aefd28da55b716463 100644 (file)
@@ -6130,6 +6130,8 @@ If the value of the variable is t, undo information is not recorded.  */);
   DEFVAR_PER_BUFFER ("cache-long-scans", &BVAR (current_buffer, cache_long_scans), Qnil,
                     doc: /* Non-nil means that Emacs should use caches in attempt to speedup buffer scans.
 
+There is no reason to set this to nil except for debugging purposes.
+
 Normally, the line-motion functions work by scanning the buffer for
 newlines.  Columnar operations (like `move-to-column' and
 `compute-motion') also work by scanning the buffer, summing character