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: Thu, 8 Aug 2013 13:57:21 +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 1375963054 5309 80.91.229.3 (8 Aug 2013 11:57:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 8 Aug 2013 11:57:34 +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 Thu Aug 08 13:57:36 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 1V7OqW-0000ms-LI for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Aug 2013 13:57:36 +0200 Original-Received: from localhost ([::1]:33672 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7OqW-0006Uk-Bh for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Aug 2013 07:57:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54728) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7OqL-0006UX-16 for help-gnu-emacs@gnu.org; Thu, 08 Aug 2013 07:57:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V7OqJ-0004Bt-P2 for help-gnu-emacs@gnu.org; Thu, 08 Aug 2013 07:57:24 -0400 Original-Received: from mail-wi0-x22c.google.com ([2a00:1450:400c:c05::22c]:64516) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7OqI-0004B8-6U; Thu, 08 Aug 2013 07:57:22 -0400 Original-Received: by mail-wi0-f172.google.com with SMTP id hj13so469706wib.17 for ; Thu, 08 Aug 2013 04:57:21 -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=lT6bjTjeF/8mGilLtW/GWnVEPWij+kB681upFuSeZXo=; b=W1UHcWbhqRZJ4rlJwYOZ0YLiWWj7nxqRTFVROZD6zcmt+IHyHVbvqI4FosVLUSqsd/ zmFPTGJFJTtf5Cbtj2dcL9oAPa4SxO6/h0k2K48sYvSzA5TM027G236+QYAL94SCKL5R enFYkkwHEc+hnB17OUgP7QJOXeuq1imzC09hFJ4eusXQdlP7MM+p90CMQUtozVwQtMf+ RVTvws3iJDXqggyY/US8jYSAM/KzYaW9+RdL1wTWK1gBxj1mTt+9z2jyLIm9nf/y7X5e KnOTYadIMWV1ENz3YCGtyLAsq7B23dUDI74zW8fYSw7nB4IbwuKZnzv7ja1dHcS/6qsK vWrQ== X-Received: by 10.194.172.9 with SMTP id ay9mr3226082wjc.54.1375963041229; Thu, 08 Aug 2013 04:57:21 -0700 (PDT) Original-Received: by 10.194.157.194 with HTTP; Thu, 8 Aug 2013 04:57:21 -0700 (PDT) In-Reply-To: <87wqnws9in.fsf@thinkpad.tsdh.org> X-Google-Sender-Auth: QQ093_59sopBwMFtpNLHT2pYcFQ X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::22c 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:92778 Archived-At: 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--- Thanks, the problem was with the regular expression, not with the region itself (i.e., I don't need to declare the function as accepting a region). Luca