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.help Subject: Re: Extending Alignment in C/C++ expressions (align.el) Date: Mon, 10 Sep 2007 22:10:39 +0200 Message-ID: <200709102210.41734.andreas.roehler@online.de> References: <1189427856.416129.298270@o80g2000hse.googlegroups.com> 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: sea.gmane.org 1189455302 25909 80.91.229.12 (10 Sep 2007 20:15:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 10 Sep 2007 20:15:02 +0000 (UTC) Cc: =?iso-8859-1?q?Nordl=F6w?= To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 11 06:14:49 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IUx3p-0005HZ-Ki for geh-help-gnu-emacs@m.gmane.org; Tue, 11 Sep 2007 06:09:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IUpZT-0006WU-6E for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Sep 2007 16:09:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IUpZE-0006UI-18 for help-gnu-emacs@gnu.org; Mon, 10 Sep 2007 16:09:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IUpZC-0006SZ-BB for help-gnu-emacs@gnu.org; Mon, 10 Sep 2007 16:09:07 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IUpZC-0006SN-46 for help-gnu-emacs@gnu.org; Mon, 10 Sep 2007 16:09:06 -0400 Original-Received: from moutng.kundenserver.de ([212.227.126.177]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IUpZB-0000Lj-IK for help-gnu-emacs@gnu.org; Mon, 10 Sep 2007 16:09:05 -0400 Original-Received: from p54BEBBD5.dip0.t-ipconnect.de [84.190.187.213] (helo=karton) by mrelayeu.kundenserver.de (node=mrelayeu6) with ESMTP (Nemesis), id 0ML29c-1IUpZ945F5-0004Cy; Mon, 10 Sep 2007 22:09:04 +0200 User-Agent: KMail/1.8.2 In-Reply-To: <1189427856.416129.298270@o80g2000hse.googlegroups.com> Content-Disposition: inline X-Provags-ID: V01U2FsdGVkX19g5y0xLm0HTZR019HL7/CURe6oZjhNvcMQxUu M8JQaQaoUUIWW5Cbkyqk6QqK5KhslTJSWI04jZwsLqHGCU2JZ8 vqhEWynxPJ9oyAd5g90gg== X-Detected-Kernel: Linux 2.6? (barebone, rare!) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:47445 Archived-At: Am Montag, 10. September 2007 14:37 schrieb Nordl=F6w: > if (x) { xi =3D -1; } > else (yyy) { yyyi =3D +1; } > > should be aligned into > > if =A0 (x) =A0 { xi =A0 =3D -1; } > else (yyy) { yyyi =3D +1; } Got it with command `align-entire' with a customized `align-rules-list'. Edited the regexp of `c-assignment': `[[{=3D]' instead of `=3D'. Then optional attributes=20 =2D Repeat: =2D Boolean : on =20 Andreas R=F6hler