GNU bug report logs -
#24542
25.1.50; The symbol `@' and sexp scanning
Previous Next
Reported by: Michael Heerdegen <michael_heerdegen <at> web.de>
Date: Sun, 25 Sep 2016 17:43:02 UTC
Severity: minor
Tags: confirmed
Merged with 11314
Found in versions 24.1.50, 25.1.50, 27.0.50
Done: Stefan Monnier <monnier <at> iro.umontreal.ca>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Michael Heerdegen <michael_heerdegen <at> web.de> writes:
> Thanks for the patch. Can anyone judge whether we can do this?
I tried the patch, and it fixes the
(setq a '@)
problem for me. I don't really have a great overview of where
scan_lists is used for -- it seems like a very general solution to a
very specific problem.
Does anybody have any comments here?
diff --git a/src/syntax.c b/src/syntax.c
index 7f0fc341f6..10912dd5f2 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -2693,7 +2693,17 @@ scan_lists (EMACS_INT from0, EMACS_INT count, EMACS_INT depth, bool sexpflag)
}
if (prefix)
- continue;
+ {
+ int next_c = FETCH_CHAR_AS_MULTIBYTE (from_byte);
+ int next_syntax = SYNTAX_WITH_FLAGS (next_c);
+ bool next_prefix = SYNTAX_FLAGS_PREFIX (next_syntax);
+ enum syntaxcode next_code =
+ syntax_multibyte (next_c, multibyte_symbol_p);
+ if (next_prefix
+ || next_code == Ssymbol
+ || next_code == Sword)
+ continue;
+ }
switch (code)
{
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 1 year and 40 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.