GNU bug report logs - #36432
26.2; SMIE does not request forward tokens when point is at point-max

Previous Next

Package: emacs;

Reported by: Sam Halliday <sam.halliday <at> gmail.com>

Date: Sat, 29 Jun 2019 12:15:01 UTC

Severity: normal

Found in version 26.2

Full log


Message #14 received at 36432 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Sam Halliday <sam.halliday <at> gmail.com>
Cc: 36432 <at> debbugs.gnu.org
Subject: Re: bug#36432: 26.2; SMIE does not request forward tokens when point
 is at point-max
Date: Sat, 29 Jun 2019 15:42:27 +0300
> From: Sam Halliday <sam.halliday <at> gmail.com>
> Date: Sat, 29 Jun 2019 13:34:06 +0100
> Cc: 36432 <at> debbugs.gnu.org
> 
> > ??? There can be noting at point-max, as that position is beyond the
> > last buffer position.  Did you mean the position just before that?  Or
> > am I missing something here?
> >
> 
> I mean at point-max.
> 
> Consider this layout algorithm
> 
> https://gitlab.com/tseenshe/haskell-tng.el/blob/tng/haskell-tng-layout.el
> 
> and this lexer
> 
> https://gitlab.com/tseenshe/haskell-tng.el/blob/tng/haskell-tng-lexer.el
> 
> that can continue to produce tokens even when the point is at the very
> end of the buffer.

So you create an illusion of characters beyond the EOB?

How would Emacs know this is the case?  Why don't you also override
point-max to make it consistent with those illusory characters?




This bug report was last modified 5 years and 353 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.