[Top][All Lists]

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

Re: shell-script indentation bug

From: Chong Yidong
Subject: Re: shell-script indentation bug
Date: Thu, 28 Feb 2008 16:02:52 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.91 (gnu/linux)

Stefan Monnier <address@hidden> writes:

>> 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.

reply via email to

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