unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Mauro Aranda <maurooaranda@gmail.com>
To: 65852@debbugs.gnu.org
Subject: bug#65852: 30.0.50; image-auto-resize :type has choices in wrong order
Date: Sun, 10 Sep 2023 10:48:38 -0300	[thread overview]
Message-ID: <2ef47b5b-2c03-509e-acf5-ad7d28a04166@gmail.com> (raw)
In-Reply-To: <081b5bd0-9652-cb7b-3c59-b07cab5e104d@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 39 bytes --]

tags 65852 patch
quit


Patch attached.

[-- Attachment #2: 0001-Fix-image-auto-resize-type-Bug-65852.patch --]
[-- Type: text/x-patch, Size: 997 bytes --]

From 540b06c10b2e880d6c7c8ddc3b006f24ef843889 Mon Sep 17 00:00:00 2001
From: Mauro Aranda <maurooaranda@gmail.com>
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


  reply	other threads:[~2023-09-10 13:48 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-10 13:40 bug#65852: 30.0.50; image-auto-resize :type has choices in wrong order Mauro Aranda
2023-09-10 13:48 ` Mauro Aranda [this message]
2023-09-10 13:49 ` Stefan Kangas
2023-09-10 13:58   ` Mauro Aranda
2023-09-10 14:24     ` Stefan Kangas
2023-09-10 14:47       ` Mauro Aranda
2023-09-10 15:38         ` Stefan Kangas
2023-09-10 15:38       ` Mattias Engdegård
2023-09-12 14:42         ` Mattias Engdegård
2023-09-17 15:20           ` Mattias Engdegård
2023-09-17 21:53             ` Mauro Aranda

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2ef47b5b-2c03-509e-acf5-ad7d28a04166@gmail.com \
    --to=maurooaranda@gmail.com \
    --cc=65852@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).