all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#21793: Emacs hangs in sh-mode
@ 2015-10-30  9:20 jun
  2015-10-31  6:02 ` Tassilo Horn
  0 siblings, 1 reply; 5+ messages in thread
From: jun @ 2015-10-30  9:20 UTC (permalink / raw)
  To: 21793


[-- Attachment #1.1: Type: text/plain, Size: 169 bytes --]

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.

[-- Attachment #1.2: Type: text/html, Size: 179 bytes --]

[-- Attachment #2: test.sh --]
[-- Type: application/octet-stream, Size: 30 bytes --]

#!/bin/sh

while [ 1 -gt 0]
do

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#21793: Emacs hangs in sh-mode
  2015-10-30  9:20 bug#21793: Emacs hangs in sh-mode jun
@ 2015-10-31  6:02 ` Tassilo Horn
  2015-11-02  2:07   ` Glenn Morris
  0 siblings, 1 reply; 5+ messages in thread
From: Tassilo Horn @ 2015-10-31  6:02 UTC (permalink / raw)
  To: jun; +Cc: 21793

"jun" <netjunegg@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





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#21793: Emacs hangs in sh-mode
  2015-10-31  6:02 ` Tassilo Horn
@ 2015-11-02  2:07   ` Glenn Morris
  2015-11-02 19:38     ` Tassilo Horn
  0 siblings, 1 reply; 5+ messages in thread
From: Glenn Morris @ 2015-11-02  2:07 UTC (permalink / raw)
  To: Tassilo Horn; +Cc: 21793, jun


Hang in 24.5; no hang in current master.
However current master highlights a bunch of things that aren't parens.
Eg the entire word "while" in paren mismatch face.





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#21793: Emacs hangs in sh-mode
  2015-11-02  2:07   ` Glenn Morris
@ 2015-11-02 19:38     ` Tassilo Horn
  2015-11-02 22:27       ` Glenn Morris
  0 siblings, 1 reply; 5+ messages in thread
From: Tassilo Horn @ 2015-11-02 19:38 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 21793, jun

Glenn Morris <rgm@gnu.org> writes:

> Hang in 24.5; no hang in current master.
> However current master highlights a bunch of things that aren't parens.
> Eg the entire word "while" in paren mismatch face.

I think that's intensional with SMIE, e.g., in sh-mode open/closing
"parens" are "do" and "done", etc.

Bye,
Tassilo





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#21793: Emacs hangs in sh-mode
  2015-11-02 19:38     ` Tassilo Horn
@ 2015-11-02 22:27       ` Glenn Morris
  0 siblings, 0 replies; 5+ messages in thread
From: Glenn Morris @ 2015-11-02 22:27 UTC (permalink / raw)
  To: Tassilo Horn; +Cc: 21793, jun

Tassilo Horn wrote:

> Glenn Morris <rgm@gnu.org> writes:
>
>> Hang in 24.5; no hang in current master.
>> However current master highlights a bunch of things that aren't parens.
>> Eg the entire word "while" in paren mismatch face.
>
> I think that's intensional with SMIE, e.g., in sh-mode open/closing
> "parens" are "do" and "done", etc.

Oh, OK. Seems weird and undocumented to me, but there you go.





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-11-02 22:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-30  9:20 bug#21793: Emacs hangs in sh-mode jun
2015-10-31  6:02 ` Tassilo Horn
2015-11-02  2:07   ` Glenn Morris
2015-11-02 19:38     ` Tassilo Horn
2015-11-02 22:27       ` Glenn Morris

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.