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: sh-newline-and-indent Date: Mon, 21 Jul 2008 23:43:10 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1216698217 32510 80.91.229.12 (22 Jul 2008 03:43:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Jul 2008 03:43:37 +0000 (UTC) Cc: emacs-devel@gnu.org To: Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 22 05:44:26 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 1KL8nY-00005g-HZ for ged-emacs-devel@m.gmane.org; Tue, 22 Jul 2008 05:44:24 +0200 Original-Received: from localhost ([127.0.0.1]:38629 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KL8mf-0004gr-9Y for ged-emacs-devel@m.gmane.org; Mon, 21 Jul 2008 23:43:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KL8ma-0004eI-MA for emacs-devel@gnu.org; Mon, 21 Jul 2008 23:43:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KL8mY-0004cY-Op for emacs-devel@gnu.org; Mon, 21 Jul 2008 23:43:23 -0400 Original-Received: from [199.232.76.173] (port=55610 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KL8mY-0004cV-L7 for emacs-devel@gnu.org; Mon, 21 Jul 2008 23:43:22 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:55918) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KL8mT-0000Sq-SC; Mon, 21 Jul 2008 23:43:17 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aq4EAGD0hEhFxIYw/2dsb2JhbACBWq1UgXo X-IronPort-AV: E=Sophos;i="4.31,228,1215403200"; d="scan'208";a="24620100" Original-Received: from 69-196-134-48.dsl.teksavvy.com (HELO pastel.home) ([69.196.134.48]) by ironport2-out.teksavvy.com with ESMTP; 21 Jul 2008 23:43:16 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id D5EB6817F; Mon, 21 Jul 2008 23:43:10 -0400 (EDT) In-Reply-To: (Miles Bader's message of "Tue, 22 Jul 2008 12:30:15 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:101159 Archived-At: > In shell-script-mode, C-j is bound to `sh-newline-and-indent'. > However, sh-newline-and-indent seems to be a not-very-good function -- > it doesn't actually do correct indentation, but rather just indents the > same as the previous line. The normal `newline-and-indent' function > seems to work much better. > Is this function/binding a leftover from times when shell-script-mode > was not so good at indentation? Should they be deleted? Sounds like it, yes, Stefan