GNU bug report logs - #19079
24.4; smie mis-highlights unmatchable keywords

Previous Next

Package: emacs;

Reported by: Josh Berdine <josh <at> berdine.net>

Date: Mon, 17 Nov 2014 14:03:02 UTC

Severity: normal

Found in version 24.4

Full log


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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Josh Berdine <josh <at> berdine.net>
Cc: 19079 <at> debbugs.gnu.org, Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: Re: bug#19079: 24.4; smie mis-highlights unmatchable keywords
Date: Fri, 04 Dec 2020 11:26:28 +0100
Josh Berdine <josh <at> berdine.net> writes:

> emacs -Q
> M-x load-file
> ~/.opam/4.02.1/share/tuareg/tuareg.el
> M-x tuareg-mode
> M-x show-paren-mode
> let f () =
>   let x = 0 in
>   ()
> C-u 17 C-b
>
> This starts a fresh emacs, loads the tuareg mode, enables
> show-paren-mode, enters some ocaml code, and puts the point on a 'let'
> keyword.  This 'let' is highlighted in 'show-paren-mismatch-face'.  As
> there is no way for this 'let' to be matched (as far as smie is
> concerned) this 'let' should not be highlighted.

(This bug report unfortunately got no response at the time.)

Stefan M says:

 > And sorry for overlooking the fact that "let" gets highlighted as unmatched; that's  
 > indeed an error. Could you report it via "M-x report-emacs-bug" since it's a bug in  
 > smie.el rather than in Tuareg?  

This was six years ago.  Is this still an issue in more recent versions
of Emacs?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 4 years and 253 days ago.

Previous Next


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