[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to put this in a macro
From: |
Barry Margolin |
Subject: |
Re: How to put this in a macro |
Date: |
Tue, 04 May 2010 15:45:02 -0000 |
User-agent: |
MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) |
In article <87d3xywpm6.fsf@linux-lqcw.site>,
Cecil Westerhof <Cecil@decebal.nl> wrote:
> Barry Margolin <barmar@alum.mit.edu> writes:
>
> > (defmacro canonicalize-start-end (start-var end-var)
> > `(if (equal ,start-var ,end-var)
> > (setq ,start-var (point-min)
> > ,end-var (point-max))
> > (setq ,start-var (or ,start-var (point-min))
> > ,end-var (or ,end-var (point-max))))
>
> This gives an error:
> Debugger entered--Lisp error: (void-variable start-var)
> (list (quote equal) start-var end-var)
Sorry, I posted without testing. Add another close paren at the end.
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
- Re: How to put this in a macro, (continued)
- Re: How to put this in a macro, José A . Romero L ., 2010/05/04
- Re: How to put this in a macro, Cecil Westerhof, 2010/05/04
- Re: How to put this in a macro, José A . Romero L ., 2010/05/04
- Re: How to put this in a macro, Barry Margolin, 2010/05/04
- Re: How to put this in a macro, José A . Romero L ., 2010/05/04
- Re: How to put this in a macro, Barry Margolin, 2010/05/04
- Re: How to put this in a macro, Cecil Westerhof, 2010/05/04
- Re: How to put this in a macro, José A . Romero L ., 2010/05/04
- Re: How to put this in a macro, Barry Margolin, 2010/05/04
- Re: How to put this in a macro, José A . Romero L ., 2010/05/04
- Re: How to put this in a macro,
Barry Margolin <=
Re: How to put this in a macro, Pascal J. Bourguignon, 2010/05/04