From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.devel Subject: Re: question regarding my emacs package Date: Tue, 13 Jun 2023 04:55:33 -0400 Message-ID: References: <20230613.093116.2248504087148072667.enometh@meer.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10012"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org To: Madhu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jun 13 10:56:35 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q8zpL-0002MI-1w for ged-emacs-devel@m.gmane-mx.org; Tue, 13 Jun 2023 10:56:35 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q8zoO-00034u-0j; Tue, 13 Jun 2023 04:55:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q8zoM-00034l-OC for emacs-devel@gnu.org; Tue, 13 Jun 2023 04:55:34 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q8zoM-0007Qt-3C; Tue, 13 Jun 2023 04:55:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=+sXppEQflV8XckJ6PnWFjYiUMqFMDDNWvFyeoxO83es=; b=O3O740dT2DVxU7xposwK z1pd5NFXzoPI6L3rDrTJfv6XNepbZprSeLEP2RAAje6y/ML3dbYa77FeLws8FYnJCyZQvtIWcMnzW M58RFcbXav1zN7xqaTfzycB1rOXza2maYeLLRS+2IM8usnETz7Yzu5wLhruXJ+F2FkqW11kVJiR3o v+xje+ycntpw2f7GNTxM9mL0GNXndbKHv7EwpGDoo1NaL7au9VPnYV8jfFzEXV+fIFSa1Omoz7gWh r2fY5VHKFvxJFdaeZeH4h/d0V2fy2YxdbtoVt6wLOyRyrXSLzdz7K0xSI+oLXTsv6tnDADP4DTZgL Pfn9n32uJ+jCBg==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1q8zoL-0005oQ-6a; Tue, 13 Jun 2023 04:55:33 -0400 In-Reply-To: <20230613.093116.2248504087148072667.enometh@meer.net> (Madhu's message of "Tue, 13 Jun 2023 09:31:16 +0530 (IST)") X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:306763 Archived-At: Madhu writes: > * Andrea Corallo > Wrote on Mon, 12 Jun 2023 12:40:55 -0400 >> Madhu 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