# HG changeset patch # User Stefan Monnier # Date 1006306999 0 # Node ID 3a8e8dd8a64e4c8c9060e56a8ded9c41fdcc59c3 # Parent 36e754afaf7a7cbcf52b7bb83dc52834301e098f *** empty log message *** diff -r 36e754afaf7a -r 3a8e8dd8a64e etc/NEWS --- a/etc/NEWS Wed Nov 21 01:30:35 2001 +0000 +++ b/etc/NEWS Wed Nov 21 01:43:19 2001 +0000 @@ -18,6 +18,9 @@ * Changes in Emacs 21.3 +** jit-lock can now be delayed with `jit-lock-defer-time'. +If it is set to 0.5, fontification will only happen after 0.5s of idle time. + ** If you hit M-C-SPC (mark-sexp) repeatedly, the marked region will now be extended each time, so you can mark the next two sexps with M-C-SPC M-C-SPC, for example. @@ -166,6 +169,24 @@ * Lisp Changes in Emacs 21.3 +** jit-lock obeys a new text-property `jit-lock-defer-multiline'. +If a piece of text with that property gets contextually refontified +(see jit-lock-defer-contextually), then all of that text will +be refontified. This is useful when the syntax of a textual element +depends on text several lines further down (and when font-lock-multiline +is not appropriate to solve that problem). For example in Perl: + + s{ + foo + }{ + bar + }e + +Adding/removing the last `e' changes the `bar' from being a piece of +text to being a piece of code, so you'd put a jit-lock-defer-multiline +property over the second half of the command to force (deferred) +refontification of `bar' whenever the `e' is added/removed. + ** describe-vector now takes a second argument `describer' which is called to print the entries' values. It default to `princ'.