From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Sam Halliday 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 14:01:52 +0100 Message-ID: References: <83y31kfumo.fsf@gnu.org> <83woh4ftqk.fsf@gnu.org> <83v9woftc4.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="41422"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 36432@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 29 15:21:50 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 1hhDIc-000Afr-OC for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Jun 2019 15:21:50 +0200 Original-Received: from localhost ([::1]:39646 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hhDIb-0000D2-5T for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Jun 2019 09:21:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41612) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hhCzX-0000Ra-Vd for bug-gnu-emacs@gnu.org; Sat, 29 Jun 2019 09:02:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hhCzT-0004ic-1U for bug-gnu-emacs@gnu.org; Sat, 29 Jun 2019 09:02:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58282) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hhCzS-0004iU-Ty for bug-gnu-emacs@gnu.org; Sat, 29 Jun 2019 09:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hhCzS-00071U-99 for bug-gnu-emacs@gnu.org; Sat, 29 Jun 2019 09:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Sam Halliday Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 29 Jun 2019 13:02: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.156181332026988 (code B ref 36432); Sat, 29 Jun 2019 13:02:02 +0000 Original-Received: (at 36432) by debbugs.gnu.org; 29 Jun 2019 13:02:00 +0000 Original-Received: from localhost ([127.0.0.1]:43593 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hhCzP-00071D-OD for submit@debbugs.gnu.org; Sat, 29 Jun 2019 09:01:59 -0400 Original-Received: from mail-vs1-f49.google.com ([209.85.217.49]:43827) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hhCzO-000710-GQ for 36432@debbugs.gnu.org; Sat, 29 Jun 2019 09:01:58 -0400 Original-Received: by mail-vs1-f49.google.com with SMTP id j26so5906948vsn.10 for <36432@debbugs.gnu.org>; Sat, 29 Jun 2019 06:01:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=8ltxzfejuc+/5CcOZSUIqt5vdbSsf62H0dxsK5JbG1U=; b=hCWjt0JeM7xnfBn0QJieLNPe3u/btrRxbqAEiqlAZxLc2ao+yXE9V9Qi7869Ke51ZD W58kzlgXj/v5iDpJxA50Tb8o+t0c6vSnUI0c6SrO9t2VdEwOiCQZ3XtAn7SpDjWuPl+U IfUfbNJUhZKGxsUxzTsgxaOIziq8dqH7CECf+/QvmYrFrxyLmnKNT5Gg5sewW0QXR0jx 58YDaG7MHfu3TPcLZ1mub3FlrsGbCkByOYw117LADyePuUb/NdNH5vJrjhN2Daj/PDoF rIbIQc5Jn3pgEA8oS58IP/LsX3CmqOLurN9MC5zoqSydhUwJ6wKLO7Po+AGu21rX5jd3 JoHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=8ltxzfejuc+/5CcOZSUIqt5vdbSsf62H0dxsK5JbG1U=; b=skact+t++bVgdmPnWJ/hhvj/pVpT7LZ5Zf6V1MqDij11thzeiuJSvOiARydBM3jSso 5aToVZsOhACUoBdo/kQ3ctp9qOSmoNPZV53tmEOj46loUdjqjvNg/HmiFOOoJglzWFFn 8Xm9TwX0B4CBP7yLz+h//ZMRrqBabSHccZySaePsfpYYwMpToj0/Hxzhsgz3TxZeD4L3 80dFVr1mgbi+0hoTPs4KlXb9ysJ5X8rzTeOjSkfg2XLGW2G7NEvWz/1DDMDr8+VnFAPn /bRIblV8/l2RcJHaLSGYLqtf5CNuvAoziSTURnejZjt230Ro1lUG9+kixebUWQ7TMWeu bv2g== X-Gm-Message-State: APjAAAUu5a2wdHwM3ubXx59d41Uukkq0u33mtvdge+uGqszJWeWUcF6U 82bd4V4ggG3VzxhXrIXYpgGEGlqJgDdvlCEze54= X-Google-Smtp-Source: APXvYqz/pKM/AGvj5B9xZyD/Lbbw5g1FZ8JM8QJi6gOTUcJKpP0G+ZSXQyGzH2t30LaVdqX0rgStZQeOUrJKiC31y/0= X-Received: by 2002:a05:6102:3c5:: with SMTP id n5mr9118713vsq.56.1561813312615; Sat, 29 Jun 2019 06:01:52 -0700 (PDT) Original-Received: by 2002:a9f:2427:0:0:0:0:0 with HTTP; Sat, 29 Jun 2019 06:01:52 -0700 (PDT) In-Reply-To: <83v9woftc4.fsf@gnu.org> 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:161826 Archived-At: 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. 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. I'll most likely have to step debug at some point to get to the bottom of this.