From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: letters@hotpop.com (Jari Aalto+mail.emacs) Newsgroups: gmane.emacs.devel Subject: Emacs 21.2 align.el - Perl hash element alignment bug Date: Mon, 23 Dec 2002 21:54:33 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <7ke01pfq.fsf@blue.sea.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1040673116 30413 80.91.224.249 (23 Dec 2002 19:51:56 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 23 Dec 2002 19:51:56 +0000 (UTC) Keywords: align,likethisone,hash Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18QYbn-0007tU-00 for ; Mon, 23 Dec 2002 20:51:27 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18QYf0-0008KB-00 for ; Mon, 23 Dec 2002 20:54:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18QYbo-0002XW-07 for emacs-devel@quimby.gnus.org; Mon, 23 Dec 2002 14:51:28 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18QYbZ-0002MJ-00 for emacs-devel@gnu.org; Mon, 23 Dec 2002 14:51:13 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18QYbQ-0002CD-00 for emacs-devel@gnu.org; Mon, 23 Dec 2002 14:51:05 -0500 Original-Received: from smtp2.sooninternet.net ([212.246.17.84]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18QYbI-0001Ma-00 for emacs-devel@gnu.org; Mon, 23 Dec 2002 14:50:56 -0500 Original-Received: from poboxes.com (ip10-205.dial.tpo.fi [212.246.177.205]) gBNJqqA24596 for ; Mon, 23 Dec 2002 21:52:56 +0200 (EET) Original-To: emacs-devel@gnu.org X-Sender-Info: Emacs resources http://tiny-tools.sourceforge.net/ http://poboxes.com/jari.aalto ICQ 'jari-aalto' 82313129 PGP 2.6.x keyid 47141D35 http://www.pgpi.net/ User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/20.7 (i386-*-nt5.0.2195) (i386-*-nt5.0.2195) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:10323 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:10323 (emacs-version) "GNU Emacs 21.2.1 (i386-msvc-nt5.0.2195) of 2002-03-19 on buffy" 1) M-x cperl-mode 2) load-library align 3) Write the above tests align.el behaves incorrectly in cperl-mode where the code reads: %hash = ( one => 1 , amnMore => 2 , hm => 3 , likeThisOne => 4-!- ); Position cursor (-!-) anywhere at the end of the above lines and call M-x align-newline-and-indent. The problem is that align.el seeks first "=": %hash = ( one => 1 , amnMore => 2 , hm => 3 , likeThisOne => 4 ); It should be smarter and align according to "=>". I studied the code, but I do not undertand the syntax rules used there enough to make any suggestions. %hash = ( one => 1 , andMore => 2 , hm => 3 , likeThisOne => 4 ); Jari -- http://tiny-tools.sourceforge.net/ Swatch @time http://www.ryanthiessen.com/swatch/resources.htm Convert @time http://www.mir.com.my/iTime/itime.htm