From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?iso-8859-15?q?J=E9r=F4me_Marant?= Newsgroups: gmane.emacs.bugs Subject: (perl-mode) bad indentation if no trailing comma in nested hashes Date: Mon, 07 Mar 2005 22:34:08 +0100 Message-ID: <87r7irw373.fsf@marant.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1110231312 7071 80.91.229.2 (7 Mar 2005 21:35:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 7 Mar 2005 21:35:12 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 07 22:35:12 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D8Pr4-00013J-7U for geb-bug-gnu-emacs@m.gmane.org; Mon, 07 Mar 2005 22:33:35 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D8QAu-0000dy-5c for geb-bug-gnu-emacs@m.gmane.org; Mon, 07 Mar 2005 16:54:04 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D8Q8O-0007yz-Q4 for bug-gnu-emacs@gnu.org; Mon, 07 Mar 2005 16:51:29 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D8Q8L-0007xO-4N for bug-gnu-emacs@gnu.org; Mon, 07 Mar 2005 16:51:26 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D8Q8K-0007vy-K9 for bug-gnu-emacs@gnu.org; Mon, 07 Mar 2005 16:51:24 -0500 Original-Received: from [213.228.0.44] (helo=postfix3-1.free.fr) by monty-python.gnu.org with esmtp (Exim 4.34) id 1D8PsE-0004Ei-HN for bug-gnu-emacs@gnu.org; Mon, 07 Mar 2005 16:34:46 -0500 Original-Received: from amboise (unknown [82.227.97.206]) by postfix3-1.free.fr (Postfix) with ESMTP id 56FF1173485 for ; Mon, 7 Mar 2005 22:34:42 +0100 (CET) Original-Received: by amboise (Postfix, from userid 1000) id 8F66D2C03E; Mon, 7 Mar 2005 22:34:08 +0100 (CET) Original-To: bug-gnu-emacs@gnu.org User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.3 (gnu/linux) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org X-MailScanner-To: geb-bug-gnu-emacs@m.gmane.org Xref: news.gmane.org gmane.emacs.bugs:10877 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:10877 Hi, Could you please followup every bug report once they are fixed in order for me to tag them as fixed. TIA. Cheers, ---------- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D47675 >>From unknown Mon Mar 07 20:56:38 2005 Received: (at submit) by bugs.debian.org; 17 Oct 1999 21:37:18 +0000 Received: (qmail 23406 invoked from network); 17 Oct 1999 21:37:13 -0000 Received: from front7m.grolier.fr (195.36.216.57) by master.debian.org with SMTP; 17 Oct 1999 21:37:13 -0000 Received: from bylbo.nowhere.earth (ppp-113-196.villette.club-internet.fr [= 194.158.113.196]) by front7m.grolier.fr (8.9.3/No_Relay+No_Spam_MGC990224) with ESMTP id XAA= 27005; Sun, 17 Oct 1999 23:35:29 +0200 (MET DST) Received: from dwitch by bylbo.nowhere.earth with local (Exim 3.03 #1 (Debi= an)) id 11cwDj-00085y-00; Sun, 17 Oct 1999 21:43:55 +0200 From: Yann Dirson To: Debian Bug Tracking System Subject: perl-mode: bad indentation if no trailing comma in nested hashes X-Reportbug-Version: 0.34 X-Mailer: reportbug 0.34 Date: Sun, 17 Oct 1999 21:43:54 +0200 Message-Id: Package: emacs20 Version: 20.3-11 Severity: normal I have a hash starting with the following lines: %LCDkmaps =3D ( 'i386' =3D> { 'qwerty' =3D> { 'US' =3D> {=20 'Standard' =3D> 'us', 'With latin1' =3D> 'us-latin1', }, 'UK' =3D> 'uk', }, }, 'sparc' =3D> { 'T5' =3D> { If I omit the trailing comma after 'us-latin1', then the 'UK' lines erroneously gets extra indentation. Note this is not systematic: if I omit the one following value for 'qwerty', then the 'sparc' lines still gets correct indentation. -- System Information Debian Release: potato Architecture: i386 Kernel: Linux bylbo 2.2.12 #1 Sun Sep 12 22:27:06 CEST 1999 i586 Versions of packages emacs20 depends on: ii emacsen-common 1.4.9 Common facilities for all emac= sen. ii libc6 2.1.2-5 GNU C Library: Shared librarie= s an ii liblockfile1 1.01 Shared library with NFS-safe l= ocki ii libncurses4 4.2-3.4 Shared libraries for terminal = hand ii xlib6g 3.3.5-1 shared libraries required by X= cli >>From rlb@defaultvalue.org Tue Jul 20 20:11:45 2004 Received: (at 47675-forwarded) by bugs.debian.org; 21 Jul 2004 03:11:45 +00= 00 Return-path: Received: from dsl093-216-237.aus1.dsl.speakeasy.net (defaultvalue.org) [66= .93.216.237] (postfix) by spohr.debian.org with esmtp (Exim 3.35 1 (Debian)) id 1Bn7WC-0003XM-00; Tue, 20 Jul 2004 20:11:45 -0700 Received: from trouble.defaultvalue.org (omen.defaultvalue.org [192.168.1.1= ]) by defaultvalue.org (Postfix) with ESMTP id 7984740BB; Tue, 20 Jul 2004 22:11:42 -0500 (CDT) Received: by trouble.defaultvalue.org (Postfix, from userid 1000) id DBC0F410AC; Tue, 20 Jul 2004 22:10:39 -0500 (CDT) To: bug-gnu-emacs@gnu.org Cc: 47675-forwarded@bugs.debian.org Subject: Possible old perl-mode hash indentation bug. From: Rob Browning Date: Tue, 20 Jul 2004 22:10:39 -0500 Message-ID: <87iscikqc0.fsf@trouble.defaultvalue.org> User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=3Dus-ascii Delivered-To: 47675-forwarded@bugs.debian.org X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25=20 (1.212-2003-09-23-exp) on spohr.debian.org X-Spam-Status: No, hits=3D-3.0 required=3D4.0 tests=3DBAYES_00 autolearn=3D= no=20 version=3D2.60-bugs.debian.org_2004_03_25 X-Spam-Level:=20 This bug, presuming it is a bug, has been around since at least Emacs version 20.3.=20=20 Given a hash like this one when in perl-mode: %LCDkmaps =3D ( 'i386' =3D> { 'qwerty' =3D> { 'US' =3D> {=20 'Standard' =3D> 'us', 'With latin1' =3D> 'us-latin1', }, 'UK' =3D> 'uk', }, }, 'sparc' =3D> { 'T5' =3D> { Emacs will over-indent the 'UK' line if you leave out the comma after 'us-latin1'. (Although Emacs won't over-indent if you leave out the comma after the 'qwerty' block'.) Presuming I didn't make any mistakes, this appears to be repeatable in the current version of Emacs 21, and in CVS as of Sunday. (If you can, please maintain the cc to the bug tracker in any followup messages. Thanks) ---------- --=20 J=E9r=F4me Marant