help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Operate on each line in region


From: Barry Margolin
Subject: Re: Operate on each line in region
Date: Wed, 23 Apr 2014 19:44:18 -0400
User-agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X)

In article <address@hidden>,
 Jacob Gerlach <address@hidden> 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, address@hidden
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***


reply via email to

[Prev in Thread] Current Thread [Next in Thread]