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: align.el: css-mode Date: Thu, 13 Jan 2005 18:34:29 -0700 Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1105667391 6880 80.91.229.6 (14 Jan 2005 01:49:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 14 Jan 2005 01:49:51 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 14 02:49:43 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CpGat-00020V-00 for ; Fri, 14 Jan 2005 02:49:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CpGmJ-0008EB-5X for ged-emacs-devel@m.gmane.org; Thu, 13 Jan 2005 21:01:32 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CpGkj-0007aM-8m for emacs-devel@gnu.org; Thu, 13 Jan 2005 20:59:54 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CpGkV-0007ST-2X for emacs-devel@gnu.org; Thu, 13 Jan 2005 20:59:41 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CpGkQ-0007OR-QC for emacs-devel@gnu.org; Thu, 13 Jan 2005 20:59:34 -0500 Original-Received: from [66.111.4.26] (helo=out2.smtp.messagingengine.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CpGME-0000Yw-PD for emacs-devel@gnu.org; Thu, 13 Jan 2005 20:34:34 -0500 Original-Received: from frontend3.messagingengine.com (frontend3.internal [10.202.2.152]) by frontend1.messagingengine.com (Postfix) with ESMTP id 661C4C4C8C9 for ; Thu, 13 Jan 2005 20:34:33 -0500 (EST) X-Sasl-enc: CSIM9fN+mS0S3+n+sJXsLg 1105666471 Original-Received: from Majnun.local (ip24-251-198-36.ph.ph.cox.net [24.251.198.36]) by frontend3.messagingengine.com (Postfix) with ESMTP id EBDDD28783 for ; Thu, 13 Jan 2005 20:34:31 -0500 (EST) Original-Received: by Majnun.local (Postfix, from userid 501) id E97C071584E; Thu, 13 Jan 2005 18:34:29 -0700 (MST) Original-To: emacs-devel@gnu.org In-Reply-To: (Karl Chen's message of "Thu, 13 Jan 2005 16:15:22 -0800") User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (darwin) 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: main.gmane.org gmane.emacs.devel:32218 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:32218 Karl Chen writes: > Hi, I suggest the following patch to support aligning CSS > declarations. > > --- .backup/align.el.~1~ 2003-09-01 08:45:04.000000000 -0700 > +++ align.el 2005-01-13 16:11:35.000000000 -0800 > @@ -578,7 +578,13 @@ > (justify . t) > (run-if . ,(function > (lambda () > - (eq '- current-prefix-arg)))))) > + (eq '- current-prefix-arg))))) > + > + (css-declaration > + (regexp . "^\\s-*\\w+:\\(\\s-*\\).*;") > + (group . (1)) > + (modes . '(css-mode html-mode)))) > + Sounds reasonable to me. John