* src/fns.c: Do not include syntax.h; no longer needed.
(Fyes_or_no_p): Use blankp rather than SYNTAX to check whether the
prompt ends in nonspace. That way, the test doesn’t depend on the
current buffer.
(cherry picked from commit
6d507d586a7ae2ab2caf32e32f2ae6134a90b1bd)
#include "composite.h"
#include "buffer.h"
#include "intervals.h"
-#include "syntax.h"
#include "window.h"
#include "puresize.h"
#include "gnutls.h"
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,