From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: shell-script indentation bug Date: Wed, 27 Feb 2008 11:21:26 -0500 Message-ID: References: <200802270938.48147.andreas.roehler@online.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1204129431 9890 80.91.229.12 (27 Feb 2008 16:23:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 Feb 2008 16:23:51 +0000 (UTC) Cc: emacs-devel@gnu.org To: Andreas =?iso-8859-1?Q?R=1FFFFFFFhler?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 27 17:24:13 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JUP3y-0002Yz-KH for ged-emacs-devel@m.gmane.org; Wed, 27 Feb 2008 17:23:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JUP3S-0001Oc-DU for ged-emacs-devel@m.gmane.org; Wed, 27 Feb 2008 11:22:50 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JUP2o-0000zu-Hp for emacs-devel@gnu.org; Wed, 27 Feb 2008 11:22:10 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JUP2l-0000ye-Qz for emacs-devel@gnu.org; Wed, 27 Feb 2008 11:22:10 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JUP2l-0000yJ-8W for emacs-devel@gnu.org; Wed, 27 Feb 2008 11:22:07 -0500 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JUP2l-0007Mu-0J for emacs-devel@gnu.org; Wed, 27 Feb 2008 11:22:07 -0500 Original-Received: from ceviche.home (vpn-132-204-232-98.acd.umontreal.ca [132.204.232.98]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id m1RGMDwk024900 for ; Wed, 27 Feb 2008 11:22:13 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id 5679CB40C5; Wed, 27 Feb 2008 11:21:26 -0500 (EST) In-Reply-To: <200802270938.48147.andreas.roehler@online.de> ("Andreas =?iso-8859-1?Q?R=1FFFFFFFhler=22's?= message of "Wed, 27 Feb 2008 09:38:47 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered HAS_X_HELO=0 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:90629 Archived-At: > 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