Mercurial > emacs
diff 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 |
line wrap: on
line diff
--- a/doc/lispref/display.texi Tue Jul 01 07:09:03 2008 +0000 +++ b/doc/lispref/display.texi Tue Jul 01 09:39:28 2008 +0000 @@ -191,6 +191,29 @@ When horizontal scrolling (@pxref{Horizontal Scrolling}) is in use in a window, that forces truncation. +@defvar wrap-prefix +If this buffer-local variable is non-@code{nil}, the prefix it defines +will be added at display-time to the beginning of every continuation +line due to text wrapping (so if lines are truncated, the wrap-prefix +is never used). It may be a string, an image, or a stretch-glyph such +as used by the `display' text-property. @xref{Display Property}. + +A wrap-prefix may also be specified for regions of text using the +@code{wrap-prefix} text-property (which takes precedence over the +value of the @code{wrap-prefix} variable). @xref{Special Properties}. +@end defvar + +@defvar line-prefix +If this buffer-local variable is non-@code{nil}, the prefix it defines +will be added at display-time to the beginning of every +non-continuation line It may be a string, an image, or a stretch-glyph +such as used by the `display' text-property. @xref{Display Property}. + +A line-prefix may also be specified for regions of text using the +@code{line-prefix} text-property (which takes precedence over the +value of the @code{line-prefix} variable). @xref{Special Properties}. +@end defvar + If your buffer contains @emph{very} long lines, and you use continuation to display them, just thinking about them can make Emacs redisplay slow. The column computation and indentation functions also