aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorRichard M. Stallman2005-03-29 21:08:37 +0000
committerRichard M. Stallman2005-03-29 21:08:37 +0000
commit8e669bbd42c254c32e3fffa489f4d97d48d9bd76 (patch)
tree5a8048440a13b38a921565b3458f66d420cd583f /etc
parent19e7dd23ed5859155f955ff327bba9bfc4cf58de (diff)
downloademacs-8e669bbd42c254c32e3fffa489f4d97d48d9bd76.tar.gz
emacs-8e669bbd42c254c32e3fffa489f4d97d48d9bd76.zip
(Buffer Contents): Add filter-buffer-substring and buffer-substring-filters.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS22
1 files changed, 22 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index c3134d08880..8e85c86dde8 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -2436,6 +2436,17 @@ coding system.
2436* New modes and packages in Emacs 22.1 2436* New modes and packages in Emacs 22.1
2437 2437
2438+++ 2438+++
2439** The new package longlines.el provides a minor mode for editing text
2440files composed of long lines, based on the `use-hard-newlines'
2441mechanism. The long lines are broken up by inserting soft newlines,
2442which are automatically removed when saving the file to disk or
2443copying into the kill ring, clipboard, etc. By default, Longlines
2444mode inserts soft newlines automatically during editing, a behavior
2445referred to as "soft word wrap" in other text editors. This is
2446similar to Refill mode, but more reliable. To turn the word wrap
2447feature off, set `longlines-auto-wrap' to nil.
2448
2449+++
2439** The new package conf-mode.el handles thousands of configuration files, with 2450** The new package conf-mode.el handles thousands of configuration files, with
2440varying syntaxes for comments (;, #, //, /* */ or !), assignment (var = value, 2451varying syntaxes for comments (;, #, //, /* */ or !), assignment (var = value,
2441var : value, var value or keyword var value) and sections ([section] or 2452var : value, var value or keyword var value) and sections ([section] or
@@ -2712,6 +2723,17 @@ the command `undefined'. (In earlier Emacs versions, it used
2712* Lisp Changes in Emacs 22.1 2723* Lisp Changes in Emacs 22.1
2713 2724
2714+++ 2725+++
2726** The new function `filter-buffer-substring' extracts a buffer
2727substring, passes it through a set of filter functions, and returns
2728the filtered substring. It is used instead of `buffer-substring' or
2729`delete-and-extract-region' when copying text into a user-accessible
2730data structure, like the kill-ring, X clipboard, or a register. The
2731list of filter function is specified by the new variable
2732`buffer-substring-filters'. For example, Longlines mode uses
2733`buffer-substring-filters' to remove soft newlines from the copied
2734text.
2735
2736+++
2715** An element of buffer-undo-list can now have the form (apply FUNNAME 2737** An element of buffer-undo-list can now have the form (apply FUNNAME
2716. ARGS), where FUNNAME is a symbol other than t or nil. That stands 2738. ARGS), where FUNNAME is a symbol other than t or nil. That stands
2717for a high-level change that should be undone by evaluating (apply 2739for a high-level change that should be undone by evaluating (apply