From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ship Mints Newsgroups: gmane.emacs.bugs Subject: bug#73098: setopt float warning unexpected Date: Sat, 14 Sep 2024 08:33:04 -0400 Message-ID: References: <86r09uwuf3.fsf@gnu.org> <86ikv6wgfo.fsf@gnu.org> <877cbk50b7.fsf@web.de> <86tteovoc8.fsf@gnu.org> <861q1mkbgp.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000003cb54b0622138bbe" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20950"; mail-complaints-to="usenet@ciao.gmane.io" Cc: michael_heerdegen@web.de, 73098@debbugs.gnu.org, monnier@iro.umontreal.ca, stefankangas@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 14 14:35:11 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 1spRza-0005Jk-MO for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 14 Sep 2024 14:35:10 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1spRzL-0005Sx-4V; Sat, 14 Sep 2024 08:34:55 -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 1spRzI-0005QG-Bs for bug-gnu-emacs@gnu.org; Sat, 14 Sep 2024 08:34:52 -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 1spRzH-0004fj-Qo for bug-gnu-emacs@gnu.org; Sat, 14 Sep 2024 08:34:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:From:In-Reply-To:References:MIME-Version:To:Subject; bh=WfgAKS49W52qyrFUzlbFQLbSWgDpZoLCStzde0uFOj4=; b=WD9VjaFrZkHdo76DJfMRWkWiD5iXFZUUPc3PR46srNunnZgLb+3AmSLj4KV6hDEPJ9ua3Tt0XzDVI4PUrVgnRHkmc/3ViOMZ6NccB9ZWob1AoKLImLPIPnhj6n5RumCefN4vS7wEcGKiucJKKizj45yoZCJrD16PF6WXYDPzN684bXhlZk3M8nbDo/njllP6Jiqz1168w3sg1jiRMHBlULcNXhpqNhyILOgORSuaZ0kgigeYZNXfF/7caZCq5hANJlDqd7UvCxLWRcll1LQZXhrCAxZmTAGBlqKbuss778A4WhMA2qid3hw5exSEnZ3wrfXopa8mVvfrvUSN5yvHjg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1spRzR-0002rH-Tq for bug-gnu-emacs@gnu.org; Sat, 14 Sep 2024 08:35:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ship Mints Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 Sep 2024 12:35:01 +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.172631727610935 (code B ref 73098); Sat, 14 Sep 2024 12:35:01 +0000 Original-Received: (at 73098) by debbugs.gnu.org; 14 Sep 2024 12:34:36 +0000 Original-Received: from localhost ([127.0.0.1]:45048 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1spRz1-0002qJ-TA for submit@debbugs.gnu.org; Sat, 14 Sep 2024 08:34:36 -0400 Original-Received: from mail-vk1-f170.google.com ([209.85.221.170]:58524) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1spRyy-0002q2-B8 for 73098@debbugs.gnu.org; Sat, 14 Sep 2024 08:34:35 -0400 Original-Received: by mail-vk1-f170.google.com with SMTP id 71dfb90a1353d-502b8d7033cso742360e0c.0 for <73098@debbugs.gnu.org>; Sat, 14 Sep 2024 05:34:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726317196; x=1726921996; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=WfgAKS49W52qyrFUzlbFQLbSWgDpZoLCStzde0uFOj4=; b=cRqKBaZlRmyEUFsHy9EDX59Qv7bDTxgu7Y3S3VVVg6xb+qlvOPrxxbtc1A3uN1F6aD GvZMXUXWfDHMDTn7EgYFQmEqPHvckPpeB2KWbnQxLRzmDPG4n4bCfVsqnBcx81h0fCIN xOmDyGM7SwZ30gmljvchPIAUUoPGvuDG82GPj1kyLjQHeeTrP8Gx9gY4uxq9VAd0UL0V 7bSjHSGzrjCuATh0scXmGeT2fRjCkIzMbGrD4qDEl44HDnQG91LoruL0U6jKzAaL4HFf HRi93M8raiNPIpzBbHYtk/M6K5aG1R+EukkpBCMhhQ9AJr5c/dVmApD1vRVTghJTq0OL 4kAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726317196; x=1726921996; h=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=WfgAKS49W52qyrFUzlbFQLbSWgDpZoLCStzde0uFOj4=; b=Gy4PFJPiiDW9wPhLDyvSKtPjs52TKJICenLw0XX51aJHfU84sruWadDz0r5+hI4LU0 YLRNzV7wLRcLMf4nVYBOcOdt4biIgfD7xX4sEy6FWS3Q/baNKn6Kk/LECxSiYQxqtqHU 2yxe0He1vVgNck6pnVYzRjAllKem+aeWn5HZgqU3phpleUa4cAKvqvaHOxdp84mdPx+M NTl5+12/9ZICXQcH+ksqVXaF/Enol2I/8v235+Sz+UsqoEoxaFKQw+fD4BaqLOg8C2dl MOEV2dD9Qg0w2FNHVUiJAvc0RtToeu7doJihcUWOpBTak1e3kRVZmvwg71sJSH2ToCOQ p0tw== X-Forwarded-Encrypted: i=1; AJvYcCUgxk//g5qltOPpUN2y90k2GB7ZzrUikInNfN6c5+YLFsedvGhkFMlzu0tLpxtSOdJ26Gdp0w==@debbugs.gnu.org X-Gm-Message-State: AOJu0YwWwt8T3I0YTgLMUi2FNGE3zi5Yaw12OSwes4QJwwA8liZ6UxxI Xro+tZrtQUT9QiacPUQ0zosJLbyuiZj8TvuJ1AiYS3U2iQBbU7QIF03mM9+j+CU7mHeo6XsJJOY d5HCa+cPUiqyas1UPMqVPRInaMjg= X-Google-Smtp-Source: AGHT+IFdLfXqyr2Sdc4Na8J4eJH3SSPLMR55GlWTcfBpV7tzKLOcS4ZZWdFR9V0nWCHQJeWFMq+RMaVDjmYe4+9f0nI= X-Received: by 2002:a05:6122:3c94:b0:4f5:2a42:d51e with SMTP id 71dfb90a1353d-5032d51a93emr6985673e0c.13.1726317195996; Sat, 14 Sep 2024 05:33:15 -0700 (PDT) In-Reply-To: <861q1mkbgp.fsf@gnu.org> 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:291738 Archived-At: --0000000000003cb54b0622138bbe Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I didn't try -Q assuming this behavior would be unaffected. I'll try to keep this simple case in mind for future reproducers and go native when practical. Thank you for the docstring edits. On Sat, Sep 14, 2024 at 2:15=E2=80=AFAM Eli Zaretskii wrote: > > From: Ship Mints > > Date: Fri, 13 Sep 2024 15:38:28 -0400 > > Cc: Stefan Kangas , Eli Zaretskii , > > > Michael Heerdegen , > 73098@debbugs.gnu.org > > > > The warning messages can be misleading. e.g., when trying to set > tab-bar-format-tabs-groups to include a > > simple lambda, it complains about the wrong thing. It does match the > hook type, but does not match the > > hard-coded list of options. > > > > (setopt tab-bar-format > > `( > > tab-bar-format-tabs-groups > > (lambda () " ") ; tab-bar-separator > > )) > > > > =E2=96=A0 Warning (emacs): Value '(nil tab-bar-format-tabs-groups (la= mbda nil > " "))' does not match type hook > > I don't get a warning when I evaluate the above. Is this in "emacs -Q"? > --0000000000003cb54b0622138bbe Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I didn't try -Q assuming this behavior would be unaffected. I'll= try to keep this=C2=A0simple case in mind for=C2=A0future=C2=A0reproducers= and go native when practical. Thank you for the docstring edits.

On S= at, Sep 14, 2024 at 2:15=E2=80=AFAM Eli Zaretskii <eliz@gnu.org> wrote:
> From: Ship Mints <shipmints@gmail.com>
> Date: Fri, 13 Sep 2024 15:38:28 -0400
> Cc: Stefan Kangas <stefankangas@gmail.com>, Eli Zaretskii <eliz@gnu.org>,
>=C2=A0 =C2=A0 =C2=A0 =C2=A0Michael Heerdegen <michael_heerdegen@web.de>, <= a href=3D"mailto:73098@debbugs.gnu.org" target=3D"_blank">73098@debbugs.gnu= .org
>
> The warning messages can be misleading. e.g., when trying to set tab-b= ar-format-tabs-groups to include a
> simple lambda, it complains about the wrong thing. It does match the h= ook type, but does not match the
> hard-coded list of options.
>
>=C2=A0 =C2=A0 (setopt tab-bar-format
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 `(
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 tab-bar-format-tabs-gr= oups
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (lambda () " &quo= t;) ; tab-bar-separator
>=C2=A0 =C2=A0 =C2=A0))
>
>=C2=A0 =E2=96=A0=C2=A0 Warning (emacs): Value '(nil tab-bar-format-= tabs-groups (lambda nil " "))' does not match type hook

I don't get a warning when I evaluate the above.=C2=A0 Is this in "= ;emacs -Q"?
--0000000000003cb54b0622138bbe--