diff options
| author | Stefan Monnier | 2014-04-22 12:22:13 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2014-04-22 12:22:13 -0400 |
| commit | 67c477ae67ae3e83b027fb03c5d11f47fa30566c (patch) | |
| tree | 8956f7cf4fd6753031db1fbec2ec28965d8dacaa /etc | |
| parent | 12b1389c9039dd374951673ca43b1ddf65df400d (diff) | |
| download | emacs-67c477ae67ae3e83b027fb03c5d11f47fa30566c.tar.gz emacs-67c477ae67ae3e83b027fb03c5d11f47fa30566c.zip | |
* lisp/emacs-lisp/byte-run.el (function-put): New function.
(defun-declarations-alist): Use it. Add `pure' and `side-effect-free'.
* lisp/emacs-lisp/cl-macs.el (cl-defstruct, cl-struct-sequence-type)
(cl-struct-slot-info, cl-struct-slot-offset, cl-struct-slot-value):
Use them.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 9 |
1 files changed, 7 insertions, 2 deletions
| @@ -95,9 +95,14 @@ active region handling. | |||
| 95 | 95 | ||
| 96 | * Lisp Changes in Emacs 24.5 | 96 | * Lisp Changes in Emacs 24.5 |
| 97 | 97 | ||
| 98 | ** New function `function-put' to use instead of `put' for function properties. | ||
| 99 | |||
| 98 | +++ | 100 | +++ |
| 99 | ** You can specify a function's interactive-only property via `declare'. | 101 | ** New properties that can be specified with `declare': |
| 100 | However you specify it, the property affects `describe-function' output. | 102 | *** (interactive-only INSTEAD), tells to use INSTEAD for non-interactive use. |
| 103 | *** (pure VAL), if VAL is non-nil, indicates the function is pure. | ||
| 104 | *** (side-effect-free VAL), if VAL is non-nil, indicates the function does not | ||
| 105 | have side effects. | ||
| 101 | 106 | ||
| 102 | ** You can access the slots of structures using `cl-struct-slot-value'. | 107 | ** You can access the slots of structures using `cl-struct-slot-value'. |
| 103 | 108 | ||