[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: forward-sexp when on a floating point number

From: Stefan Monnier
Subject: Re: forward-sexp when on a floating point number
Date: Sun, 17 Jan 2016 20:36:32 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

>> Hopefully at some point syntax-tables will be extended to FSM
>> (currently, they're trivial FSMs where you always get to a final state
>> after exactly one transition) so we can make them understand such
>> lexical details.
> Except that not everyone will want this.  I still think that fancier movement
> like this should be done (at least initially) in an ELPA package for those who
> want it, rather than request a change to the behavior of Emacs core.

Lexing via FSM is "standard" in the world of computer languages, so I'm
pretty sure it'd be good/useful to add such functionality to Emacs's core.

E.g. it would improve performance and robustness of many SMIE tokenizers.

Whether the functionality is added by extending syntax-tables or as
a new thingy is of course up for debate.

And whether the user-facing commands should change semantics is also up
for debate.  But that's an orthogonal debate.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]