# HG changeset patch # User Thien-Thi Nguyen # Date 1148751997 0 # Node ID ec0ff7478c19435235a59d1a59654a748627e292 # Parent 4f58e5dcbbc0ed9d8f0a78eb46ca40a7dad08b76 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". diff -r 4f58e5dcbbc0 -r ec0ff7478c19 etc/NEWS --- a/etc/NEWS Sat May 27 17:41:18 2006 +0000 +++ b/etc/NEWS Sat May 27 17:46:37 2006 +0000 @@ -3440,6 +3440,27 @@ --- ** cplus-md.el has been deleted. + +** Ewoc changes + +*** The new function `ewoc-delete' deletes specified nodes. + +*** `ewoc-create' now takes optional arg NOSEP, which inhibits insertion of +a newline after each pretty-printed entry and after the header and footer. +This allows you to create multiple-entry ewocs on a single line and to +effect "invisible" nodes by arranging for the pretty-printer to not print +anything for those nodes. + +For example, these two sequences of expressions behave identically: + +;; NOSEP nil +(defun PP (data) (insert (format "%S" data))) +(ewoc-create 'PP "start\n") + +;; NOSEP t +(defun PP (data) (insert (format "%S\n" data))) +(ewoc-create 'PP "start\n\n" "\n" t) + * Changes in Emacs 22.1 on non-free operating systems @@ -3591,24 +3612,6 @@ ** The variable `memory-full' now remains t until there is no longer a shortage of memory. -** The ewoc package no longer inserts a newline after each pretty-printed -entry and after the header and footer, to allow for multiple-entry ewocs to -display on a single line. - -To make pre-existing client code behave the same way as before, you must -arrange to insert a newline in three places: the pretty-printer function, -the header and the footer. It is anyway a good idea to specify a non-empty -footer so that markers after the ewoc's buffer text are properly updated. -For example: - -;; before -(defun PP (data) (insert (format "%S" data))) -(ewoc-create 'PP "start\n") - -;; now -(defun PP (data) (insert (format "%S\n" data))) -(ewoc-create 'PP "start\n\n" "\n") - * Lisp Changes in Emacs 22.1