[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug#9193: 23.3; newline-and-indent broken in shell-script (sh mode)
From: |
Jim Diamond |
Subject: |
Re: bug#9193: 23.3; newline-and-indent broken in shell-script (sh mode) |
Date: |
Wed, 28 Mar 2012 18:42:39 -0000 |
User-agent: |
slrn/0.9.9p1 (Linux) |
On 2011-08-02 at 22:46 ADT, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
>> #! /bin/sh
>
>> if [ $a == $b ]
>> then
>> echo newline-and-indent is OK here
>> echo "newline-and-indent is NOT OK here"
>> fi
>
>> Now, put the cursor at the end of the first "echo" line and type ^J
>> (bound to newline-and-indent). As expected, it does a
>> newline-and-indent. Now put the cursor at the end of the second "echo"
>> line and type ^J. It does the newline, but not the indent.
>
>> [ Other possibly completely irrelevant information:
>> Playing around a bit, I found that if I create my own function and
>> instead of using (newline-and-indent) I use
>> (newline)
>> (sit-for .001)
>> (indent-according-to-mode)
>> then calling that function Does The Right Thing.
>> ]
> FWIW it seems to be fixed in the trunk (i.e. in the upcoming Emacs-24).
> Could you try it out to confirm it fixes your problems?
Stefan,
I tried using 24.0.50's sh-script.el with 23.3, but there are other
changes which make that version sh-script.el not work at all in 23.3.
I put the specific patch into the 23.3 version of sh-script.el and
that solves the problem there, so I think we're good.
I'm a bit too swamped right now to play with 24.0.50, but anyone with
it installed should be able to repeat the above test in a few
seconds.
Jim
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: bug#9193: 23.3; newline-and-indent broken in shell-script (sh mode),
Jim Diamond <=