[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/etc/NEWS
From: |
Kim F. Storm |
Subject: |
[Emacs-diffs] Changes to emacs/etc/NEWS |
Date: |
Sat, 18 Jan 2003 19:27:11 -0500 |
Index: emacs/etc/NEWS
diff -c emacs/etc/NEWS:1.770 emacs/etc/NEWS:1.771
*** emacs/etc/NEWS:1.770 Tue Jan 14 05:18:36 2003
--- emacs/etc/NEWS Sat Jan 18 19:27:11 2003
***************
*** 1459,1470 ****
as `remove-text-properties'. The only difference is that it takes
a list of property names as argument rather than a property list.
! ** New functions insert-for-yank and insert-buffer-substring-as-yank.
! These functions work like `insert' and `insert-buffer-substring', but
! removes the text properties in the `yank-excluded-properties' list.
** New function insert-buffer-substring-no-properties.
** New function display-supports-face-attributes-p may be used to test
whether a given set of face attributes is actually displayable.
--- 1459,1522 ----
as `remove-text-properties'. The only difference is that it takes
a list of property names as argument rather than a property list.
! ** New function insert-for-yank.
! This function normally works like `insert' but removes the text
! properties in the `yank-excluded-properties' list. However, if the
! inserted text has a `yank-handler' text property on the first
! character of the string, the insertion of the text may be modified in
! a number of ways. See the description of `yank-handler' below.
!
! ** New function insert-buffer-substring-as-yank.
!
! This function works like `insert-buffer-substring', but removes the
! text properties in the `yank-excluded-properties' list.
** New function insert-buffer-substring-no-properties.
+
+ This function is like insert-buffer-substring, but removes all
+ text properties from the inserted substring.
+
+ ** New `yank-handler' text property may be used to control how
+ previously killed text on the kill-ring is reinserted.
+
+ The value of the yank-handler property must be a list with one to five
+ elements with the following format:
+ (FUNCTION PARAM NOEXCLUDE UNDO COMMAND).
+
+ The `insert-for-yank' function looks for a yank-handler property on
+ the first character on its string argument (typically the first
+ element on the kill-ring). If a yank-handler property is found,
+ the normal behaviour of `insert-for-yank' is modified in various ways:
+
+ When FUNCTION is present and non-nil, it is called instead of `insert'
+ to insert the string. FUNCTION takes one argument--the object to insert.
+ If PARAM is present and non-nil, it replaces STRING as the object
+ passed to FUNCTION (or `insert'); for example, if FUNCTION is
+ `yank-rectangle', PARAM should be a list of strings to insert as a
+ rectangle.
+ If NOEXCLUDE is present and non-nil, the normal removal of the
+ yank-excluded-properties is not performed; instead FUNCTION is
+ responsible for removing those properties. This may be necessary
+ if FUNCTION adjusts point before or after inserting the object.
+ If UNDO is present and non-nil, it is a function that will be called
+ by `yank-pop' to undo the insertion of the current object. It is
+ called with two arguments, the start and end of the current region.
+ FUNCTION may set `yank-undo-function' to override the UNDO value.
+ If COMMAND is present and non-nil, `this-command' is set to COMMAND
+ after calling FUNCTION (or insert). Note that setting `this-command'
+ to a value different from `yank' will prevent `yank-pop' from undoing
+ this yank.
+
+ *** The functions kill-new, kill-append, and kill-region now has an
+ optional third argument to specify the yank-handler text property
+ to put on the killed text.
+
+ *** The function yank-pop will now use a non-nil value of the variable
+ `yank-undo-function' (instead of delete-region) to undo the previous
+ yank or yank-pop command (or a call to insert-for-yank). The function
+ insert-for-yank automatically sets that variable according to the UNDO
+ element of the string argument's yank-handler text property if present.
** New function display-supports-face-attributes-p may be used to test
whether a given set of face attributes is actually displayable.
- [Emacs-diffs] Changes to emacs/etc/NEWS, Kim F. Storm, 2003/01/10
- [Emacs-diffs] Changes to emacs/etc/NEWS, Kim F. Storm, 2003/01/13
- [Emacs-diffs] Changes to emacs/etc/NEWS, Kim F. Storm, 2003/01/13
- [Emacs-diffs] Changes to emacs/etc/NEWS, Kim F. Storm, 2003/01/14
- [Emacs-diffs] Changes to emacs/etc/NEWS,
Kim F. Storm <=
- [Emacs-diffs] Changes to emacs/etc/NEWS, Kenichi Handa, 2003/01/21
- [Emacs-diffs] Changes to emacs/etc/NEWS, Kenichi Handa, 2003/01/21
- [Emacs-diffs] Changes to emacs/etc/NEWS, Jason Rumney, 2003/01/25
- [Emacs-diffs] Changes to emacs/etc/NEWS, Jason Rumney, 2003/01/25
- [Emacs-diffs] Changes to emacs/etc/NEWS, Eli Zaretskii, 2003/01/26
- [Emacs-diffs] Changes to emacs/etc/NEWS, Juanma Barranquero, 2003/01/26
- [Emacs-diffs] Changes to emacs/etc/NEWS, Kim F. Storm, 2003/01/27
- [Emacs-diffs] Changes to emacs/etc/NEWS, Juanma Barranquero, 2003/01/29
- [Emacs-diffs] Changes to emacs/etc/NEWS, Juanma Barranquero, 2003/01/29
- [Emacs-diffs] Changes to emacs/etc/NEWS, Dave Love, 2003/01/30