changeset 61118:ff6aac2d0e0b

*** empty log message ***
author Richard M. Stallman <rms@gnu.org>
date Tue, 29 Mar 2005 21:08:37 +0000
parents 112759b1d443
children cc183cb978d4
files etc/NEWS lisp/ChangeLog lispref/ChangeLog man/ChangeLog
diffstat 4 files changed, 45 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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  <rms@gnu.org>
+
+	* simple.el (idle-update-delay): Move definition up.
+
+2005-03-29  Chong Yidong  <cyd@stupidchicken.com>
+
+	* 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  <nickrob@snap.net.nz>
 
 	* progmodes/gud.el (gdb): (Re)-initialise gud-filter-pending-text.	
--- 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  <rms@gnu.org>
+2005-03-29  Chong Yidong  <cyd@stupidchicken.com>
 
 	* text.texi (Buffer Contents): Add filter-buffer-substring and
 	buffer-substring-filters.
--- 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  <cyd@stupidchicken.com>
+
+	* 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  <rms@gnu.org>
 
 	* xresources.texi: Minor fixes.