[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: shell-script indentation bug
From: |
Stefan Monnier |
Subject: |
Re: shell-script indentation bug |
Date: |
Thu, 28 Feb 2008 16:38:18 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
>>> with cursor at the end of the line as shown below
>>
>>> if [ $# == 0 ]; then
>>> ____________________|______
>>
>>
>>> C-j should indent.
>>
>> Well, I'd agree, but it's done on purpose: C-j is bound to
>> sh-newline-and-indent whose docstring says:
>>
>> Strip unquoted whitespace, insert newline, and indent like current line.
>>
>> Please can someone investigate which this binding was added (what was
>> it trying to fix), and then make it DTRT?
> It is present in the original version of sh-script.el, 13 years ago.
> I think this binding should simply be removed, and the default
> (newline-and-indent) used instead.
Agreed,
Stefan