comparison etc/NEWS @ 49493:67c5cfa83ddd

Remove COMMAND element from yank handler.
author Kim F. Storm <storm@cua.dk>
date Mon, 27 Jan 2003 21:46:04 +0000
parents 5ddabc4c81b0
children de390d032ae7
comparison
equal deleted inserted replaced
49492:a144c40bb984 49493:67c5cfa83ddd
1509 ** New `yank-handler' text property may be used to control how 1509 ** New `yank-handler' text property may be used to control how
1510 previously killed text on the kill-ring is reinserted. 1510 previously killed text on the kill-ring is reinserted.
1511 1511
1512 The value of the yank-handler property must be a list with one to five 1512 The value of the yank-handler property must be a list with one to five
1513 elements with the following format: 1513 elements with the following format:
1514 (FUNCTION PARAM NOEXCLUDE UNDO COMMAND). 1514 (FUNCTION PARAM NOEXCLUDE UNDO).
1515 1515
1516 The `insert-for-yank' function looks for a yank-handler property on 1516 The `insert-for-yank' function looks for a yank-handler property on
1517 the first character on its string argument (typically the first 1517 the first character on its string argument (typically the first
1518 element on the kill-ring). If a yank-handler property is found, 1518 element on the kill-ring). If a yank-handler property is found,
1519 the normal behaviour of `insert-for-yank' is modified in various ways: 1519 the normal behaviour of `insert-for-yank' is modified in various ways:
1530 if FUNCTION adjusts point before or after inserting the object. 1530 if FUNCTION adjusts point before or after inserting the object.
1531 If UNDO is present and non-nil, it is a function that will be called 1531 If UNDO is present and non-nil, it is a function that will be called
1532 by `yank-pop' to undo the insertion of the current object. It is 1532 by `yank-pop' to undo the insertion of the current object. It is
1533 called with two arguments, the start and end of the current region. 1533 called with two arguments, the start and end of the current region.
1534 FUNCTION may set `yank-undo-function' to override the UNDO value. 1534 FUNCTION may set `yank-undo-function' to override the UNDO value.
1535 If COMMAND is present and non-nil, `this-command' is set to COMMAND
1536 after calling FUNCTION (or insert). Note that setting `this-command'
1537 to a value different from `yank' will prevent `yank-pop' from undoing
1538 this yank.
1539 1535
1540 *** The functions kill-new, kill-append, and kill-region now has an 1536 *** The functions kill-new, kill-append, and kill-region now has an
1541 optional third argument to specify the yank-handler text property 1537 optional third argument to specify the yank-handler text property
1542 to put on the killed text. 1538 to put on the killed text.
1543 1539