diff options
| author | Eli Zaretskii | 2019-06-15 11:16:49 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2019-06-15 11:16:49 +0300 |
| commit | 333170348ba83069c1f460af70e9add28d57da2a (patch) | |
| tree | 9ff580652264df358e0b23863d41f8cde982a49e /doc/lispref | |
| parent | f6a1647a8be9148b8db76aca601773968af7c343 (diff) | |
| download | emacs-333170348ba83069c1f460af70e9add28d57da2a.tar.gz emacs-333170348ba83069c1f460af70e9add28d57da2a.zip | |
Improve documentation of hash-code functions
* src/fns.c (Fsxhash_eq, Fsxhash_eql, Fsxhash_equal):
* doc/lispref/hash.texi (Defining Hash): Warn against assuming
that sxhash returns consistent results.
Diffstat (limited to 'doc/lispref')
| -rw-r--r-- | doc/lispref/hash.texi | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/lispref/hash.texi b/doc/lispref/hash.texi index 5aaf31247b4..9b900e63099 100644 --- a/doc/lispref/hash.texi +++ b/doc/lispref/hash.texi | |||
| @@ -333,6 +333,11 @@ and equal-looking objects are considered the same key. | |||
| 333 | (make-hash-table :test 'contents-hash) | 333 | (make-hash-table :test 'contents-hash) |
| 334 | @end example | 334 | @end example |
| 335 | 335 | ||
| 336 | Lisp programs should @emph{not} rely on hash codes being preserved | ||
| 337 | between Emacs sessions, as the implementation of the hash functions | ||
| 338 | uses some details of the object storage that can change between | ||
| 339 | sessions and between different architectures. | ||
| 340 | |||
| 336 | @node Other Hash | 341 | @node Other Hash |
| 337 | @section Other Hash Table Functions | 342 | @section Other Hash Table Functions |
| 338 | 343 | ||