From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Basil L. Contovounesios" Newsgroups: gmane.emacs.bugs Subject: bug#46958: 28.0.50; invalid-function error for macros that have function bindings Date: Sat, 06 Mar 2021 14:24:14 +0000 Message-ID: <87h7louzqp.fsf@tcd.ie> References: <87pn0co316.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12574"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Robert Irelan , 46958@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 06 15:25:25 2021 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 1lIXrw-00038Q-Vr for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 06 Mar 2021 15:25:24 +0100 Original-Received: from localhost ([::1]:60132 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lIXrv-00061W-Qo for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 06 Mar 2021 09:25:23 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48500) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lIXra-00061M-Cb for bug-gnu-emacs@gnu.org; Sat, 06 Mar 2021 09:25:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53000) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lIXra-0001Zp-56 for bug-gnu-emacs@gnu.org; Sat, 06 Mar 2021 09:25:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lIXra-0004Xn-1A for bug-gnu-emacs@gnu.org; Sat, 06 Mar 2021 09:25:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Basil L. Contovounesios" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 Mar 2021 14:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46958 X-GNU-PR-Package: emacs Original-Received: via spool by 46958-submit@debbugs.gnu.org id=B46958.161504066417408 (code B ref 46958); Sat, 06 Mar 2021 14:25:01 +0000 Original-Received: (at 46958) by debbugs.gnu.org; 6 Mar 2021 14:24:24 +0000 Original-Received: from localhost ([127.0.0.1]:36313 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lIXqy-0004Wi-Al for submit@debbugs.gnu.org; Sat, 06 Mar 2021 09:24:24 -0500 Original-Received: from mail-wr1-f44.google.com ([209.85.221.44]:41900) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lIXqw-0004WW-N9 for 46958@debbugs.gnu.org; Sat, 06 Mar 2021 09:24:23 -0500 Original-Received: by mail-wr1-f44.google.com with SMTP id f12so5672337wrx.8 for <46958@debbugs.gnu.org>; Sat, 06 Mar 2021 06:24:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd.ie; s=google21; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=s5TEO9avFhB87JSCw+dnZCPN/BEvt4qTnl2K1dvJ4sU=; b=WC6ZyB7IbrSO2qeMKre5vI8PzzWpd2r6kRgGgmxbZMrSte3O2SiMvRDNr4mrtPF/b1 Q3XbrjCsLwNOoAggNDxTDJwqyYC5Gqehv1Ac2m4FC4toYNhA9fuK+q6xPmvm1Y2mIldC /Vi/joNUfnbxZRs6v5rpPiIL04AETNbHYkJld/FJfoEdExweb+S4vIPrTApATh/CVSJz eGas7UICJoL/fTX5Ga0ES45FRIT5rxXEplgyPHuyUv4AB0hgf3Ktm3l/hlHhR857ZHMQ 86s3GRHnBqdsivyCoHZ0uRa708dM1IVXdlRXECin3J9jAO5r5+lr1XqmxBHd+e344EWR jODg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=s5TEO9avFhB87JSCw+dnZCPN/BEvt4qTnl2K1dvJ4sU=; b=S+vfJfF+/H7IjJ1oIRl5Ir7rximcudOE7m/7atBMYHNZxswefPa9Wd2D7UuHMIYD/d VOOsmCI7P2AFVr1CaHis8WRrwQcPL9ltPZ5uVIi/+ZeFxbrXB5L1qem27KhnichUgCM6 aR0jvUwk10S7vJ68K+wqmuL1YKMjDM+Z7wt2IPQBJ8CsR9udiDcmrC+5ByeSOuM+dlKU sBzDp55cYDuK/KHXfdTDp/iL9v6r398zoGVChFROKK/TiKqQLm8ZD1Tb5iFIWJClEeml fmDKXadyTJT29bNEsF7WaUbX7nYMjUwJY6EXqBGHiOigd3/1yLXLzpx/gyyyFSuoJXJ2 9M9A== X-Gm-Message-State: AOAM531pffzVfo0kO2eR4DCXkds/ScsSzvAKR1gCQ+Mv0fD+8oBGGa2L xS54uuQX6aJvl/PhoNSX++ChVQ== X-Google-Smtp-Source: ABdhPJxjKD3M3LIHtS46CzSrbyessEbVenDWyuLuGi5O2YxAgkkwJgvI1jDsFht3Lw+rlA2zVEdtkg== X-Received: by 2002:adf:d0c9:: with SMTP id z9mr14978857wrh.396.1615040656873; Sat, 06 Mar 2021 06:24:16 -0800 (PST) Original-Received: from localhost ([51.37.57.126]) by smtp.gmail.com with ESMTPSA id o188sm2446406wme.7.2021.03.06.06.24.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Mar 2021 06:24:16 -0800 (PST) In-Reply-To: <87pn0co316.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 06 Mar 2021 13:55:01 +0100") 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:201633 Archived-At: Lars Ingebrigtsen writes: > Robert Irelan writes: > >> Lately I have been getting errors where occasionally `invalid-function` >> errors will be raised when calling some macros, even when those macros >> have function bindings (checked with `fboundp`). Here is an example of a >> stack trace I got when using the `org-fc` package: >> >> ``` >> Debugger entered--Lisp error: (invalid-function >> org-fc-with-point-at-back-heading) >> signal(invalid-function (org-fc-with-point-at-back-heading)) > > I'm not quite sure I understand this bug report. First of all, > `org-fc-with-point-at-back-heading' doesn't seem to exist in the Emacs > tree, so is this from an external package? Yes: https://sr.ht/~l3kn/org-fc/ https://github.com/l3kn/org-fc See also: https://todo.sr.ht/~l3kn/org-fc/23 > The other issue is that I think there's a misunderstanding here: You can > never funcall a macro. > > (macrop 'when) > => t > (fboundp 'when) > => t > (funcall 'when) > => Debugger entered--Lisp error: (invalid-function when) > when() > > Macros are foundp, but that doesn't mean you can funcall them. Just to add: macros are fboundp but not functionp, which is the property that funcall requires. The funcall is here: https://git.sr.ht/~l3kn/org-fc/tree/main/item/org-fc.el#L1284 Looks like something put something in org-fc-types (e.g. using org-fc-register-type) that shouldn't be there. So, this doesn't seem related to Emacs, unless there's been a recent nativecomp regression that gave rise to this? HTH, -- Basil