aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2014-06-05 23:45:16 -0700
committerGlenn Morris2014-06-05 23:45:16 -0700
commit137dcb47fb022fb99b62e3330915db80b018537e (patch)
treeb9e783457bd68a7c78deac83f25e99030463c66b
parent9f7c9816f6e61841d47f221eaa27c2dc44e96dad (diff)
downloademacs-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/ChangeLog4
-rw-r--r--doc/lispref/display.texi16
-rw-r--r--etc/NEWS8
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 @@
12014-06-06 Glenn Morris <rgm@gnu.org>
2
3 * display.texi (Overlay Properties): Update re priority. (Bug#17234)
4
12014-06-05 Glenn Morris <rgm@gnu.org> 52014-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)}
1518This property's value determines the priority of the overlay. No priority, or 1518This property's value determines the priority of the overlay.
1519@code{nil}, means zero. A non-nil and non-integer value has 1519If you want to specify a priority value, use either @code{nil}
1520undefined behavior. 1520(or zero), or a positive integer. Any other value has undefined behavior.
1521 1521
1522The priority matters when two or more overlays cover the same 1522The priority matters when two or more overlays cover the same
1523character and both specify the same property; the one whose 1523character and both specify the same property; the one whose
@@ -1527,9 +1527,13 @@ completely override the other value; instead, its face attributes
1527override the face attributes of the lower priority @code{face} 1527override the face attributes of the lower priority @code{face}
1528property. 1528property.
1529 1529
1530Currently, all overlays take priority over text properties. Please 1530Currently, all overlays take priority over text properties.
1531avoid using negative priority values, as we have not yet decided just 1531
1532what they should mean. 1532Note that Emacs sometimes uses non-numeric priority values for some of
1533its internal overlays, so do not try to do arithmetic on the
1534priority of an overlay (unless it is one that you created). If you
1535need to put overlays in priority order, use the @var{sorted} argument
1536of @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)}
diff --git a/etc/NEWS b/etc/NEWS
index fce36903c2b..ebd816f5d65 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -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.)
1155If you need to sort arbitrary overlays into priority order, `overlays-at'
1156can 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