comparison src/buffer.c @ 57705:804f28bbd89c

(syms_of_buffer): Fix a few typos.
author David Kastrup <dak@gnu.org>
date Tue, 26 Oct 2004 09:45:16 +0000
parents 8c66fdb3c3ba
children 8f225aca7c72 4056279af756 0fe073a08cef
comparison
equal deleted inserted replaced
57704:4ff1d695430a 57705:804f28bbd89c
5810 5810
5811 DEFVAR_PER_BUFFER ("cache-long-line-scans", &current_buffer->cache_long_line_scans, Qnil, 5811 DEFVAR_PER_BUFFER ("cache-long-line-scans", &current_buffer->cache_long_line_scans, Qnil,
5812 doc: /* Non-nil means that Emacs should use caches to handle long lines more quickly. 5812 doc: /* Non-nil means that Emacs should use caches to handle long lines more quickly.
5813 5813
5814 Normally, the line-motion functions work by scanning the buffer for 5814 Normally, the line-motion functions work by scanning the buffer for
5815 newlines. Columnar operations (like move-to-column and 5815 newlines. Columnar operations (like `move-to-column' and
5816 compute-motion) also work by scanning the buffer, summing character 5816 `compute-motion') also work by scanning the buffer, summing character
5817 widths as they go. This works well for ordinary text, but if the 5817 widths as they go. This works well for ordinary text, but if the
5818 buffer's lines are very long (say, more than 500 characters), these 5818 buffer's lines are very long (say, more than 500 characters), these
5819 motion functions will take longer to execute. Emacs may also take 5819 motion functions will take longer to execute. Emacs may also take
5820 longer to update the display. 5820 longer to update the display.
5821 5821
5822 If cache-long-line-scans is non-nil, these motion functions cache the 5822 If `cache-long-line-scans' is non-nil, these motion functions cache the
5823 results of their scans, and consult the cache to avoid rescanning 5823 results of their scans, and consult the cache to avoid rescanning
5824 regions of the buffer until the text is modified. The caches are most 5824 regions of the buffer until the text is modified. The caches are most
5825 beneficial when they prevent the most searching---that is, when the 5825 beneficial when they prevent the most searching---that is, when the
5826 buffer contains long lines and large regions of characters with the 5826 buffer contains long lines and large regions of characters with the
5827 same, fixed screen width. 5827 same, fixed screen width.
5828 5828
5829 When cache-long-line-scans is non-nil, processing short lines will 5829 When `cache-long-line-scans' is non-nil, processing short lines will
5830 become slightly slower (because of the overhead of consulting the 5830 become slightly slower (because of the overhead of consulting the
5831 cache), and the caches will use memory roughly proportional to the 5831 cache), and the caches will use memory roughly proportional to the
5832 number of newlines and characters whose screen width varies. 5832 number of newlines and characters whose screen width varies.
5833 5833
5834 The caches require no explicit maintenance; their accuracy is 5834 The caches require no explicit maintenance; their accuracy is
5904 nil don't display a cursor 5904 nil don't display a cursor
5905 box display a filled box cursor 5905 box display a filled box cursor
5906 hollow display a hollow box cursor 5906 hollow display a hollow box cursor
5907 bar display a vertical bar cursor with default width 5907 bar display a vertical bar cursor with default width
5908 (bar . WIDTH) display a vertical bar cursor with width WIDTH 5908 (bar . WIDTH) display a vertical bar cursor with width WIDTH
5909 hbar display a horisontal bar cursor with default width 5909 hbar display a horizontal bar cursor with default width
5910 (hbar . WIDTH) display a horisontal bar cursor with width WIDTH 5910 (hbar . WIDTH) display a horizontal bar cursor with width WIDTH
5911 ANYTHING ELSE display a hollow box cursor. 5911 ANYTHING ELSE display a hollow box cursor.
5912 5912
5913 When the buffer is displayed in a nonselected window, 5913 When the buffer is displayed in a nonselected window,
5914 this variable has no effect; the cursor appears as a hollow box. */); 5914 this variable has no effect; the cursor appears as a hollow box. */);
5915 5915