comparison src/buffer.c @ 90037:0fe073a08cef

Revision: miles@gnu.org--gnu-2004/emacs--unicode--0--patch-65 Merge from emacs--cvs-trunk--0 Patches applied: * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-634 - miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-639 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-640 Merge from gnus--rel--5.10 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-641 Update from CVS * miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-59 - miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-60 Update from CVS
author Miles Bader <miles@gnu.org>
date Wed, 27 Oct 2004 05:42:04 +0000
parents e23928ac5a97 804f28bbd89c
children f2ebccfa87d4
comparison
equal deleted inserted replaced
90036:af754c88f187 90037:0fe073a08cef
5826 5826
5827 DEFVAR_PER_BUFFER ("cache-long-line-scans", &current_buffer->cache_long_line_scans, Qnil, 5827 DEFVAR_PER_BUFFER ("cache-long-line-scans", &current_buffer->cache_long_line_scans, Qnil,
5828 doc: /* Non-nil means that Emacs should use caches to handle long lines more quickly. 5828 doc: /* Non-nil means that Emacs should use caches to handle long lines more quickly.
5829 5829
5830 Normally, the line-motion functions work by scanning the buffer for 5830 Normally, the line-motion functions work by scanning the buffer for
5831 newlines. Columnar operations (like move-to-column and 5831 newlines. Columnar operations (like `move-to-column' and
5832 compute-motion) also work by scanning the buffer, summing character 5832 `compute-motion') also work by scanning the buffer, summing character
5833 widths as they go. This works well for ordinary text, but if the 5833 widths as they go. This works well for ordinary text, but if the
5834 buffer's lines are very long (say, more than 500 characters), these 5834 buffer's lines are very long (say, more than 500 characters), these
5835 motion functions will take longer to execute. Emacs may also take 5835 motion functions will take longer to execute. Emacs may also take
5836 longer to update the display. 5836 longer to update the display.
5837 5837
5838 If cache-long-line-scans is non-nil, these motion functions cache the 5838 If `cache-long-line-scans' is non-nil, these motion functions cache the
5839 results of their scans, and consult the cache to avoid rescanning 5839 results of their scans, and consult the cache to avoid rescanning
5840 regions of the buffer until the text is modified. The caches are most 5840 regions of the buffer until the text is modified. The caches are most
5841 beneficial when they prevent the most searching---that is, when the 5841 beneficial when they prevent the most searching---that is, when the
5842 buffer contains long lines and large regions of characters with the 5842 buffer contains long lines and large regions of characters with the
5843 same, fixed screen width. 5843 same, fixed screen width.
5844 5844
5845 When cache-long-line-scans is non-nil, processing short lines will 5845 When `cache-long-line-scans' is non-nil, processing short lines will
5846 become slightly slower (because of the overhead of consulting the 5846 become slightly slower (because of the overhead of consulting the
5847 cache), and the caches will use memory roughly proportional to the 5847 cache), and the caches will use memory roughly proportional to the
5848 number of newlines and characters whose screen width varies. 5848 number of newlines and characters whose screen width varies.
5849 5849
5850 The caches require no explicit maintenance; their accuracy is 5850 The caches require no explicit maintenance; their accuracy is
5920 nil don't display a cursor 5920 nil don't display a cursor
5921 box display a filled box cursor 5921 box display a filled box cursor
5922 hollow display a hollow box cursor 5922 hollow display a hollow box cursor
5923 bar display a vertical bar cursor with default width 5923 bar display a vertical bar cursor with default width
5924 (bar . WIDTH) display a vertical bar cursor with width WIDTH 5924 (bar . WIDTH) display a vertical bar cursor with width WIDTH
5925 hbar display a horisontal bar cursor with default width 5925 hbar display a horizontal bar cursor with default width
5926 (hbar . WIDTH) display a horisontal bar cursor with width WIDTH 5926 (hbar . WIDTH) display a horizontal bar cursor with width WIDTH
5927 ANYTHING ELSE display a hollow box cursor. 5927 ANYTHING ELSE display a hollow box cursor.
5928 5928
5929 When the buffer is displayed in a nonselected window, 5929 When the buffer is displayed in a nonselected window,
5930 this variable has no effect; the cursor appears as a hollow box. */); 5930 this variable has no effect; the cursor appears as a hollow box. */);
5931 5931