unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#21624: Syntax weirdness lately
@ 2015-10-05 19:47 Daniel Colascione
  2015-10-05 20:50 ` Dmitry Gutov
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Colascione @ 2015-10-05 19:47 UTC (permalink / raw)
  To: 21624

[-- Attachment #1: Type: text/plain, Size: 807 bytes --]

In latest master, syntax-propertize application seems to be buggy in a
way I can't readily reproduce or analyze.

Consider this bit of shell:

                elif [[ $c = '\' ]]; then
                    state=word-backslash

Sometimes, unreproducibly of course, we don't close the string at the
trailing
single quotation mark, and the rest of the buffer ends up being a
string, at least up until the single quotation mark. A similar problem
in Python sometimes leads to Python inflooping in buffers containing
strings triple-quoted with single quotation marks: it appears that we
interpret "'''" as just an empty single-quoted string, followed by a
single-quoted opener.

Did we change something about how complex syntax rules work lately?
Revision history doesn't point to anything.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#21624: Syntax weirdness lately
  2015-10-05 19:47 bug#21624: Syntax weirdness lately Daniel Colascione
@ 2015-10-05 20:50 ` Dmitry Gutov
  2015-10-05 20:52   ` Daniel Colascione
  0 siblings, 1 reply; 4+ messages in thread
From: Dmitry Gutov @ 2015-10-05 20:50 UTC (permalink / raw)
  To: Daniel Colascione, 21624

On 10/05/2015 10:47 PM, Daniel Colascione wrote:

> Did we change something about how complex syntax rules work lately?
> Revision history doesn't point to anything.

There have been some changes in syntax.c not too long ago, e.g. in 
3928ef2dd5b8febf3b1d9c1bfb22af3698d16bea.







^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#21624: Syntax weirdness lately
  2015-10-05 20:50 ` Dmitry Gutov
@ 2015-10-05 20:52   ` Daniel Colascione
  2016-12-08 22:03     ` Glenn Morris
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Colascione @ 2015-10-05 20:52 UTC (permalink / raw)
  To: Dmitry Gutov, 21624

[-- Attachment #1: Type: text/plain, Size: 627 bytes --]

On 10/05/2015 01:50 PM, Dmitry Gutov wrote:
> On 10/05/2015 10:47 PM, Daniel Colascione wrote:
> 
>> Did we change something about how complex syntax rules work lately?
>> Revision history doesn't point to anything.
> 
> There have been some changes in syntax.c not too long ago, e.g. in
> 3928ef2dd5b8febf3b1d9c1bfb22af3698d16bea.

Thanks. I'll have to read the code. Since Stefan's changes touched the
syntax-propertize stuff and the problems I'm seeing involve that code
path, the on-demand stuff is a prime suspect. But I have no repro, and
I'm not particularly familiar with how the syntax machinery works.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#21624: Syntax weirdness lately
  2015-10-05 20:52   ` Daniel Colascione
@ 2016-12-08 22:03     ` Glenn Morris
  0 siblings, 0 replies; 4+ messages in thread
From: Glenn Morris @ 2016-12-08 22:03 UTC (permalink / raw)
  To: 21624-done


I don't see how anything can be done with this report as it stands, so
given that it's been a year I'm closing it. Feel free to reopen, or make
a new report, if there is something more substantive to say.





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-12-08 22:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-05 19:47 bug#21624: Syntax weirdness lately Daniel Colascione
2015-10-05 20:50 ` Dmitry Gutov
2015-10-05 20:52   ` Daniel Colascione
2016-12-08 22:03     ` Glenn Morris

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).