From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#36432: 26.2; SMIE does not request forward tokens when point is at point-max Date: Sat, 29 Jun 2019 16:08:01 +0300 Message-ID: <83sgrsfsjy.fsf@gnu.org> References: <83y31kfumo.fsf@gnu.org> <83woh4ftqk.fsf@gnu.org> <83v9woftc4.fsf@gnu.org> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="14368"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 36432@debbugs.gnu.org To: Sam Halliday Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 29 15:14:47 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hhDBm-0003cz-BN for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Jun 2019 15:14:46 +0200 Original-Received: from localhost ([::1]:39582 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hhDBl-0002wR-8p for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Jun 2019 09:14:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42641) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hhD6F-0004pn-SN for bug-gnu-emacs@gnu.org; Sat, 29 Jun 2019 09:09:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hhD6E-0001XB-TR for bug-gnu-emacs@gnu.org; Sat, 29 Jun 2019 09:09:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58290) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hhD6E-0001X4-Pa for bug-gnu-emacs@gnu.org; Sat, 29 Jun 2019 09:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hhD6E-0007B6-JI for bug-gnu-emacs@gnu.org; Sat, 29 Jun 2019 09:09:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 29 Jun 2019 13:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36432 X-GNU-PR-Package: emacs Original-Received: via spool by 36432-submit@debbugs.gnu.org id=B36432.156181370027544 (code B ref 36432); Sat, 29 Jun 2019 13:09:02 +0000 Original-Received: (at 36432) by debbugs.gnu.org; 29 Jun 2019 13:08:20 +0000 Original-Received: from localhost ([127.0.0.1]:43601 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hhD5X-0007AC-RU for submit@debbugs.gnu.org; Sat, 29 Jun 2019 09:08:20 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:36670) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hhD5V-0007A0-PV for 36432@debbugs.gnu.org; Sat, 29 Jun 2019 09:08:18 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:48050) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hhD5Q-00012P-7z; Sat, 29 Jun 2019 09:08:12 -0400 Original-Received: from [176.228.60.248] (port=4210 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hhD5O-0006BU-96; Sat, 29 Jun 2019 09:08:12 -0400 In-reply-to: (message from Sam Halliday on Sat, 29 Jun 2019 14:01:52 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:161824 Archived-At: > From: Sam Halliday > Date: Sat, 29 Jun 2019 14:01:52 +0100 > Cc: 36432@debbugs.gnu.org > > On 29/06/2019, Eli Zaretskii wrote: > >> Date: Sat, 29 Jun 2019 15:42:27 +0300 > >> From: Eli Zaretskii > >> Cc: 36432@debbugs.gnu.org > >> > >> How would Emacs know this is the case? Why don't you also override > >> point-max to make it consistent with those illusory characters? > > > > Or actually insert those characters at EOB, but make them invisible? > > I think I'd like to avoid doing that unless I do it for all of the > virtual tokens. I don't know how to do that without it impacting the > underlying source code. Is there more documentation about doing it > that way? It'd be a drastic change in how the lexer is written. Why? does the lexer only pay attention to visible characters? > BTW I had a look through smie.el and I can't see anywhere obvious > where (eobp) or (point-max) are called that would lead to the bug I'm > seeing. It's likely in lower-level code. Like I said: this assumption is everywhere in Emacs.