From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Luca Ferrari Newsgroups: gmane.emacs.help Subject: Re: align-regexp problem when called from lisp code Date: Fri, 9 Aug 2013 08:08:32 +0200 Message-ID: References: <87wqnws9in.fsf@thinkpad.tsdh.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1376028529 14000 80.91.229.3 (9 Aug 2013 06:08:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 9 Aug 2013 06:08:49 +0000 (UTC) Cc: help-gnu-emacs To: Tassilo Horn Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 09 08:08:52 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V7fsZ-0003uW-OY for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Aug 2013 08:08:51 +0200 Original-Received: from localhost ([::1]:44278 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7fsZ-0005CS-8t for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Aug 2013 02:08:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60181) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7fsP-0005CB-Aa for help-gnu-emacs@gnu.org; Fri, 09 Aug 2013 02:08:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V7fsO-0006RB-4v for help-gnu-emacs@gnu.org; Fri, 09 Aug 2013 02:08:41 -0400 Original-Received: from mail-we0-x231.google.com ([2a00:1450:400c:c03::231]:36555) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7fsH-0006Jn-2I; Fri, 09 Aug 2013 02:08:33 -0400 Original-Received: by mail-we0-f177.google.com with SMTP id m46so3218703wev.36 for ; Thu, 08 Aug 2013 23:08:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=XrD5HKh2g3x+nMMA06TQUPa6sOjcyPRRIFSDTogMh1o=; b=o7lgnKoig2yrvC63JP4cbxzY3b9+QfgClTxwNThuG3hROSiJc68VjVQwO63V46uVJ5 p7hQO/beimwEex3rcG96Ldux0L8gUe34rGqmannwtAV8kdo4id+u/0UgmzqLjs1CfJh1 4FOPR25E17lo0mm63x4EvvraP6BIA2Al1zHW/rNNhvsykww6BYs2fAhCu4xmz1Xai8hL 1I5O6wfXLcZLJS57rRMxlyiJ32oAlZ/GSDQ/4LLm3PnPeWFw4oQzsuL2ydoM8VvclF5i L8Ag3LqsosPhK+jVY1NaUiKGslgnwCTKGFXFoehsOLYrj2k9epE5PdGSjHCXyolfmQdm 2Apg== X-Received: by 10.194.170.227 with SMTP id ap3mr5362265wjc.40.1376028512301; Thu, 08 Aug 2013 23:08:32 -0700 (PDT) Original-Received: by 10.194.157.194 with HTTP; Thu, 8 Aug 2013 23:08:32 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: OayhWaKk5NXdxv6_ptcScfISHAY X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c03::231 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:92786 Archived-At: On Thu, Aug 8, 2013 at 1:57 PM, Luca Ferrari wrote: > On Thu, Aug 8, 2013 at 1:32 PM, Tassilo Horn wrote: > >> --8<---------------cut here---------------start------------->8--- >> (defun fluca1978/align-assignments (beg end) >> (interactive "r") >> (align-regexp beg end "\\(\\s-*\\)=")) >> --8<---------------cut here---------------end--------------->8--- > Uhm...just for curiosity, what kind of regexp should I use if I want also to align all comment starting (/*) in every row? Thanks, Luca