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: Cecil Westerhof
Subject: Re: How to put this in a macro
Date: Tue, 04 May 2010 15:44:56 -0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

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)

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof


reply via email to

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