GNU bug report logs - #21793
Emacs hangs in sh-mode

Previous Next

Package: emacs;

Reported by: "jun" <netjunegg <at> qq.com>

Date: Fri, 30 Oct 2015 16:04:02 UTC

Severity: normal

Fixed in version 25.1

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


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

From: Tassilo Horn <tsdh <at> gnu.org>
To: "jun" <netjunegg <at> qq.com>
Cc: 21793 <at> debbugs.gnu.org
Subject: Re: bug#21793: Emacs hangs in sh-mode
Date: Sat, 31 Oct 2015 07:02:53 +0100
"jun" <netjunegg <at> qq.com> writes:

Hi!

> Run emacs with "emacs -Q". Open the attached file. Turn on
> show-paren-mode.  Then let cursor stay on word "while" or "do". Emacs
> hangs.
>
> Emacs version: 24.5 on Linux.
> #!/bin/sh
>
> while [ 1 -gt 0]
> do

I can't reproduce this with emacs 24.5, but given your example and
description, I think this is a duplicate of

  https://debbugs.gnu.org/cgi/bugreport.cgi?bug=21747

which I have fixed in 1bab3cefc133e06aaf4a48efb1623d1b458ab212.

  http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=1bab3cefc133e06aaf4a48efb1623d1b458ab212

If you can do that, could you please check if applying that patch to
your sh-script.el fixes the problem?  (Be sure to recompile it
afterwards.)

Bye,
Tassilo




This bug report was last modified 9 years and 205 days ago.

Previous Next


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