From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.devel Subject: Re: How to cause a compiler warning? Date: Thu, 18 Jan 2024 12:26:53 +0000 Message-ID: References: <871qak4n4h.fsf@gmail.com> <87v87ve9i5.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12840"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Richard Stallman , emacs-devel To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jan 18 13:28:11 2024 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 1rQRVD-00039S-5n for ged-emacs-devel@m.gmane-mx.org; Thu, 18 Jan 2024 13:28:11 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rQRUU-0001hb-Tt; Thu, 18 Jan 2024 07:27:27 -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 1rQRUH-0001Ke-89 for emacs-devel@gnu.org; Thu, 18 Jan 2024 07:27:20 -0500 Original-Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rQRUA-0007aK-9I; Thu, 18 Jan 2024 07:27:11 -0500 Original-Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-50eaaf2c7deso13860290e87.2; Thu, 18 Jan 2024 04:27:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705580824; x=1706185624; darn=gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=3IXjNLuci1dq0TK+5/kB5KDSg4Tr62oFCgnXxzq1RuY=; b=HNS/TgNNjJnosbJaQA8zKmax3WZMw5BTlipcJdpR7kJfv4zRDm94R+ZUusKf85zRS4 5QwTA3ZQH6z5Fsifb2GCoR7jNh2EB+A5iV46/tChMqT9YuerRFucxs5qgZrfVmG9CkLx qiI2MIUmCY1LWeh7e/OCJRLZb1N2YkXB1jq57JlU9ct5RqEmqnZc0ING+iLjyfy4gxOO i5AIpipJ8VVf2YSgtYqjrGkGYMkn4Pj6KXgvaDRZ0BQjQkJ/cqPcbX9mZzBjWY1kn0pK AV8hfrWv45LaP5oRWluWRPZ/6FpkcnnT4eKM3ty36abGzv/xd9fq/TkJ95LnqaHAX59C oLDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705580824; x=1706185624; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3IXjNLuci1dq0TK+5/kB5KDSg4Tr62oFCgnXxzq1RuY=; b=f4MUQgIWadH1F+wbsYIOgi1UMIAL06mN9XciZbUkcg5L2QU2j3UooufHYtQVGzR426 NUCJ4ZrLq29z7FhTdwzC3dMiWmOwY+++Qi2xUup6Dg9RMKuHRYUlZSQrv1WdJXAXyrpF 92urWgS4gyhhx4Qlzfo75wePXTqEBcobjrwQYMHXil84fbPQY+gYFeJkCCTUysESBlUY 2XB3m7bbPqKNyQhlfsGVJ8Xvk6gngUL03iuD3yUPcX5HCQUXDDtlPGgoTFMjqYbnLNDF LyKsEFIi1QFBx9ljDA9wN5sUW8lfwBXpm0DywIW9Hab8BW+KuP6N3L7qwpSspLypDNFF ED6g== X-Gm-Message-State: AOJu0YwRzislcETfoEIZBYLWKcQlIeXCxlO7d3zswVeyAq3QmGEhM0pZ nWb5IW1JQjzkbSi7GWwy5icaBCgOQInngK8u4S8bhFzVQnu7FhK4LJF+QQYHShsEQp+QMGEDc+4 v04zxEMNlf98In94kv3QoeBa8hec= X-Google-Smtp-Source: AGHT+IF63H5pdxbZsXezFu16XSxr+RLl3rE3kx3WCaCAdOc54yzdzHnYJ4gxTX7GlboD6uXl4tvjBxUI+7ha07wgXDE= X-Received: by 2002:a05:6512:3f1f:b0:50e:4ebe:ca46 with SMTP id y31-20020a0565123f1f00b0050e4ebeca46mr561096lfa.78.1705580824016; Thu, 18 Jan 2024 04:27:04 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::133; envelope-from=joaotavora@gmail.com; helo=mail-lf1-x133.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:315082 Archived-At: On Thu, Jan 18, 2024 at 12:05=E2=80=AFPM Alan Mackenzie wrote: > > Call it FORM. Then add in the text you wrote to Richard, who > > seem to have also been confused. > > FORM is unsuitable, because in the byte compiler it always means the > form currently being compiled. FORM is the nomenclature given to Lisp objects that represent symbolic expressions: it's not an exclusive of the byte compiler. Appears in very many numerous places in our Emacs, just grep for it. > What do you mean, "you'll see the macro invocation itself highlighted"? > You certainly won't in a batch compilation, and I don't recall seeing > anything highlighted anywhere for a compilation from within a running > Emacs. In which window would this highlighting appear? Turn on M-x flymake-mode in an Elisp buffer and introduce a mistake (be careful though, it compiles as you type, and that runs code). > You haven't identified a concrete case where byte-compile-warn-x would > be inappropriate, or difficult to use. I have, of course. Sometimes there's no form to give it, or you don't want to choose a particular one form to hook the warning on to. Passing nil is fine, I guess, but a bit awkward. If you ask me, byte-compile-warn should have been kept and an additional optional arg added. Even a keyword arg! Oh noes! Anyway, I don't have much more to add. Jo=C3=A3o