From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#73098: setopt float warning unexpected Date: Mon, 09 Sep 2024 18:41:46 -0400 Message-ID: References: <86r09uwuf3.fsf@gnu.org> <86ikv6wgfo.fsf@gnu.org> <877cbk50b7.fsf@web.de> <86tteovoc8.fsf@gnu.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4400"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Michael Heerdegen , 73098@debbugs.gnu.org, shipmints@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 10 00:43:18 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 1snn6M-000100-Ak for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 10 Sep 2024 00:43:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1snn64-0002fL-Lo; Mon, 09 Sep 2024 18:43:00 -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 1snn63-0002en-0M for bug-gnu-emacs@gnu.org; Mon, 09 Sep 2024 18:42:59 -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 1snn62-0002Ud-Mv for bug-gnu-emacs@gnu.org; Mon, 09 Sep 2024 18:42:58 -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=pqb/WbxZzya/YFbqQrVhEtXt+T/A/HU3bx3lTf5uFjY=; b=fvbbnWFhH+fnlAOB6XyYPH2xz78B/1p0WF1cZlyaSspVYkOWkvMazlAwEsnwYtN5angtYy5UBx5oltwRVDunJStJLMN4hkCsA/soJezJXa13q8npluZj3GkV1TfQEvgv3r7yKbKP4rzA8e71WyE3UvTSiJ4uJPHxTvp8gNq7R3gBCz71oxnUyYWKPsA0hwY2D1jQikJsekEUrI0T0Q8q7saqFogI6Q21FwQ+hSMczieBAhASQTJLDzM/+W4CpKEm6qUFeHgQDsTm8Kqrl5is7QlWB9n5N7ueJQEiA3b60NgswLqTE74E3avrfjTFDVApMgwg5g4RCiRE03f+f/sDAQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1snn66-00017j-Bv for bug-gnu-emacs@gnu.org; Mon, 09 Sep 2024 18:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 Sep 2024 22:43:02 +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.17259217264234 (code B ref 73098); Mon, 09 Sep 2024 22:43:02 +0000 Original-Received: (at 73098) by debbugs.gnu.org; 9 Sep 2024 22:42:06 +0000 Original-Received: from localhost ([127.0.0.1]:34349 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1snn5C-00016E-DK for submit@debbugs.gnu.org; Mon, 09 Sep 2024 18:42:06 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:27948) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1snn5A-00015g-8G for 73098@debbugs.gnu.org; Mon, 09 Sep 2024 18:42:04 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 6DC6F444798; Mon, 9 Sep 2024 18:41:54 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1725921712; bh=dY+tZWcFi924IwJ19mUmMZQVOOvlk/PaM/TbCEge0zE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=fwcPT0a3//6GS2XpjQ6tyHNUAJIcoTo+Qjr4lBJzD63xo+RA6K9AE7p3rKQUuGDht gDaaWDSmZEURwLO01j7q4HNYx+HPqMrY2rmd46hkWi3Pvs3K83/ewy1mme7khg1OXD rU8VP5uaCh4FW0Nac20r1qLw6FmK1DM45iYL1sPC5Vo+oevzbqyDkQzMou2V5jrneR k2T3UPuVZ1neqfT1WZDDwNUmQ/pqEtAJPcTIAotka6peoSMuYI8SHpGwJ7m+uMa4rT B9qnAtZB+NdA3NjI92M5KUw+6pRH3UcFcDAv65BpzIX0p575rGjm/GZo3Lb8DULFpl eKzvyWzi+lTDg== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id E57F7444795; Mon, 9 Sep 2024 18:41:52 -0400 (EDT) Original-Received: from lechazo (lechon.iro.umontreal.ca [132.204.27.242]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id D41BA1203AB; Mon, 9 Sep 2024 18:41:52 -0400 (EDT) In-Reply-To: <86tteovoc8.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 09 Sep 2024 18:28:07 +0300") 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:291530 Archived-At: > Like what? Would we accept, for example, a string where the type is > 'symbol'? Or any value where type is 'boolean'? > > And I'm also not sure we want this: presumably, if the defcustom's > author specified a type, they meant it, no? I tend to agree. If the type doesn't accept the value, you can use something lower-level than `setopt`, while you argue with the maintainer to try and get them to change their type. IMO, the whole point of `setopt` is to check the value against the type. Stefan