diff options
| author | Paul Pogonyshev | 2016-04-08 14:02:48 -0700 |
|---|---|---|
| committer | Paul Eggert | 2016-04-08 15:33:59 -0700 |
| commit | a4aa94d0cdffb45723786aa798174e942d509774 (patch) | |
| tree | d4a498fd0319d004ef1e42885f1f91e9bc2172a2 /etc | |
| parent | b2746dbf562dc4821bc111488b0e5b6ca5fc6061 (diff) | |
| download | emacs-a4aa94d0cdffb45723786aa798174e942d509774.tar.gz emacs-a4aa94d0cdffb45723786aa798174e942d509774.zip | |
New primitives sxhash-eq, sxhash-eql
* doc/lispref/hash.texi (Defining Hash), etc/NEWS: Document this.
* lisp/emacs-lisp/byte-opt.el (side-effect-free-fns):
Add sxhash-equal, sxhash-eq, sxhash-eql.
* lisp/subr.el (sxhash): Now an alias for sxhash-equal.
* src/fns.c (Fsxhash_eq, Fsxhash_eql): New functions.n
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 11 |
1 files changed, 11 insertions, 0 deletions
| @@ -217,6 +217,17 @@ outermost parenthesis. | |||
| 217 | ** The function 'redirect-debugging-output' now works on platforms | 217 | ** The function 'redirect-debugging-output' now works on platforms |
| 218 | other than GNU/Linux. | 218 | other than GNU/Linux. |
| 219 | 219 | ||
| 220 | +++ | ||
| 221 | ** New functions 'sxhash-eq' and 'sxhash-eql' return hash codes of a | ||
| 222 | Lisp object suitable for use with 'eq' and 'eql' correspondingly. If | ||
| 223 | two objects are 'eq' ('eql'), then the result of 'sxhash-eq' | ||
| 224 | ('sxhash-eql') on them will be the same. | ||
| 225 | |||
| 226 | +++ | ||
| 227 | ** Function 'sxhash' has been renamed to 'sxhash-equal' for | ||
| 228 | consistency with the new functions. For compatibility, 'sxhash' | ||
| 229 | remains as an alias to 'sxhash-equal'. | ||
| 230 | |||
| 220 | 231 | ||
| 221 | * Changes in Emacs 25.2 on Non-Free Operating Systems | 232 | * Changes in Emacs 25.2 on Non-Free Operating Systems |
| 222 | 233 | ||