diff options
| author | Richard M. Stallman | 2005-03-29 21:08:37 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-03-29 21:08:37 +0000 |
| commit | 8e669bbd42c254c32e3fffa489f4d97d48d9bd76 (patch) | |
| tree | 5a8048440a13b38a921565b3458f66d420cd583f /etc | |
| parent | 19e7dd23ed5859155f955ff327bba9bfc4cf58de (diff) | |
| download | emacs-8e669bbd42c254c32e3fffa489f4d97d48d9bd76.tar.gz emacs-8e669bbd42c254c32e3fffa489f4d97d48d9bd76.zip | |
(Buffer Contents): Add filter-buffer-substring and buffer-substring-filters.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 22 |
1 files changed, 22 insertions, 0 deletions
| @@ -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 | ||
| 2440 | files composed of long lines, based on the `use-hard-newlines' | ||
| 2441 | mechanism. The long lines are broken up by inserting soft newlines, | ||
| 2442 | which are automatically removed when saving the file to disk or | ||
| 2443 | copying into the kill ring, clipboard, etc. By default, Longlines | ||
| 2444 | mode inserts soft newlines automatically during editing, a behavior | ||
| 2445 | referred to as "soft word wrap" in other text editors. This is | ||
| 2446 | similar to Refill mode, but more reliable. To turn the word wrap | ||
| 2447 | feature 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 |
| 2440 | varying syntaxes for comments (;, #, //, /* */ or !), assignment (var = value, | 2451 | varying syntaxes for comments (;, #, //, /* */ or !), assignment (var = value, |
| 2441 | var : value, var value or keyword var value) and sections ([section] or | 2452 | var : 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 | ||
| 2727 | substring, passes it through a set of filter functions, and returns | ||
| 2728 | the filtered substring. It is used instead of `buffer-substring' or | ||
| 2729 | `delete-and-extract-region' when copying text into a user-accessible | ||
| 2730 | data structure, like the kill-ring, X clipboard, or a register. The | ||
| 2731 | list 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 | ||
| 2734 | text. | ||
| 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 |
| 2717 | for a high-level change that should be undone by evaluating (apply | 2739 | for a high-level change that should be undone by evaluating (apply |