From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.bugs Subject: bug#73098: setopt float warning unexpected Date: Sun, 08 Sep 2024 13:39:36 +0200 Message-ID: <875xr674sn.fsf@igel.home> References: <86r09uwuf3.fsf@gnu.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="38125"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , 73098@debbugs.gnu.org To: Ship Mints Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 08 13:40:34 2024 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 1snGHR-0009k0-NR for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 08 Sep 2024 13:40:33 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1snGH5-0008Bj-1K; Sun, 08 Sep 2024 07:40:11 -0400 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 1snGGw-00087n-FD for bug-gnu-emacs@gnu.org; Sun, 08 Sep 2024 07:40:03 -0400 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 1snGGu-0007md-Vk for bug-gnu-emacs@gnu.org; Sun, 08 Sep 2024 07:40:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=n27q+B3qag/Z7gERg6gO/GLP0t4As5i4mrJRqfHyZoY=; b=abdH7XNmgc/5ohKe81ylwK4hkbPWPxS0gaxHqZnI67lijdq81USTv8wRu1QMzcwxmQSc1uXznV0bHd3qdnj95CxuNuglF8q+9bPdWueeHlQ7cK+Pxv7dXg7MV5XuOGviwny/3kD4GOrBh/cK7gzV/kocUVf4HiL91X3RJGGP/Jh9zWoEDsmE7T75QOkB1x7qrD5dIxHg2q0zp7u3yMv9pb0nFGVuEccp30O+NfxMfdukYzXq8GWdpkNMIgitIwJ9pRu7jU86diOwXhR/5HFaMTiUtzpXLY6qFYUeQMI9NpoDVycHhddoQL7AAzMk5lWEumEbx/k5jZafABZwIF/99g==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1snGGx-0007NE-1O for bug-gnu-emacs@gnu.org; Sun, 08 Sep 2024 07:40:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Schwab Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 Sep 2024 11:40:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73098 X-GNU-PR-Package: emacs Original-Received: via spool by 73098-submit@debbugs.gnu.org id=B73098.172579558428299 (code B ref 73098); Sun, 08 Sep 2024 11:40:03 +0000 Original-Received: (at 73098) by debbugs.gnu.org; 8 Sep 2024 11:39:44 +0000 Original-Received: from localhost ([127.0.0.1]:58084 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1snGGd-0007MM-Lv for submit@debbugs.gnu.org; Sun, 08 Sep 2024 07:39:43 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.10]:56155) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1snGGb-0007ME-VF for 73098@debbugs.gnu.org; Sun, 08 Sep 2024 07:39:42 -0400 Original-Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4X1p0V24f3z1sBq3; Sun, 8 Sep 2024 13:39:37 +0200 (CEST) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 4X1p0T5cJhz1qqlS; Sun, 8 Sep 2024 13:39:37 +0200 (CEST) X-Virus-Scanned: amavis at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavis, port 10024) with ESMTP id z8XSmVuEDnzR; Sun, 8 Sep 2024 13:39:37 +0200 (CEST) X-Auth-Info: NFSp9YpYTY2hYSLM/QHSssJiaJLgmSRH23jExb7QyTBmGbGhW646GnRu6OIr+k8P Original-Received: from igel.home (aftr-82-135-83-115.dynamic.mnet-online.de [82.135.83.115]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Sun, 8 Sep 2024 13:39:37 +0200 (CEST) Original-Received: by igel.home (Postfix, from userid 1000) id CA0032C1A52; Sun, 8 Sep 2024 13:39:36 +0200 (CEST) In-Reply-To: (Ship Mints's message of "Sun, 8 Sep 2024 06:59:31 -0400") X-Yow: Am I accompanied by a PARENT or GUARDIAN? 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:291449 Archived-At: On Sep 08 2024, Ship Mints wrote: > There are cases in elisp where numeric type coercion is the default, > e.g., (= 2.0 2) is t. I expected it to be so here, too. That's because the function accepts a number, not a float. If you want to accept any kind of number, just say so. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."