From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry Margolin Newsgroups: gmane.emacs.help Subject: Re: Operate on each line in region Date: Wed, 23 Apr 2014 19:44:18 -0400 Organization: A noiseless patient Spider Message-ID: References: <787a28ce-2ab1-4b11-92fd-ca4506447baa@googlegroups.com> <8a35bad7-fd4a-4755-95c2-528b96e032b1@googlegroups.com> <02d45a30-ac9e-46a1-8f7b-1e3ce651de00@googlegroups.com> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1398296727 11103 80.91.229.3 (23 Apr 2014 23:45:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Apr 2014 23:45:27 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 24 01:45:21 2014 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 1Wd6qt-00055O-MC for geh-help-gnu-emacs@m.gmane.org; Thu, 24 Apr 2014 01:45:19 +0200 Original-Received: from localhost ([::1]:35155 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wd6qt-0000v0-9D for geh-help-gnu-emacs@m.gmane.org; Wed, 23 Apr 2014 19:45:19 -0400 Original-Path: usenet.stanford.edu!news.kjsl.com!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!barmar.motzarella.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 25 Injection-Info: barmar.motzarella.org; posting-host="2be9e9f5dd9af768b8861af71b85fc28"; logging-data="31732"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19sihrGd/wPEEWgAZSZULpY" User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Cancel-Lock: sha1:sTeZTGB4NO+5i+3K8IVfliUuhw8= Original-Xref: usenet.stanford.edu gnu.emacs.help:205080 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:97346 Archived-At: In article <02d45a30-ac9e-46a1-8f7b-1e3ce651de00@googlegroups.com>, Jacob Gerlach wrote: > I'm having more trouble figuring this out that I expected. > > I tried building a function around align-regexp: > > (defun my-justify-equals (start end) > "Indents current region to justify equals signs" > (interactive 'r') > (align-regexp start end "\\([ \t]*\\)\\(.*\\)=" 1 nil nil)) > > But when I attempt to evaluate the defun I get > > Invalid read syntax: ")" You have the wrong type of quotes around the interactive string, it should be: (interactive "r") -- Barry Margolin, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me ***