From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: forward-sexp when on a floating point number Date: Sun, 17 Jan 2016 20:36:32 -0500 Message-ID: References: <87y4bvf59p.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1453081020 8250 80.91.229.3 (18 Jan 2016 01:37:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Jan 2016 01:37:00 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 18 02:36:51 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aKykU-0001GP-AV for ged-emacs-devel@m.gmane.org; Mon, 18 Jan 2016 02:36:50 +0100 Original-Received: from localhost ([::1]:56400 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aKykT-0005xC-FH for ged-emacs-devel@m.gmane.org; Sun, 17 Jan 2016 20:36:49 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50897) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aKykQ-0005x5-0n for emacs-devel@gnu.org; Sun, 17 Jan 2016 20:36:46 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aKykM-000460-Pj for emacs-devel@gnu.org; Sun, 17 Jan 2016 20:36:45 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:50298) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aKykM-00045s-Ia for emacs-devel@gnu.org; Sun, 17 Jan 2016 20:36:42 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aKykK-0001B2-6t for emacs-devel@gnu.org; Mon, 18 Jan 2016 02:36:40 +0100 Original-Received: from 23-91-143-239.cpe.pppoe.ca ([23.91.143.239]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 18 Jan 2016 02:36:40 +0100 Original-Received: from monnier by 23-91-143-239.cpe.pppoe.ca with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 18 Jan 2016 02:36:40 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 21 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 23-91-143-239.cpe.pppoe.ca User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:aF0LRF8A9stqDymYvLTNoDwwyTc= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:198226 Archived-At: >> 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. Stefan