diff options
| author | Mattias EngdegÄrd | 2024-01-19 15:52:13 +0100 |
|---|---|---|
| committer | Mattias EngdegÄrd | 2024-01-21 11:21:51 +0100 |
| commit | 7a87ca09a73d61b46bfcaca317095ce7545bd3f3 (patch) | |
| tree | 5e479ff585dee5ef2ec5a2b20c1d03b7fa2fe216 /src | |
| parent | fec87a4b36a67688932e7bb7e1720bd2c4363a61 (diff) | |
| download | emacs-7a87ca09a73d61b46bfcaca317095ce7545bd3f3.tar.gz emacs-7a87ca09a73d61b46bfcaca317095ce7545bd3f3.zip | |
Clarify permitted mutation in `maphash` documentation
* doc/lispref/hash.texi (Hash Access):
* src/fns.c (Fmaphash):
Make it clear what the function passed as argument can do. Until now
these rules were unwritten, and are still unenforced.
Diffstat (limited to 'src')
| -rw-r--r-- | src/fns.c | 2 |
1 files changed, 2 insertions, 0 deletions
| @@ -5651,6 +5651,8 @@ DEFUN ("remhash", Fremhash, Sremhash, 2, 2, 0, | |||
| 5651 | DEFUN ("maphash", Fmaphash, Smaphash, 2, 2, 0, | 5651 | DEFUN ("maphash", Fmaphash, Smaphash, 2, 2, 0, |
| 5652 | doc: /* Call FUNCTION for all entries in hash table TABLE. | 5652 | doc: /* Call FUNCTION for all entries in hash table TABLE. |
| 5653 | FUNCTION is called with two arguments, KEY and VALUE. | 5653 | FUNCTION is called with two arguments, KEY and VALUE. |
| 5654 | It should not alter TABLE in any way other than using `puthash' to | ||
| 5655 | set a new value for KEY, or `remhash' to remove KEY. | ||
| 5654 | `maphash' always returns nil. */) | 5656 | `maphash' always returns nil. */) |
| 5655 | (Lisp_Object function, Lisp_Object table) | 5657 | (Lisp_Object function, Lisp_Object table) |
| 5656 | { | 5658 | { |