# HG changeset patch # User Richard M. Stallman # Date 1112130517 0 # Node ID ff6aac2d0e0bd113c9797184c0a528b47acd203a # Parent 112759b1d443a5d3bcab313ff18c20876ba9afb6 *** empty log message *** diff -r 112759b1d443 -r ff6aac2d0e0b etc/NEWS --- a/etc/NEWS Tue Mar 29 21:08:26 2005 +0000 +++ b/etc/NEWS Tue Mar 29 21:08:37 2005 +0000 @@ -2436,6 +2436,17 @@ * New modes and packages in Emacs 22.1 +++ +** The new package longlines.el provides a minor mode for editing text +files composed of long lines, based on the `use-hard-newlines' +mechanism. The long lines are broken up by inserting soft newlines, +which are automatically removed when saving the file to disk or +copying into the kill ring, clipboard, etc. By default, Longlines +mode inserts soft newlines automatically during editing, a behavior +referred to as "soft word wrap" in other text editors. This is +similar to Refill mode, but more reliable. To turn the word wrap +feature off, set `longlines-auto-wrap' to nil. + ++++ ** The new package conf-mode.el handles thousands of configuration files, with varying syntaxes for comments (;, #, //, /* */ or !), assignment (var = value, var : value, var value or keyword var value) and sections ([section] or @@ -2712,6 +2723,17 @@ * Lisp Changes in Emacs 22.1 +++ +** The new function `filter-buffer-substring' extracts a buffer +substring, passes it through a set of filter functions, and returns +the filtered substring. It is used instead of `buffer-substring' or +`delete-and-extract-region' when copying text into a user-accessible +data structure, like the kill-ring, X clipboard, or a register. The +list of filter function is specified by the new variable +`buffer-substring-filters'. For example, Longlines mode uses +`buffer-substring-filters' to remove soft newlines from the copied +text. + ++++ ** An element of buffer-undo-list can now have the form (apply FUNNAME . ARGS), where FUNNAME is a symbol other than t or nil. That stands for a high-level change that should be undone by evaluating (apply diff -r 112759b1d443 -r ff6aac2d0e0b lisp/ChangeLog --- a/lisp/ChangeLog Tue Mar 29 21:08:26 2005 +0000 +++ b/lisp/ChangeLog Tue Mar 29 21:08:37 2005 +0000 @@ -1,3 +1,18 @@ +2005-03-29 Richard M. Stallman + + * simple.el (idle-update-delay): Move definition up. + +2005-03-29 Chong Yidong + + * longlines.el: New file. + + * simple.el (buffer-substring-filters): New variable. + (filter-buffer-substring): New function. + (kill-region, copy-region-as-kill): Use it. + + * register.el (copy-to-register, append-to-register) + (prepend-to-register): Use filter-buffer-substring. + 2005-03-30 Nick Roberts * progmodes/gud.el (gdb): (Re)-initialise gud-filter-pending-text. diff -r 112759b1d443 -r ff6aac2d0e0b lispref/ChangeLog --- a/lispref/ChangeLog Tue Mar 29 21:08:26 2005 +0000 +++ b/lispref/ChangeLog Tue Mar 29 21:08:37 2005 +0000 @@ -1,4 +1,4 @@ -2005-03-29 Richard M. Stallman +2005-03-29 Chong Yidong * text.texi (Buffer Contents): Add filter-buffer-substring and buffer-substring-filters. diff -r 112759b1d443 -r ff6aac2d0e0b man/ChangeLog --- a/man/ChangeLog Tue Mar 29 21:08:26 2005 +0000 +++ b/man/ChangeLog Tue Mar 29 21:08:37 2005 +0000 @@ -1,3 +1,10 @@ +2005-03-29 Chong Yidong + + * text.texi (Refill): Refer to Long Lines Mode. + (Longlines): New node. + (Auto Fill): Don't index "word wrap" here. + (Filling): Add Longlines to menu. + 2005-03-29 Richard M. Stallman * xresources.texi: Minor fixes.