[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 <02d45a30-ac9e-46a1-8f7b-1e3ce651de00@googlegroups.com>,
Jacob Gerlach <jacobgerlach@gmail.com> 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 ***