1653 |
|
|
1654 |
* Lisp Changes in Emacs 21.4 |
* Lisp Changes in Emacs 21.4 |
1655 |
|
|
1656 |
|
** The argument to forward-word, backward-word, forward-to-indentation |
1657 |
|
and backward-to-indentation is now optional, and defaults to 1. |
1658 |
|
|
1659 |
+++ |
+++ |
1660 |
** The new function `window-inside-edges' returns the edges of the |
** The new function `window-inside-edges' returns the edges of the |
1661 |
actual text portion of the window, not including the scroll bar or |
actual text portion of the window, not including the scroll bar or |
2070 |
Set NAME's `edebug-form-spec' property to DEBUG. (This is |
Set NAME's `edebug-form-spec' property to DEBUG. (This is |
2071 |
equivalent to writing a `def-edebug-spec' for the macro. |
equivalent to writing a `def-edebug-spec' for the macro. |
2072 |
|
|
2073 |
|
+++ |
2074 |
** Interactive commands can be remapped through keymaps. |
** Interactive commands can be remapped through keymaps. |
2075 |
|
|
2076 |
This is an alternative to using defadvice or substitute-key-definition |
This is an alternative to using defadvice or substitute-key-definition |
2127 |
command before remapping. It is equal to `this-command' when the |
command before remapping. It is equal to `this-command' when the |
2128 |
command was not remapped. |
command was not remapped. |
2129 |
|
|
2130 |
|
+++ |
2131 |
** New variable emulation-mode-map-alists. |
** New variable emulation-mode-map-alists. |
2132 |
|
|
2133 |
Lisp packages using many minor mode keymaps can now maintain their own |
Lisp packages using many minor mode keymaps can now maintain their own |
2199 |
although it applies to overlays as well. This variable was introduced |
although it applies to overlays as well. This variable was introduced |
2200 |
to implement the `font-lock-face' property. |
to implement the `font-lock-face' property. |
2201 |
|
|
2202 |
|
+++ |
2203 |
** New special text property `font-lock-face'. |
** New special text property `font-lock-face'. |
2204 |
|
|
2205 |
This property acts like the `face' property, but it is controlled by |
This property acts like the `face' property, but it is controlled by |
2207 |
property. Instead, it is implemented inside font-core.el, using the |
property. Instead, it is implemented inside font-core.el, using the |
2208 |
new variable `char-property-alias-alist'. |
new variable `char-property-alias-alist'. |
2209 |
|
|
2210 |
|
+++ |
2211 |
** New function remove-list-of-text-properties. |
** New function remove-list-of-text-properties. |
2212 |
|
|
2213 |
The new function `remove-list-of-text-properties' is almost the same |
The new function `remove-list-of-text-properties' is almost the same |
2214 |
as `remove-text-properties'. The only difference is that it takes |
as `remove-text-properties'. The only difference is that it takes |
2215 |
a list of property names as argument rather than a property list. |
a list of property names as argument rather than a property list. |
2216 |
|
|
2217 |
|
+++ |
2218 |
** New function insert-for-yank. |
** New function insert-for-yank. |
2219 |
|
|
2220 |
This function normally works like `insert' but removes the text |
This function normally works like `insert' but removes the text |
2223 |
character of the string, the insertion of the text may be modified in |
character of the string, the insertion of the text may be modified in |
2224 |
a number of ways. See the description of `yank-handler' below. |
a number of ways. See the description of `yank-handler' below. |
2225 |
|
|
2226 |
|
+++ |
2227 |
** New function insert-buffer-substring-as-yank. |
** New function insert-buffer-substring-as-yank. |
2228 |
|
|
2229 |
This function works like `insert-buffer-substring', but removes the |
This function works like `insert-buffer-substring', but removes the |
2230 |
text properties in the `yank-excluded-properties' list. |
text properties in the `yank-excluded-properties' list. |
2231 |
|
|
2232 |
|
+++ |
2233 |
** New function insert-buffer-substring-no-properties. |
** New function insert-buffer-substring-no-properties. |
2234 |
|
|
2235 |
This function is like insert-buffer-substring, but removes all |
This function is like insert-buffer-substring, but removes all |
2236 |
text properties from the inserted substring. |
text properties from the inserted substring. |
2237 |
|
|
2238 |
|
+++ |
2239 |
** New `yank-handler' text property may be used to control how |
** New `yank-handler' text property may be used to control how |
2240 |
previously killed text on the kill-ring is reinserted. |
previously killed text on the kill-ring is reinserted. |
2241 |
|
|
2242 |
The value of the yank-handler property must be a list with one to five |
The value of the yank-handler property must be a list with one to four |
2243 |
elements with the following format: |
elements with the following format: |
2244 |
(FUNCTION PARAM NOEXCLUDE UNDO). |
(FUNCTION PARAM NOEXCLUDE UNDO). |
2245 |
|
|
2263 |
called with two arguments, the start and end of the current region. |
called with two arguments, the start and end of the current region. |
2264 |
FUNCTION may set `yank-undo-function' to override the UNDO value. |
FUNCTION may set `yank-undo-function' to override the UNDO value. |
2265 |
|
|
2266 |
*** The functions kill-new, kill-append, and kill-region now has an |
*** The functions kill-new, kill-append, and kill-region now have an |
2267 |
optional third argument to specify the yank-handler text property |
optional argument to specify the yank-handler text property to put on |
2268 |
to put on the killed text. |
the killed text. |
2269 |
|
|
2270 |
*** The function yank-pop will now use a non-nil value of the variable |
*** The function yank-pop will now use a non-nil value of the variable |
2271 |
`yank-undo-function' (instead of delete-region) to undo the previous |
`yank-undo-function' (instead of delete-region) to undo the previous |
2387 |
This is relevant only if Lisp code looks for |
This is relevant only if Lisp code looks for |
2388 |
the bindings that were made with easymenu. |
the bindings that were made with easymenu. |
2389 |
|
|
2390 |
|
+++ |
2391 |
** The function `commandp' takes an additional optional |
** The function `commandp' takes an additional optional |
2392 |
argument. If it is non-nil, then `commandp' checks |
argument. If it is non-nil, then `commandp' checks |
2393 |
for a function that could be called with `call-interactively', |
for a function that could be called with `call-interactively', |
2424 |
This is like window-height but does not count the mode line |
This is like window-height but does not count the mode line |
2425 |
or the header line. |
or the header line. |
2426 |
|
|
2427 |
|
+++ |
2428 |
** New function format-mode-line. |
** New function format-mode-line. |
2429 |
|
|
2430 |
This returns the mode-line or header-line of the selected (or a |
This returns the mode-line or header-line of the selected (or a |
2431 |
specified) window as a string with or without text properties. |
specified) window as a string with or without text properties. |
2432 |
|
|
2433 |
|
+++ |
2434 |
** New functions `lax-plist-get' and `lax-plist-put'. |
** New functions `lax-plist-get' and `lax-plist-put'. |
2435 |
|
|
2436 |
These functions are like `plist-get' and `plist-put' except that they |
These functions are like `plist-get' and `plist-put' except that they |
2437 |
compare the property name using `equal' rather than `eq'. |
compare the property name using `equal' rather than `eq'. |
2438 |
|
|
2439 |
|
+++ |
2440 |
** New function `tool-bar-local-item-from-menu' |
** New function `tool-bar-local-item-from-menu' |
2441 |
|
|
2442 |
The `tool-bar-add-item-from-menu' must not be used (as previously |
The `tool-bar-add-item-from-menu' must not be used (as previously |