* bug#14075: 24.3.50; Escaped parentheses break sh-mode indentation
@ 2013-03-28 16:08 Josh
2013-03-28 16:39 ` Christopher Schmidt
0 siblings, 1 reply; 4+ messages in thread
From: Josh @ 2013-03-28 16:08 UTC (permalink / raw)
To: 14075
Steps to reproduce:
1) put the following text into file `foo' and visit it:
#!/bin/bash
find . \( -name foo -prune \) -o \( -type f -name 'bar*' \) -print0 |
xargs -0 somecmd
echo why is this line indented???
2) C-x h C-M-\
3) Expected behavior: buffer contents would be unchanged
4) Actual behavior: buffer was modified as follows:
#!/bin/bash
find . \( -name foo -prune \) -o \( -type f -name 'bar*' \) -print0 |
xargs -0 somecmd
echo why is this line indented???
In GNU Emacs 24.3.50.1 (x86_64-apple-darwin, NS apple-appkit-1187.34)
of 2013-03-04 on bix
Bzr revision: 111935 yamaoka@jpl.org-20130304102733-4qy111z41qwoh2as
Windowing system distributor `Apple', version 10.3.1187
Configured using:
`configure --host=x86_64-apple-darwin --build=i686-apple-darwin
--with-ns'
Important settings:
value of $LC_CTYPE: en_US.UTF-8
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8-unix
default enable-multibyte-characters: t
[...]
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#14075: 24.3.50; Escaped parentheses break sh-mode indentation
2013-03-28 16:08 bug#14075: 24.3.50; Escaped parentheses break sh-mode indentation Josh
@ 2013-03-28 16:39 ` Christopher Schmidt
2013-03-28 17:21 ` Josh
0 siblings, 1 reply; 4+ messages in thread
From: Christopher Schmidt @ 2013-03-28 16:39 UTC (permalink / raw)
To: 14075
I think this is a duplicate of #13161.
Christopher
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#14075: 24.3.50; Escaped parentheses break sh-mode indentation
2013-03-28 16:39 ` Christopher Schmidt
@ 2013-03-28 17:21 ` Josh
2013-04-19 15:32 ` Stefan Monnier
0 siblings, 1 reply; 4+ messages in thread
From: Josh @ 2013-03-28 17:21 UTC (permalink / raw)
To: 14075; +Cc: 14075-done
On Thu, Mar 28, 2013 at 9:39 AM, Christopher Schmidt
<christopher@ch.ristopher.com> wrote:
> I think this is a duplicate of #13161.
>
> Christopher
Yes, I somehow missed that and Emacs does correctly indent the script
when I employ Stefan's suggested workaround, i.e. `` find . "(" -name
foo -prune ")" -o "(" -type f -name 'bar*' ")" -print0 | xargs -0
somecmd '' so I'll go ahead and close this.
Stefan, can you explain why this won't be fixed anytime soon? I've
been using \( ... \) in find invocations for a million years, give or
take, and I expect it will take not a little effort to habituate
myself to quoting parentheses this way.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-04-19 15:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-28 16:08 bug#14075: 24.3.50; Escaped parentheses break sh-mode indentation Josh
2013-03-28 16:39 ` Christopher Schmidt
2013-03-28 17:21 ` Josh
2013-04-19 15:32 ` Stefan Monnier
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.