diff options
| author | Thien-Thi Nguyen | 2006-05-27 17:46:37 +0000 |
|---|---|---|
| committer | Thien-Thi Nguyen | 2006-05-27 17:46:37 +0000 |
| commit | 047ad6f5a2bedb0dab47ee0cbb25b82ef058ed08 (patch) | |
| tree | 96a71851b9e007d78f8eae7101b368108f92b3cc /etc | |
| parent | 1b04f30a22bb4a8bdf547c51873143b02c40b45e (diff) | |
| download | emacs-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/NEWS | 39 |
1 files changed, 21 insertions, 18 deletions
| @@ -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 | ||
| 3449 | a newline after each pretty-printed entry and after the header and footer. | ||
| 3450 | This allows you to create multiple-entry ewocs on a single line and to | ||
| 3451 | effect "invisible" nodes by arranging for the pretty-printer to not print | ||
| 3452 | anything for those nodes. | ||
| 3453 | |||
| 3454 | For 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 |
| 3592 | there is no longer a shortage of memory. | 3613 | there is no longer a shortage of memory. |
| 3593 | 3614 | ||
| 3594 | ** The ewoc package no longer inserts a newline after each pretty-printed | ||
| 3595 | entry and after the header and footer, to allow for multiple-entry ewocs to | ||
| 3596 | display on a single line. | ||
| 3597 | |||
| 3598 | To make pre-existing client code behave the same way as before, you must | ||
| 3599 | arrange to insert a newline in three places: the pretty-printer function, | ||
| 3600 | the header and the footer. It is anyway a good idea to specify a non-empty | ||
| 3601 | footer so that markers after the ewoc's buffer text are properly updated. | ||
| 3602 | For 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 | ||