emacs-devel
[Top][All Lists]
Advanced

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

Re: question regarding my emacs package


From: Michael Heerdegen
Subject: Re: question regarding my emacs package
Date: Wed, 14 Jun 2023 01:55:54 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Mattias,

could you maybe please have a short look?

Madhu <enometh@meer.net> writes:

> >> (require 'cl-lib)
> >> (defun xyz ())
> >> (cl-defstruct barf
> >>   (buffer-file-name (xyz)))
> >>
> >> (defun barf-foo ()
> >>   (let ((barf (make-barf)))))

==> Optimization failure for make-barf: Handler: make-barf--cmacro
(wrong-type-argument stringp (xyz))

Madhu, seems you have hit a corner case bug.

The resulting code (i.e. the defined `make-barf--cmacro') uses
`buffer-file-name' as the name of a variable it let-binds, which results
in the above warning (or a similar error message) in the case of this
variable.

Is this a known limitation (Mattias)?


TIA,

Michael.



reply via email to

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