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: Andrea Corallo
Subject: Re: question regarding my emacs package
Date: Tue, 13 Jun 2023 04:55:33 -0400
User-agent: Gnus/5.13 (Gnus v5.13)

Madhu <enometh@meer.net> writes:

> *  Andrea Corallo <yp1mt148wh4.fsf @fencepost.gnu.org>
> Wrote on Mon, 12 Jun 2023 12:40:55 -0400
>> Madhu <enometh@meer.net> writes:
>>>
>>> So with my emacs-30 nativecomp this just doesnt work. the
>>> buffer-file-name slot of the cl-defstruct has to be changed to
>>> buffer-file-name-1 (and the corresponding accessors to
>>> breadcrumbs--breadcrumb-buffer-file-name-1) throughout the file.
>>
>> Does it works on the same Emacs codebase without native compilation?
>
> Yes, it looks like native-comp wont let you use buffer-file-name as a
> cl-defstruct slot name if you also have an initializer (SDEFAULT)
> form.  it gets confused and tries to use the elisp function
> definition.

Okay

> The following works on non-native comp but fails on native-comp.
>
> ```
> (require 'cl-lib)
> (defun xyz ())
> (cl-defstruct barf
>   (buffer-file-name (xyz)))
>
> (defun barf-foo ()
>   (let ((barf (make-barf)))))
> ```

What's the definition of fail here?

Thanks

  Andrea



reply via email to

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