From: Gerd Moellmann Date: Fri, 18 Aug 2000 04:55:28 +0000 (+0000) Subject: (do_completion): Use EQ instead of != to compare X-Git-Tag: emacs-pretest-21.0.90~2188 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=01cce3e757e2ea4746322395986837ed3025bfd8;p=emacs.git (do_completion): Use EQ instead of != to compare Lisp_Objects. --- diff --git a/src/ChangeLog b/src/ChangeLog index e144ece519d..cd5adc93365 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2000-08-18 Gerd Moellmann + * minibuf.c (do_completion): Use EQ instead of != to compare + Lisp_Objects. + * keyboard.c (kbd_buffer_get_event): Handle the case that the second half of a HELP_EVENT is found at the start of kbd_buffer. diff --git a/src/minibuf.c b/src/minibuf.c index 678a750adb7..e730f8a91ca 100644 --- a/src/minibuf.c +++ b/src/minibuf.c @@ -1608,7 +1608,7 @@ do_completion () However, for appearance, the string is rewritten if the case changes. */ tem = Fcompare_strings (completion, Qnil, Qnil, string, Qnil, Qnil, Qt); - completedp = (tem != Qt); + completedp = !EQ (tem, Qt); tem = Fstring_equal (completion, string); if (NILP (tem))