aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorMiles Bader2008-07-01 09:39:28 +0000
committerMiles Bader2008-07-01 09:39:28 +0000
commitc4f4682b57dae3d869fe2764e9d6c00143bed1d2 (patch)
treee5b59c0bdbb0419c5ebf9f38abc6651f8901c0cc /doc
parent3726988dc8389b0ad209536a8871f9f69d3817b7 (diff)
downloademacs-c4f4682b57dae3d869fe2764e9d6c00143bed1d2.tar.gz
emacs-c4f4682b57dae3d869fe2764e9d6c00143bed1d2.zip
Implement display-time wrap/line-prefix feature
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1305
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/ChangeLog5
-rw-r--r--doc/lispref/display.texi23
-rw-r--r--doc/lispref/text.texi23
3 files changed, 51 insertions, 0 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index e4fa5529ac4..17b3b61f73e 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,8 @@
12008-07-01 Miles Bader <miles@gnu.org>
2
3 * text.texi (Special Properties):
4 * display.texi (Truncation): Add wrap-prefix and line-prefix.
5
12008-06-28 Johan Bockgård <bojohan@gnu.org> 62008-06-28 Johan Bockgård <bojohan@gnu.org>
2 7
3 * display.texi (Other Image Types): Fix copy/paste error; say 8 * display.texi (Other Image Types): Fix copy/paste error; say
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi
index b09227d3f6c..e7cb51072cc 100644
--- a/doc/lispref/display.texi
+++ b/doc/lispref/display.texi
@@ -191,6 +191,29 @@ If it is non-@code{nil}, these lines are truncated; otherwise,
191 When horizontal scrolling (@pxref{Horizontal Scrolling}) is in use in 191 When horizontal scrolling (@pxref{Horizontal Scrolling}) is in use in
192a window, that forces truncation. 192a window, that forces truncation.
193 193
194@defvar wrap-prefix
195If this buffer-local variable is non-@code{nil}, the prefix it defines
196will be added at display-time to the beginning of every continuation
197line due to text wrapping (so if lines are truncated, the wrap-prefix
198is never used). It may be a string, an image, or a stretch-glyph such
199as used by the `display' text-property. @xref{Display Property}.
200
201A wrap-prefix may also be specified for regions of text using the
202@code{wrap-prefix} text-property (which takes precedence over the
203value of the @code{wrap-prefix} variable). @xref{Special Properties}.
204@end defvar
205
206@defvar line-prefix
207If this buffer-local variable is non-@code{nil}, the prefix it defines
208will be added at display-time to the beginning of every
209non-continuation line It may be a string, an image, or a stretch-glyph
210such as used by the `display' text-property. @xref{Display Property}.
211
212A line-prefix may also be specified for regions of text using the
213@code{line-prefix} text-property (which takes precedence over the
214value of the @code{line-prefix} variable). @xref{Special Properties}.
215@end defvar
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
195continuation to display them, just thinking about them can make Emacs 218continuation to display them, just thinking about them can make Emacs
196redisplay slow. The column computation and indentation functions also 219redisplay slow. The column computation and indentation functions also
diff --git a/doc/lispref/text.texi b/doc/lispref/text.texi
index b1a8653def5..ac2fb090722 100644
--- a/doc/lispref/text.texi
+++ b/doc/lispref/text.texi
@@ -3167,6 +3167,29 @@ A newline can have a @code{line-height} text or overlay property that
3167controls the total height of the display line ending in that newline. 3167controls the total height of the display line ending in that newline.
3168@xref{Line Height}. 3168@xref{Line Height}.
3169 3169
3170@item wrap-prefix
3171If text has a @code{wrap-prefix} property, the prefix it defines will
3172be added at display-time to the beginning of every continuation line
3173due to text wrapping (so if lines are truncated, the wrap-prefix is
3174never used). It may be a string, an image, or a stretch-glyph such as
3175used by the @code{display} text-property. @xref{Display Property}.
3176
3177A wrap-prefix may also be specified for an entire buffer using the
3178@code{wrap-prefix} buffer-local variable (however, a
3179@code{wrap-prefix} text-property takes precedence over the value of
3180the @code{wrap-prefix} variable). @xref{Truncation}.
3181
3182@item line-prefix
3183If text has a @code{line-prefix} property, the prefix it defines will
3184be added at display-time to the beginning of every non-continuation
3185line. It may be a string, an image, or a stretch-glyph such as used
3186by the @code{display} text-property. @xref{Display Property}.
3187
3188A line-prefix may also be specified for an entire buffer using the
3189@code{line-prefix} buffer-local variable (however, a
3190@code{line-prefix} text-property takes precedence over the value of
3191the @code{line-prefix} variable). @xref{Truncation}.
3192
3170@item modification-hooks 3193@item modification-hooks
3171@cindex change hooks for a character 3194@cindex change hooks for a character
3172@cindex hooks for changing a character 3195@cindex hooks for changing a character