aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorPaul Pogonyshev2016-04-08 14:02:48 -0700
committerPaul Eggert2016-04-08 15:33:59 -0700
commita4aa94d0cdffb45723786aa798174e942d509774 (patch)
treed4a498fd0319d004ef1e42885f1f91e9bc2172a2 /etc
parentb2746dbf562dc4821bc111488b0e5b6ca5fc6061 (diff)
downloademacs-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/NEWS11
1 files changed, 11 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index d38bc3d9099..6ec82f8333c 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -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
218other than GNU/Linux. 218other than GNU/Linux.
219 219
220+++
221** New functions 'sxhash-eq' and 'sxhash-eql' return hash codes of a
222Lisp object suitable for use with 'eq' and 'eql' correspondingly. If
223two 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
228consistency with the new functions. For compatibility, 'sxhash'
229remains 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