Add yank-handled-properties; use it for `font-lock-face' and `category'
commit2170b1bdd500484349deec2d946119e6a653e198
authorChong Yidong <cyd@gnu.org>
Sat, 18 Aug 2012 05:11:38 +0000 (18 13:11 +0800)
committerChong Yidong <cyd@gnu.org>
Sat, 18 Aug 2012 05:11:38 +0000 (18 13:11 +0800)
tree516c6e5f25a53a94c403f3524a18518c3b290983
parent6a09a33b5551348f15c7c6f5a6182c57e0ee8ef4
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.
etc/NEWS
lisp/ChangeLog
lisp/simple.el
lisp/subr.el