comparison doc/lispref/display.texi @ 96470:2af6e85f13d5

Implement display-time wrap/line-prefix feature Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1305
author Miles Bader <miles@gnu.org>
date Tue, 01 Jul 2008 09:39:28 +0000
parents e29e1bbed939
children 9592c50233ab
comparison
equal deleted inserted replaced
96469:40d413a9e07b 96470:2af6e85f13d5
188 @code{truncate-lines} says what to do with them. 188 @code{truncate-lines} says what to do with them.
189 @end defopt 189 @end defopt
190 190
191 When horizontal scrolling (@pxref{Horizontal Scrolling}) is in use in 191 When horizontal scrolling (@pxref{Horizontal Scrolling}) is in use in
192 a window, that forces truncation. 192 a window, that forces truncation.
193
194 @defvar wrap-prefix
195 If this buffer-local variable is non-@code{nil}, the prefix it defines
196 will be added at display-time to the beginning of every continuation
197 line due to text wrapping (so if lines are truncated, the wrap-prefix
198 is never used). It may be a string, an image, or a stretch-glyph such
199 as used by the `display' text-property. @xref{Display Property}.
200
201 A wrap-prefix may also be specified for regions of text using the
202 @code{wrap-prefix} text-property (which takes precedence over the
203 value of the @code{wrap-prefix} variable). @xref{Special Properties}.
204 @end defvar
205
206 @defvar line-prefix
207 If this buffer-local variable is non-@code{nil}, the prefix it defines
208 will be added at display-time to the beginning of every
209 non-continuation line It may be a string, an image, or a stretch-glyph
210 such as used by the `display' text-property. @xref{Display Property}.
211
212 A line-prefix may also be specified for regions of text using the
213 @code{line-prefix} text-property (which takes precedence over the
214 value of the @code{line-prefix} variable). @xref{Special Properties}.
215 @end defvar
193 216
194 If your buffer contains @emph{very} long lines, and you use 217 If your buffer contains @emph{very} long lines, and you use
195 continuation to display them, just thinking about them can make Emacs 218 continuation to display them, just thinking about them can make Emacs
196 redisplay slow. The column computation and indentation functions also 219 redisplay slow. The column computation and indentation functions also
197 become slow. Then you might find it advisable to set 220 become slow. Then you might find it advisable to set