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: Madhu
Subject: Re: question regarding my emacs package
Date: Tue, 13 Jun 2023 09:31:16 +0530 (IST)

*  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.

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



reply via email to

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