From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#15862: aliases to macros at compile time Date: Wed, 26 Jan 2022 18:19:07 +0100 Message-ID: <87ilu6pg8k.fsf_-_@gnus.org> References: <871rvo5zct.fsf@gnus.org> <87mu6nyk46.fsf@stefankangas.se> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38492"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: stefan@marxist.se, 15862@debbugs.gnu.org, monnier@iro.umontreal.ca To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 26 18:46:15 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1nCmN4-0009o5-PJ for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 26 Jan 2022 18:46:14 +0100 Original-Received: from localhost ([::1]:52760 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nCmN3-0000O1-BL for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 26 Jan 2022 12:46:13 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:42718) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nClxi-0005eH-HM for bug-gnu-emacs@gnu.org; Wed, 26 Jan 2022 12:20:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60458) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nClxi-0002Y6-44 for bug-gnu-emacs@gnu.org; Wed, 26 Jan 2022 12:20:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nClxh-00066r-Qt for bug-gnu-emacs@gnu.org; Wed, 26 Jan 2022 12:20:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 26 Jan 2022 17:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15862 X-GNU-PR-Package: emacs Original-Received: via spool by 15862-submit@debbugs.gnu.org id=B15862.164321756723436 (code B ref 15862); Wed, 26 Jan 2022 17:20:01 +0000 Original-Received: (at 15862) by debbugs.gnu.org; 26 Jan 2022 17:19:27 +0000 Original-Received: from localhost ([127.0.0.1]:53361 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nClx9-00065w-BL for submit@debbugs.gnu.org; Wed, 26 Jan 2022 12:19:27 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:50056) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nClx6-00065Z-Vm for 15862@debbugs.gnu.org; Wed, 26 Jan 2022 12:19:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Wek/KK7aUep0zX0DDpRPJTwj6Y8R+uZrZPlUeAQhUUg=; b=MHxkjiJZY7wejLtWjf0PL7Ywiq jzPzNlUUugD64sQPEYDOcl9eJ2QY6dPVlIINBsDG25ZFclPHRJpNCW5cywX47Zga+kBCCECh6sLQw P/xgeqWIi2pwkh/x78lCAguEEGKGi/q4+F0PMz+FMcmFftekwmoYxjlRhWBTlvNdpcBk=; Original-Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nClwq-0004BK-Es; Wed, 26 Jan 2022 18:19:10 +0100 X-Now-Playing: Nina Simone's _Little Girl Blue_: "Mood Indigo" In-Reply-To: (Glenn Morris's message of "Mon, 04 May 2020 12:14:29 -0400") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:225295 Archived-At: --=-=-= Content-Type: text/plain Glenn Morris writes: > The invalid function issue remains. > > As in the original report: > Compile the file, load the compiled version, *then evaluate: (foo-fails)*. I can confirm that this issue is still present in Emacs 29. To reproduce, save the file, byte-compile it and say M-: (foo-fails) Debugger entered--Lisp error: (invalid-function old-mac) old-mac() foo-fails() eval-expression((foo-fails) nil nil 127) funcall-interactively(eval-expression (foo-fails) nil nil 127) command-execute(eval-expression) Perhaps Stefan M has some comments; added to the CCs. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no --=-=-= Content-Type: application/emacs-lisp Content-Disposition: attachment; filename=foo.el Content-Transfer-Encoding: quoted-printable (defvar foo-var 0) (defmacro foo-mac () '(setq foo-var (1+ foo-var))) (define-obsolete-function-alias 'old-mac #'foo-mac "24.4") (defun foo-fails () (old-mac)) (defun foo-works () (foo-mac)) --=-=-=--