* [jidanni@jidanni.org: Shell-script "done" becomes indented with pipe]
@ 2006-10-10 10:37 Richard Stallman
2006-10-12 23:42 ` Michael Welsh Duggan
0 siblings, 1 reply; 2+ messages in thread
From: Richard Stallman @ 2006-10-10 10:37 UTC (permalink / raw)
I won't hold the pretest for this, but if someone would like to try to
fix it, please do.
------- Start of forwarded message -------
To: emacs-pretest-bug@gnu.org
From: Dan Jacobson <jidanni@jidanni.org>
Date: Mon, 09 Oct 2006 23:45:58 +0800
Subject: Shell-script "done" becomes indented with pipe
X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=failed
version=3.0.4
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.
_______________________________________________
emacs-pretest-bug mailing list
emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
------- End of forwarded message -------
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [jidanni@jidanni.org: Shell-script "done" becomes indented with pipe]
2006-10-10 10:37 [jidanni@jidanni.org: Shell-script "done" becomes indented with pipe] Richard Stallman
@ 2006-10-12 23:42 ` Michael Welsh Duggan
0 siblings, 0 replies; 2+ messages in thread
From: Michael Welsh Duggan @ 2006-10-12 23:42 UTC (permalink / raw)
Cc: Dan Jacobson, emacs-devel
[-- Attachment #1: Type: text/plain, Size: 551 bytes --]
Richard Stallman <rms@gnu.org> writes:
> From: Dan Jacobson <jidanni@jidanni.org>
> Subject: Shell-script "done" becomes indented with pipe
> To: emacs-pretest-bug@gnu.org
> Date: Mon, 09 Oct 2006 23:45:58 +0800
> X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=failed
> version=3.0.4
>
> 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.
This seems to be fixable using the follwing simple patch:
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 494 bytes --]
*** sh-script.el 03 Oct 2006 22:47:55 -0400 1.189
--- sh-script.el 12 Oct 2006 19:41:35 -0400
***************
*** 2521,2527 ****
(goto-char where))
(prog1
(buffer-substring (point)
! (progn (skip-chars-forward "^ \t\n;&")(point)))
(unless and-move
(goto-char start)))))
--- 2521,2527 ----
(goto-char where))
(prog1
(buffer-substring (point)
! (progn (skip-chars-forward "^ \t\n;&|")(point)))
(unless and-move
(goto-char start)))))
[-- Attachment #3: Type: text/plain, Size: 44 bytes --]
--
Michael Welsh Duggan
(md5i@cs.cmu.edu)
[-- Attachment #4: Type: text/plain, Size: 142 bytes --]
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-10-12 23:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-10 10:37 [jidanni@jidanni.org: Shell-script "done" becomes indented with pipe] Richard Stallman
2006-10-12 23:42 ` Michael Welsh Duggan
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.