aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2024-09-18 09:18:29 -0700
committerPaul Eggert2024-09-18 09:18:48 -0700
commit6d507d586a7ae2ab2caf32e32f2ae6134a90b1bd (patch)
tree9728d6e95ae27fe693133f0ed2f301d7b7281938 /src
parenteace68a325b96d12188ea8d673f30bad1354b916 (diff)
downloademacs-6d507d586a7ae2ab2caf32e32f2ae6134a90b1bd.tar.gz
emacs-6d507d586a7ae2ab2caf32e32f2ae6134a90b1bd.zip
yes-or-no-p now uses blankp rather than SYNTAX
* 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.
Diffstat (limited to 'src')
-rw-r--r--src/fns.c4
1 files changed, 1 insertions, 3 deletions
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 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
35#include "composite.h" 35#include "composite.h"
36#include "buffer.h" 36#include "buffer.h"
37#include "intervals.h" 37#include "intervals.h"
38#include "syntax.h"
39#include "window.h" 38#include "window.h"
40#include "puresize.h" 39#include "puresize.h"
41#include "gnutls.h" 40#include "gnutls.h"
@@ -3579,8 +3578,7 @@ by a mouse, or by some window-system gesture, or via a menu. */)
3579 ptrdiff_t promptlen = SCHARS (prompt); 3578 ptrdiff_t promptlen = SCHARS (prompt);
3580 bool prompt_ends_in_nonspace 3579 bool prompt_ends_in_nonspace
3581 = (0 < promptlen 3580 = (0 < promptlen
3582 && (SYNTAX (XFIXNAT (Faref (prompt, make_fixnum (promptlen - 1)))) 3581 && !blankp (XFIXNAT (Faref (prompt, make_fixnum (promptlen - 1)))));
3583 != Swhitespace));
3584 AUTO_STRING (space_string, " "); 3582 AUTO_STRING (space_string, " ");
3585 prompt = CALLN (Fconcat, prompt, 3583 prompt = CALLN (Fconcat, prompt,
3586 prompt_ends_in_nonspace ? space_string : empty_unibyte_string, 3584 prompt_ends_in_nonspace ? space_string : empty_unibyte_string,