diff options
| author | Eli Zaretskii | 2009-04-11 08:54:44 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2009-04-11 08:54:44 +0000 |
| commit | b20ecfa1c43a79be4ca6f33b63c2b3656e41f4b3 (patch) | |
| tree | ff889c8ae04a6a4c5610b572c03e376c349546ae | |
| parent | cd093dcf56632f26b48c90419ef96b90c3bb9043 (diff) | |
| download | emacs-b20ecfa1c43a79be4ca6f33b63c2b3656e41f4b3.tar.gz emacs-b20ecfa1c43a79be4ca6f33b63c2b3656e41f4b3.zip | |
(Overlays): Overlays don't scale well. See
http://lists.gnu.org/archive/html/emacs-devel/2009-04/msg00243.html.
| -rw-r--r-- | doc/lispref/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/lispref/display.texi | 8 |
2 files changed, 13 insertions, 0 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 503212097d6..58349355a0b 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2009-04-11 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * display.texi (Overlays): Overlays don't scale well. See | ||
| 4 | http://lists.gnu.org/archive/html/emacs-devel/2009-04/msg00243.html. | ||
| 5 | |||
| 1 | 2009-04-10 Chong Yidong <cyd@stupidchicken.com> | 6 | 2009-04-10 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 7 | ||
| 3 | * syntax.texi (Syntax Table Functions): Document cons cell | 8 | * syntax.texi (Syntax Table Functions): Document cons cell |
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi index b017ce70704..a6c09cd0e30 100644 --- a/doc/lispref/display.texi +++ b/doc/lispref/display.texi | |||
| @@ -1148,6 +1148,14 @@ object that belongs to a particular buffer, and has a specified | |||
| 1148 | beginning and end. It also has properties that you can examine and set; | 1148 | beginning and end. It also has properties that you can examine and set; |
| 1149 | these affect the display of the text within the overlay. | 1149 | these affect the display of the text within the overlay. |
| 1150 | 1150 | ||
| 1151 | @cindex scalability of overlays | ||
| 1152 | The visual effect of an overlay is the same as of the corresponding | ||
| 1153 | text property (@pxref{Text Properties}). However, due to a different | ||
| 1154 | implementation, overlays generally don't scale well (many operations | ||
| 1155 | take a time that is proportional to the number of overlays in the | ||
| 1156 | buffer). If you need to affect the visual appearance of many portions | ||
| 1157 | in the buffer, we recommend to use text properties. | ||
| 1158 | |||
| 1151 | An overlay uses markers to record its beginning and end; thus, | 1159 | An overlay uses markers to record its beginning and end; thus, |
| 1152 | editing the text of the buffer adjusts the beginning and end of each | 1160 | editing the text of the buffer adjusts the beginning and end of each |
| 1153 | overlay so that it stays with the text. When you create the overlay, | 1161 | overlay so that it stays with the text. When you create the overlay, |