aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorThien-Thi Nguyen2006-05-27 17:46:37 +0000
committerThien-Thi Nguyen2006-05-27 17:46:37 +0000
commit047ad6f5a2bedb0dab47ee0cbb25b82ef058ed08 (patch)
tree96a71851b9e007d78f8eae7101b368108f92b3cc /etc
parent1b04f30a22bb4a8bdf547c51873143b02c40b45e (diff)
downloademacs-047ad6f5a2bedb0dab47ee0cbb25b82ef058ed08.tar.gz
emacs-047ad6f5a2bedb0dab47ee0cbb25b82ef058ed08.zip
Rewrite Ewoc entry and move
from under "Incompatible Lisp Changes in Emacs 22.1" to under "Changes in Specialized Modes and Packages in Emacs 22.1".
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS39
1 files changed, 21 insertions, 18 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 80c2a250ea4..de99c76cf07 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -3440,6 +3440,27 @@ variable `calculator-radix-grouping-mode'.
3440 3440
3441--- 3441---
3442** cplus-md.el has been deleted. 3442** cplus-md.el has been deleted.
3443
3444** Ewoc changes
3445
3446*** The new function `ewoc-delete' deletes specified nodes.
3447
3448*** `ewoc-create' now takes optional arg NOSEP, which inhibits insertion of
3449a newline after each pretty-printed entry and after the header and footer.
3450This allows you to create multiple-entry ewocs on a single line and to
3451effect "invisible" nodes by arranging for the pretty-printer to not print
3452anything for those nodes.
3453
3454For example, these two sequences of expressions behave identically:
3455
3456;; NOSEP nil
3457(defun PP (data) (insert (format "%S" data)))
3458(ewoc-create 'PP "start\n")
3459
3460;; NOSEP t
3461(defun PP (data) (insert (format "%S\n" data)))
3462(ewoc-create 'PP "start\n\n" "\n" t)
3463
3443 3464
3444* Changes in Emacs 22.1 on non-free operating systems 3465* Changes in Emacs 22.1 on non-free operating systems
3445 3466
@@ -3591,24 +3612,6 @@ deleting the part of subprocess output that matches the input.
3591** The variable `memory-full' now remains t until 3612** The variable `memory-full' now remains t until
3592there is no longer a shortage of memory. 3613there is no longer a shortage of memory.
3593 3614
3594** The ewoc package no longer inserts a newline after each pretty-printed
3595entry and after the header and footer, to allow for multiple-entry ewocs to
3596display on a single line.
3597
3598To make pre-existing client code behave the same way as before, you must
3599arrange to insert a newline in three places: the pretty-printer function,
3600the header and the footer. It is anyway a good idea to specify a non-empty
3601footer so that markers after the ewoc's buffer text are properly updated.
3602For example:
3603
3604;; before
3605(defun PP (data) (insert (format "%S" data)))
3606(ewoc-create 'PP "start\n")
3607
3608;; now
3609(defun PP (data) (insert (format "%S\n" data)))
3610(ewoc-create 'PP "start\n\n" "\n")
3611
3612 3615
3613* Lisp Changes in Emacs 22.1 3616* Lisp Changes in Emacs 22.1
3614 3617