unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* The with-slots macro shadows function names
@ 2017-03-31  6:17 Steven Allen
  2017-03-31 13:58 ` Stefan Monnier
  0 siblings, 1 reply; 2+ messages in thread
From: Steven Allen @ 2017-03-31  6:17 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 331 bytes --]


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)`.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-03-31 13:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-31  6:17 The with-slots macro shadows function names Steven Allen
2017-03-31 13:58 ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).