diff options
| author | Glenn Morris | 2014-06-05 23:45:16 -0700 |
|---|---|---|
| committer | Glenn Morris | 2014-06-05 23:45:16 -0700 |
| commit | 137dcb47fb022fb99b62e3330915db80b018537e (patch) | |
| tree | b9e783457bd68a7c78deac83f25e99030463c66b | |
| parent | 9f7c9816f6e61841d47f221eaa27c2dc44e96dad (diff) | |
| download | emacs-137dcb47fb022fb99b62e3330915db80b018537e.tar.gz emacs-137dcb47fb022fb99b62e3330915db80b018537e.zip | |
Document incompatible overlay priority change
* doc/lispref/display.texi (Overlay Properties): Update re priority.
* etc/NEWS: Related edit.
Fixes: debbugs:17234
| -rw-r--r-- | doc/lispref/ChangeLog | 4 | ||||
| -rw-r--r-- | doc/lispref/display.texi | 16 | ||||
| -rw-r--r-- | etc/NEWS | 8 |
3 files changed, 20 insertions, 8 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 51f74f2eb12..060dca1adcf 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2014-06-06 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * display.texi (Overlay Properties): Update re priority. (Bug#17234) | ||
| 4 | |||
| 1 | 2014-06-05 Glenn Morris <rgm@gnu.org> | 5 | 2014-06-05 Glenn Morris <rgm@gnu.org> |
| 2 | 6 | ||
| 3 | * package.texi (Package Archives): Mention signing packages. | 7 | * package.texi (Package Archives): Mention signing packages. |
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi index e93f9ab5a4d..35282138b1a 100644 --- a/doc/lispref/display.texi +++ b/doc/lispref/display.texi | |||
| @@ -1515,9 +1515,9 @@ of them: | |||
| 1515 | @table @code | 1515 | @table @code |
| 1516 | @item priority | 1516 | @item priority |
| 1517 | @kindex priority @r{(overlay property)} | 1517 | @kindex priority @r{(overlay property)} |
| 1518 | This property's value determines the priority of the overlay. No priority, or | 1518 | This property's value determines the priority of the overlay. |
| 1519 | @code{nil}, means zero. A non-nil and non-integer value has | 1519 | If you want to specify a priority value, use either @code{nil} |
| 1520 | undefined behavior. | 1520 | (or zero), or a positive integer. Any other value has undefined behavior. |
| 1521 | 1521 | ||
| 1522 | The priority matters when two or more overlays cover the same | 1522 | The priority matters when two or more overlays cover the same |
| 1523 | character and both specify the same property; the one whose | 1523 | character and both specify the same property; the one whose |
| @@ -1527,9 +1527,13 @@ completely override the other value; instead, its face attributes | |||
| 1527 | override the face attributes of the lower priority @code{face} | 1527 | override the face attributes of the lower priority @code{face} |
| 1528 | property. | 1528 | property. |
| 1529 | 1529 | ||
| 1530 | Currently, all overlays take priority over text properties. Please | 1530 | Currently, all overlays take priority over text properties. |
| 1531 | avoid using negative priority values, as we have not yet decided just | 1531 | |
| 1532 | what they should mean. | 1532 | Note that Emacs sometimes uses non-numeric priority values for some of |
| 1533 | its internal overlays, so do not try to do arithmetic on the | ||
| 1534 | priority of an overlay (unless it is one that you created). If you | ||
| 1535 | need to put overlays in priority order, use the @var{sorted} argument | ||
| 1536 | of @code{overlays-at}. @xref{Finding Overlays}. | ||
| 1533 | 1537 | ||
| 1534 | @item window | 1538 | @item window |
| 1535 | @kindex window @r{(overlay property)} | 1539 | @kindex window @r{(overlay property)} |
| @@ -1149,6 +1149,12 @@ low-level libraries gfilenotify.c, inotify.c or w32notify.c. | |||
| 1149 | 1149 | ||
| 1150 | * Incompatible Lisp Changes in Emacs 24.4 | 1150 | * Incompatible Lisp Changes in Emacs 24.4 |
| 1151 | 1151 | ||
| 1152 | +++ | ||
| 1153 | ** Do not assume that the priority of all overlays will be numeric. | ||
| 1154 | (You should still only specify integer priorities on overlays you create.) | ||
| 1155 | If you need to sort arbitrary overlays into priority order, `overlays-at' | ||
| 1156 | can now optionally do this. | ||
| 1157 | |||
| 1152 | --- | 1158 | --- |
| 1153 | ** `kill-region' has lost its `yank-handler' optional argument. | 1159 | ** `kill-region' has lost its `yank-handler' optional argument. |
| 1154 | 1160 | ||
| @@ -1248,8 +1254,6 @@ the other. | |||
| 1248 | 1254 | ||
| 1249 | * Lisp Changes in Emacs 24.4 | 1255 | * Lisp Changes in Emacs 24.4 |
| 1250 | 1256 | ||
| 1251 | ** overlays-at can optionally sort its result by priority. | ||
| 1252 | |||
| 1253 | +++ | 1257 | +++ |
| 1254 | ** The second argument of `eval' can now specify a lexical environment. | 1258 | ** The second argument of `eval' can now specify a lexical environment. |
| 1255 | 1259 | ||