diff --git a/src/fns.c b/src/fns.c index 370f7711b90..d3ee98c3bae 100644 --- a/src/fns.c +++ b/src/fns.c @@ -35,7 +35,6 @@ Copyright (C) 1985-2024 Free Software Foundation, Inc. #include "composite.h" #include "buffer.h" #include "intervals.h" -#include "syntax.h" #include "window.h" #include "puresize.h" #include "gnutls.h" @@ -3579,8 +3578,7 @@ DEFUN ("yes-or-no-p", Fyes_or_no_p, Syes_or_no_p, 1, 1, 0, ptrdiff_t promptlen = SCHARS (prompt); bool prompt_ends_in_nonspace = (0 < promptlen - && (SYNTAX (XFIXNAT (Faref (prompt, make_fixnum (promptlen - 1)))) - != Swhitespace)); + && !blankp (XFIXNAT (Faref (prompt, make_fixnum (promptlen - 1))))); AUTO_STRING (space_string, " "); prompt = CALLN (Fconcat, prompt, prompt_ends_in_nonspace ? space_string : empty_unibyte_string,