emacs-devel
[Top][All Lists]
Advanced

[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: Wed, 27 Feb 2008 11:21:26 -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?


        Stefan




reply via email to

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