From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.bugs Subject: bug#48011: 27.2; Emacs freezes in modula 2 mode when entering a : Date: Tue, 25 May 2021 13:09:31 +0000 Message-ID: References: <877dkqdclu.fsf@cgc-instruments.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35784"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Dan =?UTF-8?Q?=C4=8Cerm=C3=A1k?= , 48011@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 25 15:10:16 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1llWp6-00092t-At for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 25 May 2021 15:10:16 +0200 Original-Received: from localhost ([::1]:36108 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1llWp5-0001Py-77 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 25 May 2021 09:10:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55792) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1llWos-0001Mn-Ei for bug-gnu-emacs@gnu.org; Tue, 25 May 2021 09:10:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33422) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1llWos-0000Wt-6M for bug-gnu-emacs@gnu.org; Tue, 25 May 2021 09:10:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1llWos-0005z7-0j for bug-gnu-emacs@gnu.org; Tue, 25 May 2021 09:10:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 May 2021 13:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48011 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch fixed Original-Received: via spool by 48011-submit@debbugs.gnu.org id=B48011.162194817922972 (code B ref 48011); Tue, 25 May 2021 13:10:01 +0000 Original-Received: (at 48011) by debbugs.gnu.org; 25 May 2021 13:09:39 +0000 Original-Received: from localhost ([127.0.0.1]:44968 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1llWoU-0005yS-Oc for submit@debbugs.gnu.org; Tue, 25 May 2021 09:09:38 -0400 Original-Received: from heytings.org ([95.142.160.155]:36502) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1llWoP-0005yC-CZ for 48011@debbugs.gnu.org; Tue, 25 May 2021 09:09:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20210101; t=1621948172; bh=Y9KaDflNC3TceUlwy9jfbS27/POPEcWtVL34lpGYWBg=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=ZHCFaqD3+xzVmXa0dPQDrSm3JdubfUFtdJlZZTqwpQRs/9Q2mf7WqYlkmyTv10fqS y6xMxHG7QKImb/PmFhg/n6/zwpLFnh+fxX22qXmjlGy1pYVPbwnMi4WAWge5HjIh8n zoYf+C0gg3QKOsXCMaRzCG75vi3ZpIPh8lR7lrcMCx1w0ZCfvlVyRRiCoxcL70JFog V1kI0i99Kz38ghGEihhUWDrYPQIeCGCDbwEXM3jD+p3cLAL7qfaUtUNQxOhCLQpMoJ hMKhiPwRglYASlEJR/z/aU8bHN2qD//IBhqzBdAOF7j6bhWROIcBgnNIcTkeW3oUrh 99BmQ3aGmXYGQ== In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:207207 Archived-At: >> This is a forward of >> https://bugzilla.redhat.com/show_bug.cgi?id=1950158 Emacs 27.2 freezes >> when editing a file that ends with .mod (i.e. it opens the file in >> Modula 2 mode) after one enters a ':'. The UI simply hangs until one >> interrupts it with C-g. > > First, I was super happy to see a bug report about modula2.el's > indentation code (which I kind of presumed was never used). > Alas, the original bug report says: "I'm not actually programming in Modula-2, but the product I'm using typically names files with the .mod suffix." > > But I'm starting to think that the real problem here is that you > actually didn't open a Modula-2 file. > > What kind of file was that `.mod` file? > Why is this important? Even if the file is not actually a Modula-2 file, Emacs should not freeze when the user types ":": with emacs -Q foo.mod, type "a:", and Emacs freezes (until the user presses C-g).