]> git.eshelyaron.com Git - emacs.git/commit
Fix assoc_no_quit so that it does not quit
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 30 Mar 2017 05:34:02 +0000 (22:34 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 30 Mar 2017 05:43:51 +0000 (22:43 -0700)
commit080a425db51e0b26b03f0f4bd06c814fc2b38578
treeefd3c6c3b46251dd3fe97332f55e6e03daf8c317
parentb7ec73f6905df99978f7183ac8e83a3be56edc6c
Fix assoc_no_quit so that it does not quit

The problem was that it called Fequal, which can quit.
* src/fns.c (enum equal_kind):
New enum, to be used in place of a boolean.
(equal_no_quit): New function.
(Fmemql, Feql): Use it to compare floats, as a minor tuneup.
(assoc_no_quit): Use it to avoid quitting, the main point here.
(internal_equal): Generalize bool to enum equal_kind arg, so that
there are now 3 possibilities instead of 2.  Do not signal an
error if EQUAL_NO_QUIT.  Put the arg before the depth, since depth
should be irrelevant if the arg is EQUAL_NO_QUIT.  All callers
changed.
src/fns.c