[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Shell-script "done" becomes indented with pipe
From: |
Stefan Monnier |
Subject: |
Re: Shell-script "done" becomes indented with pipe |
Date: |
Tue, 10 Oct 2006 17:06:06 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
> In recent Shell-script mode, the last line of
> while :
> do
> bla
> done
> becomes indented
> done|xxx
> if one adds a pipe. I didn't check to see maybe if this is a feature.
Maybe the patch below fixes it,
Stefan
--- sh-script.el 03 Oct 2006 16:26:41 -0400 1.189
+++ sh-script.el 10 Oct 2006 17:05:06 -0400
@@ -2521,7 +2521,7 @@
(goto-char where))
(prog1
(buffer-substring (point)
- (progn (skip-chars-forward "^ \t\n;&")(point)))
+ (progn (skip-chars-forward "^ \t\n;&|")(point)))
(unless and-move
(goto-char start)))))