emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Proposal: make prog2 a macro


From: Tino Calancha
Subject: Re: Proposal: make prog2 a macro
Date: Fri, 7 Oct 2016 14:04:22 +0900 (JST)
User-agent: Alpine 2.20 (DEB 67 2015-01-07)


On Fri, 7 Oct 2016, Wilfred Hughes wrote:

I was looking at a list of Emacs' special forms, and noticed that
prog2 is implemented in C. Is there any interest in moving this to a
simple macro?
I don't have opinion about if this is worth or not, but i think is
safer to avoid the use of backquote:  prog2 could be used in an
early stage of the bootstrap.

Instead of:
+  `(prog1
+       (progn ,form1 ,form2)
+     ,@body))

Better use:
  (cons 'prog1
        (cons (list 'progn form1 form2)
              body)))






reply via email to

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