diff options
| author | Chong Yidong | 2012-08-18 13:11:38 +0800 |
|---|---|---|
| committer | Chong Yidong | 2012-08-18 13:11:38 +0800 |
| commit | 2170b1bdd500484349deec2d946119e6a653e198 (patch) | |
| tree | 516c6e5f25a53a94c403f3524a18518c3b290983 /etc | |
| parent | 6a09a33b5551348f15c7c6f5a6182c57e0ee8ef4 (diff) | |
| download | emacs-2170b1bdd500484349deec2d946119e6a653e198.tar.gz emacs-2170b1bdd500484349deec2d946119e6a653e198.zip | |
Add yank-handled-properties; use it for `font-lock-face' and `category'
properties, instead of hard-coding these properties' special handling.
* lisp/simple.el (yank-handled-properties): New defcustom.
(yank-excluded-properties): Add font-lock-face and category.
(yank): Doc fix.
* lisp/subr.el (remove-yank-excluded-properties): Obey
yank-handled-properties. The special handling of font-lock-face
and category is now done this way, instead of being hard-coded.
(insert-for-yank-1): Remove font-lock-face handling.
(yank-handle-font-lock-face-property)
(yank-handle-category-property): New function.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 4 |
1 files changed, 4 insertions, 0 deletions
| @@ -160,6 +160,10 @@ The PCL-CVS commands are still available via the keyboard. | |||
| 160 | 160 | ||
| 161 | * Editing Changes in Emacs 24.3 | 161 | * Editing Changes in Emacs 24.3 |
| 162 | 162 | ||
| 163 | ** New option `yank-handled-properties' allows processing of text | ||
| 164 | properties on yanked text, in more ways that are more general than | ||
| 165 | just removing them, as done by `yank-excluded-properties'. | ||
| 166 | |||
| 163 | ** New option `delete-trailing-lines' specifies whether the M-x | 167 | ** New option `delete-trailing-lines' specifies whether the M-x |
| 164 | delete-trailing-whitespace command should delete trailing lines at the | 168 | delete-trailing-whitespace command should delete trailing lines at the |
| 165 | end of the buffer. It defaults to t. | 169 | end of the buffer. It defaults to t. |