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

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

Why a defmacro that calls a defun?


From: Eric Abrahamsen
Subject: Why a defmacro that calls a defun?
Date: Mon, 02 Oct 2017 16:26:15 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.60 (gnu/linux)

I'm poking through Gnus, and seeing a fair number of places with code
that looks like this:

(defmacro nnoo-define-skeleton (backend)
  `(eval-and-compile
     (nnoo-define-skeleton-1 ',backend)))

(defun nnoo-define-skeleton-1 (backend)
  ...)

What does this actually do? All I can see happening is that a quote mark
is added before the BACKEND argument in the macro. What is happening
here?

Thanks,
Eric




reply via email to

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