From 01cce3e757e2ea4746322395986837ed3025bfd8 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Fri, 18 Aug 2000 04:55:28 +0000 Subject: [PATCH] (do_completion): Use EQ instead of != to compare Lisp_Objects. --- src/ChangeLog | 3 +++ src/minibuf.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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)) -- 2.39.2