aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias EngdegÄrd2024-01-19 15:52:13 +0100
committerMattias EngdegÄrd2024-01-21 11:21:51 +0100
commit7a87ca09a73d61b46bfcaca317095ce7545bd3f3 (patch)
tree5e479ff585dee5ef2ec5a2b20c1d03b7fa2fe216 /src
parentfec87a4b36a67688932e7bb7e1720bd2c4363a61 (diff)
downloademacs-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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fns.c b/src/fns.c
index 4531b237824..f862c1470c4 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -5651,6 +5651,8 @@ DEFUN ("remhash", Fremhash, Sremhash, 2, 2, 0,
5651DEFUN ("maphash", Fmaphash, Smaphash, 2, 2, 0, 5651DEFUN ("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.
5653FUNCTION is called with two arguments, KEY and VALUE. 5653FUNCTION is called with two arguments, KEY and VALUE.
5654It should not alter TABLE in any way other than using `puthash' to
5655set 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{