From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas =?iso-8859-1?q?R=F6hler?= Newsgroups: gmane.emacs.devel Subject: shell-script indentation bug Date: Wed, 27 Feb 2008 09:38:47 +0100 Message-ID: <200802270938.48147.andreas.roehler@online.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1204101525 1540 80.91.229.12 (27 Feb 2008 08:38:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 Feb 2008 08:38:45 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 27 09:39:02 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 1JUHoY-0003kg-VJ for ged-emacs-devel@m.gmane.org; Wed, 27 Feb 2008 09:38:59 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JUHo2-0001WA-MF for ged-emacs-devel@m.gmane.org; Wed, 27 Feb 2008 03:38:26 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JUHny-0001U2-JF for emacs-devel@gnu.org; Wed, 27 Feb 2008 03:38:22 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JUHnt-0001MI-RP for emacs-devel@gnu.org; Wed, 27 Feb 2008 03:38:22 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JUHnt-0001MB-Ow for emacs-devel@gnu.org; Wed, 27 Feb 2008 03:38:17 -0500 Original-Received: from mx20.gnu.org ([199.232.41.8]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JUHnt-0007xC-2c for emacs-devel@gnu.org; Wed, 27 Feb 2008 03:38:17 -0500 Original-Received: from moutng.kundenserver.de ([212.227.126.171]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JUHns-0001us-Dq for emacs-devel@gnu.org; Wed, 27 Feb 2008 03:38:16 -0500 Original-Received: from noname (p54BE9FC1.dip0.t-ipconnect.de [84.190.159.193]) by mrelayeu.kundenserver.de (node=mrelayeu5) with ESMTP (Nemesis) id 0ML25U-1JUHng1K0X-0006nh; Wed, 27 Feb 2008 09:38:04 +0100 User-Agent: KMail/1.9.5 Content-Disposition: inline X-Provags-ID: V01U2FsdGVkX198CpJrxSkSHX0uPNdlDuBGjHpMJ4bY2Ytw5Jr /fLGuzD3pyX9C7Y9c+WEEFds7ygIrVpvpVLDFfB1+Up+6L/50p S2crxgxcKYnel8UjQGsYw== X-detected-kernel: by mx20.gnu.org: Linux 2.6? (barebone, rare!) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:90578 Archived-At: =46ollowing the request "shell-script indenting of &&, |" I stumble over a supposed bug. In a buffer in sh-mode with cursor at the end of the line as shown below if [ $# =3D=3D 0 ]; then ____________________|______ C-j should indent. Presently it doesn't, jumps to column 0. A second C-i or `indent-according-to-mode' is needed. A fix could call `indent-according-to-mode' always after C-j. Agreed so far? Thanks Andreas R=F6hler In GNU Emacs 23.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.10.6) of 2007-12-09 on noname Windowing system distributor `The X.Org Foundation', version 11.0.70199902 Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: de_DE.UTF-8 locale-coding-system: utf-8 default-enable-multibyte-characters: t Major mode: Shell-script Minor modes in effect: tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t line-number-mode: t Recent input: C-x C-f p r o g m u =20 e i s . =20 C-j M-x r e p o r t - e m Recent messages: =46inished loading /usr/local/share/emacs/site-lisp/egg/leim-list.el=20 and load others... Loading /usr/local/share/emacs/23.0.50/leim/leim-list.el (source)...done Loading /MYPATH/emacs/20071207/emacs/leim/leim-list.el (source)...done =46or information about GNU Emacs and the GNU system, type C-h C-a. Setting up indent for shell type bash setting up indent stuff Indentation variables are now local. Indentation setup for shell type bash Auto-saving...done