From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pip Cet Newsgroups: gmane.emacs.bugs Subject: bug#46636: [External] : bug#46636: 28.0.50; M-: (funcall #'or) doesn't throw an error Date: Mon, 22 Feb 2021 08:41:03 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23542"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 46636@debbugs.gnu.org To: rms@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 22 09:42:19 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 1lE6nK-0005zX-Sm for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 22 Feb 2021 09:42:18 +0100 Original-Received: from localhost ([::1]:37984 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lE6nJ-00075x-TK for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 22 Feb 2021 03:42:17 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54166) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lE6n6-00074b-DO for bug-gnu-emacs@gnu.org; Mon, 22 Feb 2021 03:42:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44023) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lE6n4-0004oq-HL for bug-gnu-emacs@gnu.org; Mon, 22 Feb 2021 03:42:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lE6n4-0002KQ-Dz for bug-gnu-emacs@gnu.org; Mon, 22 Feb 2021 03:42:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Pip Cet Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Feb 2021 08:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46636 X-GNU-PR-Package: emacs Original-Received: via spool by 46636-submit@debbugs.gnu.org id=B46636.16139833078925 (code B ref 46636); Mon, 22 Feb 2021 08:42:02 +0000 Original-Received: (at 46636) by debbugs.gnu.org; 22 Feb 2021 08:41:47 +0000 Original-Received: from localhost ([127.0.0.1]:55569 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lE6mp-0002Jt-1T for submit@debbugs.gnu.org; Mon, 22 Feb 2021 03:41:47 -0500 Original-Received: from mail-ot1-f42.google.com ([209.85.210.42]:46320) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lE6mn-0002Jg-Lz for 46636@debbugs.gnu.org; Mon, 22 Feb 2021 03:41:45 -0500 Original-Received: by mail-ot1-f42.google.com with SMTP id k13so741940otn.13 for <46636@debbugs.gnu.org>; Mon, 22 Feb 2021 00:41:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=7f8vv08tjBsprQV2yGDe0yK8Z8k3cOkCR0bmG4zF/fg=; b=dMwUZFePOha4UAkVXvm1SSuulMsNO8f4lYvkD3aXrdqmmAlZo6bfhHUw91sI5+zhau ngHQyzm8Kq8FBL3bb5EwMlEbAwJYdTJj2ieoRsEcegY4OBWYYhtwrttJcCzzbDftaY5n VB7OF4Zx8RhBNYxdniPEsL9gq10lD/LCaa9NXB673Tphdp3GIs4JcfrjJMftyqv3Rlop yZrtK+OyjVU3Q3PYIgAOcpZIMckF7z5NU6acMxHn0B+XGfjYnr7+g3f6OJ6VoS6DQa5K iC4pS9sw6D0UzIOPuxnh4Vz2tJs7PL2awN7odDmjMM8F0QCyDDlM+pL3KCcBPZQmXESe 3aQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=7f8vv08tjBsprQV2yGDe0yK8Z8k3cOkCR0bmG4zF/fg=; b=I7v46Rgnh2u8JOgKYI6YsLlPnFgfGT4jyAW/Ej5yQebzYuE4pIU1H+0LmWIPuXFxJQ 84mp8Nue8aYZpaXD1WbM407ImdKDh4aOqw32Xz1Ut0j6LvA0iahn4oZGoYHKVVG8TrUm jN3oMBbrkTUvUwD+mZjM9y6eUl22/ZFIhnMNrjII13OzSlaDn5cphmlB7TnoEaoZUv9v 6CW6Lxkf6t4wGA6MR0YJHJVBJSAodbkDaWPm6b+Ut7kS3rnJ9vvztWnx1g2TPf1k2gu+ 1f3StT7xZvfnhhLBljD5OZjP2vkqXRUF7R0RHPQICl9WLTIf6odxJQ+vQZbijq3lwSLN QD8A== X-Gm-Message-State: AOAM532+z9kHeC5L/jyJKU3YSZpu7z7A5z2dr7t/ZJu89AwLCVSIL958 fzeU6i10uMq1Cbje7Bzm/xvVx6ibTLeDWuVJUDo= X-Google-Smtp-Source: ABdhPJydj6cCdZuvnedo49xFbtK1cEYkeynw6lMvfCgwKw/vWWlkABEypwHc3U+ytGIfYkEI+fMw+RABLs6rPjrHci8= X-Received: by 2002:a05:6830:249a:: with SMTP id u26mr10768866ots.287.1613983300109; Mon, 22 Feb 2021 00:41:40 -0800 (PST) In-Reply-To: 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:200548 Archived-At: On Mon, Feb 22, 2021 at 6:20 AM Richard Stallman wrote: > I think I agree that funcalling `or' should give an error. This applies to all macros. I chose #'or as an example because it is often used as though it were a function, so people might be confused into trying it (as I have, I must confess). (funcall #'setq x 3) also "works", and it's clear in that case that it should not. I think the right way to fix this is not to macroexpand (funcall #'f) in eval-expression, but to leave it to the byte compiler to do so; the byte compiler often assumes that function bindings don't change, so it would not be a new problem for it to also assume that if #'or is a macro at compile time, it will be a macro at runtime, so it can avoid simplifying calls to well-known macros, at least.