From: Barry Margolin <barmar@alum.mit.edu>
To: help-gnu-emacs@gnu.org
Subject: Re: Operate on each line in region
Date: Wed, 23 Apr 2014 19:44:18 -0400 [thread overview]
Message-ID: <barmar-8E00EC.19441823042014@news.eternal-september.org> (raw)
In-Reply-To: 02d45a30-ac9e-46a1-8f7b-1e3ce651de00@googlegroups.com
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 ***
next prev parent reply other threads:[~2014-04-23 23:44 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-23 17:45 Operate on each line in region Jacob Gerlach
2014-04-23 18:03 ` Doug Lewan
2014-04-23 18:05 ` Stefan Monnier
2014-04-23 18:15 ` Pascal J. Bourguignon
[not found] ` <mailman.20129.1398276348.10748.help-gnu-emacs@gnu.org>
2014-04-23 19:06 ` Barry Margolin
2014-04-23 19:18 ` Jacob Gerlach
2014-04-23 23:23 ` Jacob Gerlach
2014-04-23 23:44 ` Barry Margolin [this message]
2014-04-26 3:02 ` Jacob Gerlach
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=barmar-8E00EC.19441823042014@news.eternal-september.org \
--to=barmar@alum.mit.edu \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).