emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#14075: closed (24.3.50; Escaped parentheses break


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#14075: closed (24.3.50; Escaped parentheses break sh-mode indentation)
Date: Thu, 28 Mar 2013 17:25:02 +0000

Your message dated Thu, 28 Mar 2013 10:21:17 -0700
with message-id <address@hidden>
and subject line Re: bug#14075: 24.3.50; Escaped parentheses break sh-mode 
indentation
has caused the debbugs.gnu.org bug report #14075,
regarding 24.3.50; Escaped parentheses break sh-mode indentation
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
14075: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14075
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 24.3.50; Escaped parentheses break sh-mode indentation Date: Thu, 28 Mar 2013 09:08:47 -0700
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 address@hidden
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
[...]



--- End Message ---
--- Begin Message --- Subject: Re: bug#14075: 24.3.50; Escaped parentheses break sh-mode indentation Date: Thu, 28 Mar 2013 10:21:17 -0700
On Thu, Mar 28, 2013 at 9:39 AM, Christopher Schmidt
<address@hidden> 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.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]