From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Madhu Newsgroups: gmane.emacs.devel Subject: Re: question regarding my emacs package Date: Tue, 13 Jun 2023 14:49:11 +0530 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="30177"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Cancel-Lock: sha1:k4r0+6KpKfi9j21h7Ben38Gxrhw= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jun 13 13:37:07 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 1q92Kh-0007ec-CT for ged-emacs-devel@m.gmane-mx.org; Tue, 13 Jun 2023 13:37:07 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q91Y7-0003Bd-7R; Tue, 13 Jun 2023 06:46:56 -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 1q90Bu-0008L9-EI for emacs-devel@gnu.org; Tue, 13 Jun 2023 05:19:54 -0400 Original-Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q90Bs-0002y1-PW for emacs-devel@gnu.org; Tue, 13 Jun 2023 05:19:54 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1q90Bq-0001Jv-Oa for emacs-devel@gnu.org; Tue, 13 Jun 2023 11:19:50 +0200 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=ged-emacs-devel@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 13 Jun 2023 06:46:52 -0400 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:306765 Archived-At: * Andrea Corallo : Wrote on Tue, 13 Jun 2023 04:55:33 -0400: > Madhu writes: > >> 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? calling M-: (byte-compile-file ) or M-: (native-compile ) on a file with those forms puts me in the debugger backtrace buffer with the sort of lines I posted upthread. OK. I see why others dont see a problem with this. If I call M-x byte-compile-file or M-x emacs-lisp-native-compile-and-load I only see this in *Messages* and nothing in *compile-log* ``` Compiling /home/madhu/elisp/debug/barf.el... (make-barf) Warning: Optimization failure for make-barf: Handler: make-barf--cmacro (wrong-type-argument stringp (xyz)) Compiling /home/madhu/elisp/debug/barf.el...done Wrote /home/madhu/elisp/debug/barf.elc ``` So my "errors" were a result of debug-on-error being `t' when evaluating lisp interactively. So i assume this is not a real problem.