GNU bug report logs - #48011
27.2; Emacs freezes in modula 2 mode when entering a :

Previous Next

Package: emacs;

Reported by: Dan Čermák <dan.cermak <at> cgc-instruments.com>

Date: Sun, 25 Apr 2021 08:28:02 UTC

Severity: normal

Tags: fixed, patch

Found in version 27.2

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


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

From: Gregory Heytings <gregory <at> heytings.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Dan Čermák <dan.cermak <at> cgc-instruments.com>,
 48011 <at> debbugs.gnu.org
Subject: Re: bug#48011: 27.2; Emacs freezes in modula 2 mode when entering a :
Date: Sun, 25 Apr 2021 10:37:10 +0000
[Message part 1 (text/plain, inline)]
>
> I cannot reproduce this using the recipe in the Bugzilla report, neither 
> in Emacs 27.2 nor in the current master branch.  I see no hang.
>

The recipe isn't precise enough:

emacs -Q foo.mod
set SPC PROD SPC : SPC

Emacs hangs after the second SPC.  This bug is an old one, Emacs 24 has 
the same problem.  In fact an ever shorter recipe also works:

emacs -Q foo.mod
: SPC

>
> If C-g interrupts the hang, please set debug-on-signal non-nil, repeat 
> the recipe, press C-g, and post the Lisp backtrace here.
>

You probably meant "debug-on-quit".  Here is the backtrace:

smie-default-backward-token()
m2-smie-refine-colon()
m2-smie-backward-token()
smie-blink-matching-open()
self-insert-command(1 32)
funcall-interactively(self-insert-command 1 32)
call-interactively(self-insert-command nil nil)
command-execute(self-insert-command)

And here is the patch.
[Fix-infloop-in-Modula-2-mode.patch (text/x-diff, attachment)]

This bug report was last modified 3 years and 361 days ago.

Previous Next


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