[Top][All Lists]

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

Re: Towards a cleaner build: byte-run.el

From: Lars Ingebrigtsen
Subject: Re: Towards a cleaner build: byte-run.el
Date: Thu, 13 Jun 2019 18:30:44 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Here's an intractable one:

In toplevel form:
emacs-lisp/byte-run.el:48:9:Warning: `macro-declaration-function' is an
    obsolete function (as of 24.3); use `macro-declarations-alist' instead.

It's this code:

(defvar macro-declaration-function #'macro-declaration-function
  "Function to process declarations in a macro definition.
The function will be called with two args MACRO and DECL.
MACRO is the name of the macro being defined.
DECL is a list `(declare ...)' containing the declarations.
The value the function returns is not used.")

Both the variable and the function `macro-declaration-function' are

I can't suppress the warning, because at this point the macrology in
bytecomp.el isn't quite in place yet, and slapping a
`with-suppressed-warnings' either around the entire defvar, or changing
the definition to

(lambda (..)
    (macro-declaration-function ...)))

both fail.

Any ideas?

(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no

reply via email to

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