From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: John Wiegley Newsgroups: gmane.emacs.devel Subject: Re: Emacs 21.2 align.el - Perl hash element alignment bug Date: Mon, 23 Dec 2002 14:54:17 -0700 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <87bs3cxuye.fsf@alice.dynodns.net> References: <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 1040680489 25327 80.91.224.249 (23 Dec 2002 21:54:49 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 23 Dec 2002 21:54:49 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18QaXA-0006aM-00 for ; Mon, 23 Dec 2002 22:54:48 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18QaaP-0000r4-00 for ; Mon, 23 Dec 2002 22:58:10 +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 18QaX4-0003ma-05 for emacs-devel@quimby.gnus.org; Mon, 23 Dec 2002 16:54:42 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18QaWl-0003iW-00 for emacs-devel@gnu.org; Mon, 23 Dec 2002 16:54:23 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18QaWi-0003e0-00 for emacs-devel@gnu.org; Mon, 23 Dec 2002 16:54:22 -0500 Original-Received: from mail.gci-net.com ([216.183.68.100] helo=gci-net.com) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18QaWi-0003du-00 for emacs-devel@gnu.org; Mon, 23 Dec 2002 16:54:20 -0500 Original-Received: from [216.183.69.147] (HELO aris) by gci-net.com (CommuniGate Pro SMTP 3.5.9) with ESMTP-TLS id 4956858 for emacs-devel@gnu.org; Mon, 23 Dec 2002 14:53:25 -0700 Original-Received: from johnw by aris with local (Exim 3.35 #1 (Debian)) id 18QaWf-0007uh-00 for ; Mon, 23 Dec 2002 14:54:17 -0700 Original-To: emacs-devel@gnu.org X-Public-Key: http://pgp5.ai.mit.edu:11371/pks/lookup?op=get&search=0xF40524D0 X-Home-Page: http://www.gci-net.com/users/j/johnw/ In-Reply-To: <7ke01pfq.fsf@blue.sea.net> (letters@hotpop.com's message of "Mon, 23 Dec 2002 21:54:33 +0200") User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu) 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:10329 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:10329 >>>>> On Mon Dec 23, Jari writes: > 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. Align is not smart enough to maintain "state", and thus make intelligent decisions about alignment priority, or what should and what shouldn't be aligned. These are just line-by-line regexps, after all. In cases like this where is definite confusion, you, the human, will have to step in. Simply type M-x align-regexp on the region, and then type "=>". This will do exactly what you want. John