From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#65852: 30.0.50; image-auto-resize :type has choices in wrong order Date: Sun, 10 Sep 2023 17:38:40 +0200 Message-ID: <865AB7EF-D175-4A6B-BD64-6C0EE0338D13@gmail.com> References: <081b5bd0-9652-cb7b-3c59-b07cab5e104d@gmail.com> <6fe31ce5-4be7-7f79-e310-52e04d869467@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.15\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12174"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65852@debbugs.gnu.org, Mauro Aranda To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 10 17:39:08 2023 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 1qfMWh-00031R-JE for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 10 Sep 2023 17:39:07 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qfMWa-0000Gs-VI; Sun, 10 Sep 2023 11:39: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 1qfMWZ-0000GN-6M for bug-gnu-emacs@gnu.org; Sun, 10 Sep 2023 11:38: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 1qfMWY-0005GQ-Tc for bug-gnu-emacs@gnu.org; Sun, 10 Sep 2023 11:38:58 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qfMWc-0007Oz-DM for bug-gnu-emacs@gnu.org; Sun, 10 Sep 2023 11:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Sep 2023 15:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65852 X-GNU-PR-Package: emacs Original-Received: via spool by 65852-submit@debbugs.gnu.org id=B65852.169436033328436 (code B ref 65852); Sun, 10 Sep 2023 15:39:02 +0000 Original-Received: (at 65852) by debbugs.gnu.org; 10 Sep 2023 15:38:53 +0000 Original-Received: from localhost ([127.0.0.1]:51123 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qfMWT-0007Oa-CW for submit@debbugs.gnu.org; Sun, 10 Sep 2023 11:38:53 -0400 Original-Received: from mail-lj1-x22b.google.com ([2a00:1450:4864:20::22b]:42170) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qfMWR-0007ON-GA for 65852@debbugs.gnu.org; Sun, 10 Sep 2023 11:38:51 -0400 Original-Received: by mail-lj1-x22b.google.com with SMTP id 38308e7fff4ca-2bcc331f942so44035781fa.0 for <65852@debbugs.gnu.org>; Sun, 10 Sep 2023 08:38:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694360322; x=1694965122; darn=debbugs.gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:sender:from:to:cc:subject :date:message-id:reply-to; bh=QqaF/k02rlGM973GA+k5EfuZKE3Y+qU7Pj3mXPf1FTc=; b=dXqTIAzPadAl4vL5E4Ec7Y88O0qFBk3nLa26kSNdct7NPnu9GM7NV6fzF/044y2lag jR/meq+gUtksRYOtVebgg3ldFt8WO0SpExyST3FrAnAaFYvWMQ4EcyN0w4fZfm0oPVkQ jCIe/vHe9//0XRrIvDphi+yybAMAfMdnR/KDj9H0rhByeSQVZ2mM1JUNEcTfQiFvzR5z JcCMwDgHNYULUfhLgdnY3tf6+UiWNUepoxjslgDtlbnO4OURsO/XwoAyoFVnzkhdRiKK NzbAlxj+UgNrx7A/PI0gtPn9+jRxYiTzlbXNRARQP0tRmAd4UrOvtA/0cq6SdSnzh6Am ZS/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694360322; x=1694965122; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:sender:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=QqaF/k02rlGM973GA+k5EfuZKE3Y+qU7Pj3mXPf1FTc=; b=SO5wBvxlC8XlEPhTYbB6TrLB+wlsuURpahZbC9bHplwXsaNHIsFBkOAbpiSWN7tmpW RswQ7EnqyMcGGDEhdmrDIABKQ2j1ocWXLGEJeTJeJKOfxJ/8R51JYLmwdWTvMhi1jemo GG2bEZAaDv0AEvmsR7j9f9eBN9GoDQot4193JGWnhtcwXb8eSeSqTAm0z7UF45SLASPI LqXv4ZL4CsAsTx1LYHjKnAROoa/BUbVK/RyQqq4WiXbYhrGC7E3SDd/BqpNjUDjbC8RQ yqEXZ6l7cYG2htDVYhzFYVg1K+4khY6FMl/MjodiA8X5zY1v1q5axDSw8kXv6sahHk+w cafQ== X-Gm-Message-State: AOJu0YzB83qV0UGezy/7TYC6zSmbVF0byJMQm34BHCuY5DKe2nuQ8Bc4 AiTSuM97qMWkAqHQtj6g8Pw= X-Google-Smtp-Source: AGHT+IHa+x+liypljyqJFl9q5PglywbDiovGnAA+fayAk3F96GANp0XnRkYSaK5swCAhyqrUDc8TkA== X-Received: by 2002:a05:651c:2314:b0:2b9:e705:6303 with SMTP id bi20-20020a05651c231400b002b9e7056303mr4253635ljb.4.1694360321580; Sun, 10 Sep 2023 08:38:41 -0700 (PDT) Original-Received: from smtpclient.apple (c188-150-165-235.bredband.tele2.se. [188.150.165.235]) by smtp.gmail.com with ESMTPSA id y5-20020a2e7d05000000b002bcdeeecd11sm1093533ljc.66.2023.09.10.08.38.40 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 Sep 2023 08:38:40 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.3654.120.0.1.15) 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:269975 Archived-At: 10 sep. 2023 kl. 16.24 skrev Stefan Kangas : > Mattias, do you think it would make sense to add some warnings for > defcustom types to the byte-compiler? If so, I guess we'd want to = limit > ourselves to flagging obvious errors. This appears to be about checking the specified type itself. Another = frequently made mistake is having an initial value that does not match = the type. Both of these cases should indeed ideally be caught at compile time but = the design of `defcustom` makes it impossible in general. In fact it's = probably not even possible to type-check the initial value at load time. However we can check when the type and value are given as compile-time = constants, and we could postpone some of the linting to load time if it = wasn't possible earlier. This is just macro work; I don't see any reason why the byte-compiler = itself should need to be involved directly.