[Top][All Lists]

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

Re: The with-slots macro shadows function names

From: Stefan Monnier
Subject: Re: The with-slots macro shadows function names
Date: Fri, 31 Mar 2017 09:58:06 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

>>>>> "Steven" == Steven Allen <address@hidden> writes:

> The following fails to compile on emacs 26 but compiles on emacs 25:

>   (lambda (obj) (with-slots (message) obj (message "")))

> It fails with:

>   Eager macro-expansion failure: (invalid-function ((slot-value object (quote 
> message))))

> It appears to be substituting the `message` function name with
> `(slot-value object 'message)`.

Please make it a bug report.  It's caused by:

    commit 0d112c00ba0ec14bd3014efcd3430b9ddcfe1fc1
    Author: Paul Pogonyshev <address@hidden>
    Date:   Sun Mar 12 09:51:23 2017 +0100
        Fix bug in generator function with pcase (Bug#26068)
        * lisp/emacs-lisp/cl-macs.el (cl--sm-macroexpand): Remove some calls
        to symbol-name.

-- Stefan

reply via email to

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