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

[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 ***


reply via email to

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