Subject: Re: bug#65852: 30.0.50; image-auto-resize :type has choices in wrong order

From: Mauro Aranda <[email-masked]>
Date: Sun, 10 Sep 2023 10:48:38 -0300

tags 65852 patch
quit

Patch attached.

From 540b06c10b2e880d6c7c8ddc3b006f24ef843889 Mon Sep 17 00:00:00 2001
From: Mauro Aranda <[email-masked]>
Date: Sun, 10 Sep 2023 10:45:04 -0300
Subject: [PATCH] Fix image-auto-resize :type (Bug#65852)

* lisp/image-mode.el (image-auto-resize): Arrange for 'other' to be
the last choice.
---
 lisp/image-mode.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/image-mode.el b/lisp/image-mode.el
index dce35ff72da..ecc7d73dd9e 100644
--- a/lisp/image-mode.el
+++ b/lisp/image-mode.el
@@ -69,8 +69,8 @@ image-auto-resize
 Resizing will always preserve the aspect ratio of the image."
   :type '(choice (const :tag "No resizing" nil)
                  (const :tag "Fit to window" fit-window)
-                 (other :tag "Scale down to fit window" t)
-                 (number :tag "Scale factor" 1))
+                 (number :tag "Scale factor" 1)
+                 (other :tag "Scale down to fit window" t))
   :version "29.1"
   :group 'image)
 
-- 
2.34.1