From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#66991: Confusion in interactive-form with commands with bare interactive forms. Date: Tue, 07 Nov 2023 18:49:38 +0200 Message-ID: <83wmut1pb1.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8270"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 66991@debbugs.gnu.org To: Alan Mackenzie , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 07 17:50:38 2023 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 1r0PHi-0001s9-NG for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 07 Nov 2023 17:50:38 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r0PHV-0002ED-AC; Tue, 07 Nov 2023 11:50:25 -0500 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 1r0PHU-0002Dv-B3 for bug-gnu-emacs@gnu.org; Tue, 07 Nov 2023 11:50:24 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r0PHU-0003ym-2P for bug-gnu-emacs@gnu.org; Tue, 07 Nov 2023 11:50:24 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r0PI5-0006wO-Qc for bug-gnu-emacs@gnu.org; Tue, 07 Nov 2023 11:51:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Nov 2023 16:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66991 X-GNU-PR-Package: emacs Original-Received: via spool by 66991-submit@debbugs.gnu.org id=B66991.169937584626655 (code B ref 66991); Tue, 07 Nov 2023 16:51:01 +0000 Original-Received: (at 66991) by debbugs.gnu.org; 7 Nov 2023 16:50:46 +0000 Original-Received: from localhost ([127.0.0.1]:43185 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r0PHq-0006vq-FB for submit@debbugs.gnu.org; Tue, 07 Nov 2023 11:50:46 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47394) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r0PHo-0006ve-VJ for 66991@debbugs.gnu.org; Tue, 07 Nov 2023 11:50:45 -0500 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 1r0PH5-0003kC-Ud; Tue, 07 Nov 2023 11:49:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=LiYBFVLkUxwid8kqiyP1z35Hiq9MlV33ddS8yS1c3s0=; b=mURNWN7YkMy0 xHpaKpjGQr2ZzRO7CQb7NJqM+1aV3tC+hdDdS6Uc77wRwQUiq/s+3/n4VT0dFZoGKgLvJ6E6ZqJgG BwJKOzeWCnyBAhoozi2MVAo0AlsqHfeopl2JnzBxugOY+XcYVFPBPQH/iv2GDZESBnVfUN52Uv8o8 WesKN45WmA/K9fEdr5er8oGequ28X7UCdDv7mYAQa9OwReRopK7MFAzkVzb5RBuR35i3P2nME0dLJ Vl+6ba9UcagcSWFprQHY5btL1Qs3HiUEKTQCybOz6vVOb8u/ZanNN2mcrYEUV+wvHCu1nHZEvYum3 Qm6Yw2JKJGykONnYcCuTpQ==; In-Reply-To: (message from Alan Mackenzie on Tue, 7 Nov 2023 16:38:51 +0000) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:273938 Archived-At: > Date: Tue, 7 Nov 2023 16:38:51 +0000 > From: Alan Mackenzie > > Consider commands with no arguments, and do interactive-form on them: > > (interactive-form 'x-print-frames-dialog) => (interactive "") # a primitive > > (interactive-form 'universal-argument) => (interactive nil) # a native > compiled command. > The result is the same from a byte compiled command. > > Write (defun foo () (interactive)) in *scratch*, and C-M-x to evaluate > it: > (interactive-form 'foo) => (interactive). > > That's three different inconsistent ways of expressing "(interactive". > This is a bug. For consistency's sake, two of them must be incorrect. Why? Please explain in more positive terms why two out of three must be bugs, not just in some abstract philosophical terms. > I believe the correct one is the last of these, "(interactive)" which is > after all, what appears in the Lisp sources. The fix should be > relatively simple, in Finteractive_form in src/data.c Please wait with implementing a fix until we discuss the issue and decide whether and how it should be fixed. Adding Stefan to the discussion.