From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#65852: 30.0.50; image-auto-resize :type has choices in wrong order Date: Sun, 10 Sep 2023 06:49:27 -0700 Message-ID: References: <081b5bd0-9652-cb7b-3c59-b07cab5e104d@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="16205"; mail-complaints-to="usenet@ciao.gmane.io" To: Mauro Aranda , 65852@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 10 15:50:20 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 1qfKpQ-00044W-Ae for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 10 Sep 2023 15:50:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qfKp9-0007gm-1t; Sun, 10 Sep 2023 09:50:03 -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 1qfKp4-0007gP-Ka for bug-gnu-emacs@gnu.org; Sun, 10 Sep 2023 09:49:58 -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 1qfKp4-00031y-CV for bug-gnu-emacs@gnu.org; Sun, 10 Sep 2023 09:49:58 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qfKp7-0007Q7-QW for bug-gnu-emacs@gnu.org; Sun, 10 Sep 2023 09:50:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Sep 2023 13:50:01 +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.169435378028471 (code B ref 65852); Sun, 10 Sep 2023 13:50:01 +0000 Original-Received: (at 65852) by debbugs.gnu.org; 10 Sep 2023 13:49:40 +0000 Original-Received: from localhost ([127.0.0.1]:49303 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qfKom-0007P9-F5 for submit@debbugs.gnu.org; Sun, 10 Sep 2023 09:49:40 -0400 Original-Received: from mail-lj1-x229.google.com ([2a00:1450:4864:20::229]:56695) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qfKok-0007Ov-Ah for 65852@debbugs.gnu.org; Sun, 10 Sep 2023 09:49:38 -0400 Original-Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-2b95d5ee18dso62158641fa.1 for <65852@debbugs.gnu.org>; Sun, 10 Sep 2023 06:49:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694353768; x=1694958568; darn=debbugs.gnu.org; h=content-transfer-encoding:to:subject:message-id:date:mime-version :references:in-reply-to:from:from:to:cc:subject:date:message-id :reply-to; bh=yraw8IiT0VGXfXTvyuhgwRL3hYDTK8E3XZ9PsYc9tYw=; b=BcgGlK3sZi4Z5f4aa3Tp2IB46FaNi+IDQLw29TeOaFCPAUWdJOPbT1kKmFRqyvzNye sH2VnVKVhm1Eu7tsiYQFiJ6Ma41ytWIRFnyYiXvSFKkAO9FJe7CbsVwIYa23DkKLoHkt NAzoxcof+4pIw8PnhuBJVTiE+EDvazB7OWi0cEegSFcwoU60+w852C9vkTzZevaOdoCV g54n32kqv4yIUCXPoKDbsS+t/HmfXdyCcjEcDfaALIDve7o49UBqc00EQfE7RXFSp5T0 4aadU8TQSYGSugOn+PFHXHcUJ6qGr4FmQ+ucElg7BNHsJ74xR0z0Q2tVLLOH2rQrQFe/ PEuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694353768; x=1694958568; h=content-transfer-encoding:to:subject:message-id:date:mime-version :references:in-reply-to:from:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=yraw8IiT0VGXfXTvyuhgwRL3hYDTK8E3XZ9PsYc9tYw=; b=Hv4ELi45GIsg2rSYFhkuD7v32QOuUF3Y8AES/xIs8UhRhlJQzP6Wl9sKZy6Q78pd7Q 7lNS4hF6xKYDKAxVESU96NOVpyPZ7W22QV7vknwFM4yedltE1yS0RUHOdlrQwDIU3s/m ppoL58BA+p3t9mMwYts4tGEliJXN0UmtDhcVj1AALAwo64OhwcuQ2p6TxqK8Ujp31hrV xeIRodxjhSZPiHAGtLtHTw+caCK7cIbl4P4em6Uf+tDeSjh11h69WBIWCfW+WUn5/psi afKiCUd+SW7ngCXe501XYGqNask7uQ/kszh/I3UHJX1wG6tIst3QbtXJT02AF923VPvE c3pg== X-Gm-Message-State: AOJu0YxUkfjtV+5yxCaSUHRoe3vaADBN2CYCb9RWQSCoyhETBWTNlC6Y s9IsMkF+IggLfn8G5rRv8G7XHOh7RI+9+DLZJTs= X-Google-Smtp-Source: AGHT+IHVD5B+9N+Le6YYGg2rcgWYfCbjgJuJGvg7KgmQFNLZTc73b6Yv5kgzzVWG54MMEq+rUtVeNxnvqaKdq/rYmKA= X-Received: by 2002:a2e:b704:0:b0:2bc:b29e:8ff7 with SMTP id j4-20020a2eb704000000b002bcb29e8ff7mr6182563ljo.20.1694353768233; Sun, 10 Sep 2023 06:49:28 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sun, 10 Sep 2023 06:49:27 -0700 In-Reply-To: <081b5bd0-9652-cb7b-3c59-b07cab5e104d@gmail.com> 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:269962 Archived-At: Mauro Aranda writes: > The :type for image-auto-resize looks like this: > > :type '(choice (const :tag "No resizing" nil) > =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=C2=A0 (const :tag "Fit to window" fit-window) > =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=C2=A0 (other :tag "Scale down to fit window" t) > =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=C2=A0 (number :tag "Scale factor" 1)) > > The `other' choice should come last.=C2=A0 Otherwise Custom thinks that > that's the selected option, even when the value of image-auto-resize is > a number. ENOPATCH Thanks for working on this. Is it possible to detect issues like these statically?