diff options
| author | Miles Bader | 2008-07-01 09:39:28 +0000 |
|---|---|---|
| committer | Miles Bader | 2008-07-01 09:39:28 +0000 |
| commit | c4f4682b57dae3d869fe2764e9d6c00143bed1d2 (patch) | |
| tree | e5b59c0bdbb0419c5ebf9f38abc6651f8901c0cc /doc | |
| parent | 3726988dc8389b0ad209536a8871f9f69d3817b7 (diff) | |
| download | emacs-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/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/lispref/display.texi | 23 | ||||
| -rw-r--r-- | doc/lispref/text.texi | 23 |
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 @@ | |||
| 1 | 2008-07-01 Miles Bader <miles@gnu.org> | ||
| 2 | |||
| 3 | * text.texi (Special Properties): | ||
| 4 | * display.texi (Truncation): Add wrap-prefix and line-prefix. | ||
| 5 | |||
| 1 | 2008-06-28 Johan Bockgård <bojohan@gnu.org> | 6 | 2008-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 |
| 192 | a window, that forces truncation. | 192 | a window, that forces truncation. |
| 193 | 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 | ||
| 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 |
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 | |||
| 3167 | controls the total height of the display line ending in that newline. | 3167 | controls 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 | ||
| 3171 | If text has a @code{wrap-prefix} property, the prefix it defines will | ||
| 3172 | be added at display-time to the beginning of every continuation line | ||
| 3173 | due to text wrapping (so if lines are truncated, the wrap-prefix is | ||
| 3174 | never used). It may be a string, an image, or a stretch-glyph such as | ||
| 3175 | used by the @code{display} text-property. @xref{Display Property}. | ||
| 3176 | |||
| 3177 | A 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 | ||
| 3180 | the @code{wrap-prefix} variable). @xref{Truncation}. | ||
| 3181 | |||
| 3182 | @item line-prefix | ||
| 3183 | If text has a @code{line-prefix} property, the prefix it defines will | ||
| 3184 | be added at display-time to the beginning of every non-continuation | ||
| 3185 | line. It may be a string, an image, or a stretch-glyph such as used | ||
| 3186 | by the @code{display} text-property. @xref{Display Property}. | ||
| 3187 | |||
| 3188 | A 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 | ||
| 3191 | the @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 |