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 /lisp | |
| 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 'lisp')
| -rw-r--r-- | lisp/emacs-lisp/byte-opt.el | 5 | ||||
| -rw-r--r-- | lisp/subr.el | 1 |
2 files changed, 4 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/byte-opt.el b/lisp/emacs-lisp/byte-opt.el index b3bf4a58849..dbaf2bc6f6a 100644 --- a/lisp/emacs-lisp/byte-opt.el +++ b/lisp/emacs-lisp/byte-opt.el | |||
| @@ -1209,8 +1209,9 @@ | |||
| 1209 | radians-to-degrees rassq rassoc read-from-string regexp-quote | 1209 | radians-to-degrees rassq rassoc read-from-string regexp-quote |
| 1210 | region-beginning region-end reverse round | 1210 | region-beginning region-end reverse round |
| 1211 | sin sqrt string string< string= string-equal string-lessp string-to-char | 1211 | sin sqrt string string< string= string-equal string-lessp string-to-char |
| 1212 | string-to-int string-to-number substring sxhash symbol-function | 1212 | string-to-int string-to-number substring |
| 1213 | symbol-name symbol-plist symbol-value string-make-unibyte | 1213 | sxhash sxhash-equal sxhash-eq sxhash-eql |
| 1214 | symbol-function symbol-name symbol-plist symbol-value string-make-unibyte | ||
| 1214 | string-make-multibyte string-as-multibyte string-as-unibyte | 1215 | string-make-multibyte string-as-multibyte string-as-unibyte |
| 1215 | string-to-multibyte | 1216 | string-to-multibyte |
| 1216 | tan truncate | 1217 | tan truncate |
diff --git a/lisp/subr.el b/lisp/subr.el index cad6319f3b2..a6d6fa44ca1 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -66,6 +66,7 @@ For more information, see Info node `(elisp)Declaring Functions'." | |||
| 66 | ;;;; Basic Lisp macros. | 66 | ;;;; Basic Lisp macros. |
| 67 | 67 | ||
| 68 | (defalias 'not 'null) | 68 | (defalias 'not 'null) |
| 69 | (defalias 'sxhash 'sxhash-equal) | ||
| 69 | 70 | ||
| 70 | (defmacro noreturn (form) | 71 | (defmacro noreturn (form) |
| 71 | "Evaluate FORM, expecting it not to return. | 72 | "Evaluate FORM, expecting it not to return. |