GNU bug report logs - #41222
27.1; Auto-resizing of images in image-mode

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: Juri Linkov <juri@HIDDEN>; Keywords: patch; dated Tue, 12 May 2020 23:00:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Severity set to 'minor' from 'normal' Request was from Noam Postavsky <npostavs@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Added tag(s) patch. Request was from Noam Postavsky <npostavs@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 41222 <at> debbugs.gnu.org:


Received: (at 41222) by debbugs.gnu.org; 20 May 2020 22:40:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 20 18:40:10 2020
Received: from localhost ([127.0.0.1]:54618 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jbXNT-0007Pv-VU
	for submit <at> debbugs.gnu.org; Wed, 20 May 2020 18:40:10 -0400
Received: from relay3-d.mail.gandi.net ([217.70.183.195]:46507)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1jbXNR-0007Pd-09
 for 41222 <at> debbugs.gnu.org; Wed, 20 May 2020 18:39:54 -0400
X-Originating-IP: 91.129.97.200
Received: from mail.gandi.net (m91-129-97-200.cust.tele2.ee [91.129.97.200])
 (Authenticated sender: juri@HIDDEN)
 by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 9763460002;
 Wed, 20 May 2020 22:39:45 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
To: Alan Third <alan@HIDDEN>
Subject: Re: bug#41222: 27.1; Auto-resizing of images in image-mode
Organization: LINKOV.NET
References: <87tv0kkbkl.fsf@HIDDEN>
 <20200514204615.GC50681@HIDDEN>
 <87pnb688y4.fsf@HIDDEN>
 <20200515062834.GB52382@HIDDEN>
 <87wo575yx7.fsf@HIDDEN>
 <20200520201845.GA59177@HIDDEN>
Date: Thu, 21 May 2020 01:23:47 +0300
In-Reply-To: <20200520201845.GA59177@HIDDEN> (Alan Third's
 message of "Wed, 20 May 2020 22:18:47 +0200 (CEST)")
Message-ID: <87sgfus0ss.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 41222
Cc: 41222 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>> One possible change is:
>> 
>>   "Original Size"
>>   "Reset to Default Size"
>> 
>> But when using "Actual Size" instead of "Original Size",
>> what would be a good title for the second menu item?
>
> I think "Default Size" size works in either case. I feel that Default
> strongly implies it will return to whatever size it would be when I
> first load the image, and that also clarifies what the other option
> will do.

I added both variants “Original/Actual” and “Default/Initial”
to menu title/help, and docstrings.  More tweaking is possible,
but it seems this is quite good now.

Eli, is it ok to install this finishing patch to emacs-27?

diff --git a/lisp/image-mode.el b/lisp/image-mode.el
index 480b2e6b26..b82c066918 100644
--- a/lisp/image-mode.el
+++ b/lisp/image-mode.el
@@ -456,6 +456,7 @@ image-mode-map
     (define-key map "sb" 'image-transform-fit-both)
     (define-key map "ss" 'image-transform-set-scale)
     (define-key map "sr" 'image-transform-set-rotation)
+    (define-key map "so" 'image-transform-original)
     (define-key map "s0" 'image-transform-reset)
 
     ;; Multi-frame keys
@@ -521,8 +522,10 @@ image-mode-map
 	 :help "Rotate the image"]
 	["Set Rotation..." image-transform-set-rotation
 	 :help "Set rotation angle of the image"]
-	["Reset Transformations" image-transform-reset
-	 :help "Reset all image transformations"]
+	["Original Size" image-transform-original
+	 :help "Reset image to actual size"]
+	["Reset to Default Size" image-transform-reset
+	 :help "Reset all image transformations to initial size"]
 	"--"
 	["Show Thumbnails"
 	 (lambda ()
@@ -1382,8 +1385,15 @@ image-transform-set-rotation
   (setq image-transform-rotation (float (mod rotation 360)))
   (image-toggle-display-image))
 
+(defun image-transform-original ()
+  "Display the current image with the original (actual) size and rotation."
+  (interactive)
+  (setq image-transform-resize nil
+	image-transform-scale 1)
+  (image-toggle-display-image))
+
 (defun image-transform-reset ()
-  "Display the current image with the default size and rotation."
+  "Display the current image with the default (initial) size and rotation."
   (interactive)
   (setq image-transform-resize image-auto-resize
 	image-transform-rotation 0.0




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#41222; Package emacs. Full text available.

Message received at 41222 <at> debbugs.gnu.org:


Received: (at 41222) by debbugs.gnu.org; 20 May 2020 20:18:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 20 16:18:58 2020
Received: from localhost ([127.0.0.1]:54404 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jbVB4-0001aJ-Fr
	for submit <at> debbugs.gnu.org; Wed, 20 May 2020 16:18:58 -0400
Received: from mailout-l3b-97.contactoffice.com ([212.3.242.97]:50936)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <alan@HIDDEN>) id 1jbVB1-0001a2-LW
 for 41222 <at> debbugs.gnu.org; Wed, 20 May 2020 16:18:57 -0400
Received: from smtpauth2.co-bxl (smtpauth2.co-bxl [10.2.0.24])
 by mailout-l3b-97.contactoffice.com (Postfix) with ESMTP id 3B502424;
 Wed, 20 May 2020 22:18:49 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1590005929; 
 s=20200222-6h9o; d=idiocy.org; i=alan@HIDDEN;
 h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:Content-Type:In-Reply-To;
 l=1055; bh=5ptjg0yr1jhuqlXfQWl5g3A6n7LXqk9b26HNyGXTOUc=;
 b=gqnreoxrfS+ztHKAwK7RWv4mzE76SKpdrYR8HlS3hwBzNr0yv8UzW2mwU93XjkVy
 RnU0JPOD6uUIKo9fhkuDofQJruby2ESPmpXhgTFrsO+QaNIHlhXuRARGY6GaU+f5f5q
 CudwFhT6QjhZJtqV2kzUQXIf36XbPiliCK+eNQLCEhWfMzHElnyGCdCzpH5qDn0mIlk
 hwf2dlFx7+skxAWJfQgzYmUhFBi2BmsxuD8IJ5rBVJ3bG5wy7WaM1eUdnoOqrHasUt7
 lBFZjXatqPcDY5eroQ3No+MswE9Cr6+39bfkGNdVagAlKgfEfZI3/x61u1NHhHPZq9W
 5oKSo4hqew==
Received: by smtp.mailfence.com with ESMTPA ;
 Wed, 20 May 2020 22:18:46 +0200 (CEST)
Received: by breton.holly.idiocy.org (Postfix, from userid 501)
 id 28ECC2022E7177; Wed, 20 May 2020 21:18:45 +0100 (BST)
Date: Wed, 20 May 2020 22:18:47 +0200 (CEST)
From: Alan Third <alan@HIDDEN>
To: Juri Linkov <juri@HIDDEN>
Subject: Re: bug#41222: 27.1; Auto-resizing of images in image-mode
Message-ID: <20200520201845.GA59177@HIDDEN>
Mail-Followup-To: Alan Third <alan@HIDDEN>,
 Juri Linkov <juri@HIDDEN>, 41222 <at> debbugs.gnu.org
References: <87tv0kkbkl.fsf@HIDDEN>
 <20200514204615.GC50681@HIDDEN>
 <87pnb688y4.fsf@HIDDEN>
 <20200515062834.GB52382@HIDDEN>
 <87wo575yx7.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <87wo575yx7.fsf@HIDDEN>
X-Spam-Flag: NO
X-Spam-Status: No, hits=-2.9 required=4.7 symbols=ALL_TRUSTED,
 BAYES_00 device=10.2.0.21
X-ContactOffice-Account: com:241649512
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 41222
Cc: 41222 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

On Wed, May 20, 2020 at 01:43:00AM +0300, Juri Linkov wrote:
> Actually the problem is in consistency of these two menu items:
> 
> 	["Original Size" image-transform-original
> 	 :help "Reset image to original size"]
> 	["Reset Transformations" image-transform-reset
> 	 :help "Reset all image transformations"]
> 
> image-transform-original resets to the actual/original/normal size.
> image-transform-reset resets to the default size defined by image-auto-resize.
> 
> So they both should be fixed to be mutually consistent.

Hmm, yes, I can't tell which is which just from the menu name or even
the description.

> One possible change is:
> 
>   "Original Size"
>   "Reset to Default Size"
> 
> But when using "Actual Size" instead of "Original Size",
> what would be a good title for the second menu item?

I think "Default Size" size works in either case. I feel that Default
strongly implies it will return to whatever size it would be when I
first load the image, and that also clarifies what the other option
will do.
-- 
Alan Third




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#41222; Package emacs. Full text available.

Message received at 41222 <at> debbugs.gnu.org:


Received: (at 41222) by debbugs.gnu.org; 19 May 2020 22:46:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue May 19 18:46:54 2020
Received: from localhost ([127.0.0.1]:51423 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jbB0g-0004PW-EP
	for submit <at> debbugs.gnu.org; Tue, 19 May 2020 18:46:54 -0400
Received: from relay10.mail.gandi.net ([217.70.178.230]:51693)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1jbB0X-0004Og-49
 for 41222 <at> debbugs.gnu.org; Tue, 19 May 2020 18:46:45 -0400
Received: from mail.gandi.net (m91-129-97-200.cust.tele2.ee [91.129.97.200])
 (Authenticated sender: juri@HIDDEN)
 by relay10.mail.gandi.net (Postfix) with ESMTPSA id ED4CB240009;
 Tue, 19 May 2020 22:46:37 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
To: Alan Third <alan@HIDDEN>
Subject: Re: bug#41222: 27.1; Auto-resizing of images in image-mode
Organization: LINKOV.NET
References: <87tv0kkbkl.fsf@HIDDEN>
 <20200514204615.GC50681@HIDDEN>
 <87pnb688y4.fsf@HIDDEN>
 <20200515062834.GB52382@HIDDEN>
Date: Wed, 20 May 2020 01:43:00 +0300
In-Reply-To: <20200515062834.GB52382@HIDDEN> (Alan Third's
 message of "Fri, 15 May 2020 07:28:34 +0100")
Message-ID: <87wo575yx7.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 41222
Cc: 41222 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

>> >> I noticed that image-mode still lacks one needed command:
>> >> some image viewers have a menu item titled “Normal Size C-0” or
>> >> “Original Size C-0”.  Here's is the patch that implements it:
>> > <snip>
>> >> +	["Original Size" image-transform-original
>> >> +	 :help "Reset image to original size"]
>> >
>> > Hi Juri, this looks good to me, but I’m not sure about saying
>> > "original size", as that may be mistaken for meaning the size it was
>> > when it was loaded the first time.
>> 
>> It seems the correct term for the size of the image loaded the first
>> time would be "initial size"?  Hmm, actually, the docstring of
>> 'image-transform-reset' says the correct term for the initial size is
>> "default size".
>> 
>> > Perhaps "actual size"? It’s not great, but I think less open to
>> > interpretation than "original".
>> 
>> I don't know, some programs use "original size", some "normal size":
>
> If you're happy enough it won't be a problem I won't argue. :)

Actually the problem is in consistency of these two menu items:

	["Original Size" image-transform-original
	 :help "Reset image to original size"]
	["Reset Transformations" image-transform-reset
	 :help "Reset all image transformations"]

image-transform-original resets to the actual/original/normal size.
image-transform-reset resets to the default size defined by image-auto-resize.

So they both should be fixed to be mutually consistent.

One possible change is:

  "Original Size"
  "Reset to Default Size"

But when using "Actual Size" instead of "Original Size",
what would be a good title for the second menu item?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#41222; Package emacs. Full text available.

Message received at 41222 <at> debbugs.gnu.org:


Received: (at 41222) by debbugs.gnu.org; 15 May 2020 06:28:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 15 02:28:41 2020
Received: from localhost ([127.0.0.1]:35704 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jZTpp-0006Q3-3B
	for submit <at> debbugs.gnu.org; Fri, 15 May 2020 02:28:41 -0400
Received: from idiocy.org ([217.169.17.33]:54394 helo=breton.holly.idiocy.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <alan@HIDDEN>) id 1jZTpo-0006Pq-9r
 for 41222 <at> debbugs.gnu.org; Fri, 15 May 2020 02:28:40 -0400
Received: by breton.holly.idiocy.org (Postfix, from userid 501)
 id 5C82F2022C87DF; Fri, 15 May 2020 07:28:34 +0100 (BST)
Date: Fri, 15 May 2020 07:28:34 +0100
From: Alan Third <alan@HIDDEN>
To: Juri Linkov <juri@HIDDEN>
Subject: Re: bug#41222: 27.1; Auto-resizing of images in image-mode
Message-ID: <20200515062834.GB52382@HIDDEN>
Mail-Followup-To: Alan Third <alan@HIDDEN>,
 Juri Linkov <juri@HIDDEN>, 41222 <at> debbugs.gnu.org
References: <87tv0kkbkl.fsf@HIDDEN>
 <20200514204615.GC50681@HIDDEN>
 <87pnb688y4.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <87pnb688y4.fsf@HIDDEN>
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 41222
Cc: 41222 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On Fri, May 15, 2020 at 01:39:55AM +0300, Juri Linkov wrote:
> >> I noticed that image-mode still lacks one needed command:
> >> some image viewers have a menu item titled “Normal Size C-0” or
> >> “Original Size C-0”.  Here's is the patch that implements it:
> > <snip>
> >> +	["Original Size" image-transform-original
> >> +	 :help "Reset image to original size"]
> >
> > Hi Juri, this looks good to me, but I’m not sure about saying
> > "original size", as that may be mistaken for meaning the size it was
> > when it was loaded the first time.
> 
> It seems the correct term for the size of the image loaded the first
> time would be "initial size"?  Hmm, actually, the docstring of
> 'image-transform-reset' says the correct term for the initial size is
> "default size".
> 
> > Perhaps "actual size"? It’s not great, but I think less open to
> > interpretation than "original".
> 
> I don't know, some programs use "original size", some "normal size":

If you're happy enough it won't be a problem I won't argue. :)
-- 
Alan Third




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#41222; Package emacs. Full text available.

Message received at 41222 <at> debbugs.gnu.org:


Received: (at 41222) by debbugs.gnu.org; 14 May 2020 22:43:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 14 18:43:02 2020
Received: from localhost ([127.0.0.1]:35159 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jZMZC-0001HI-8F
	for submit <at> debbugs.gnu.org; Thu, 14 May 2020 18:43:02 -0400
Received: from relay11.mail.gandi.net ([217.70.178.231]:50203)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1jZMZA-0001GL-ER
 for 41222 <at> debbugs.gnu.org; Thu, 14 May 2020 18:43:01 -0400
Received: from mail.gandi.net (m91-129-104-245.cust.tele2.ee [91.129.104.245])
 (Authenticated sender: juri@HIDDEN)
 by relay11.mail.gandi.net (Postfix) with ESMTPSA id 26777100002;
 Thu, 14 May 2020 22:42:51 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
To: Alan Third <alan@HIDDEN>
Subject: Re: bug#41222: 27.1; Auto-resizing of images in image-mode
Organization: LINKOV.NET
References: <87tv0kkbkl.fsf@HIDDEN>
 <20200514204615.GC50681@HIDDEN>
Date: Fri, 15 May 2020 01:39:55 +0300
In-Reply-To: <20200514204615.GC50681@HIDDEN> (Alan Third's
 message of "Thu, 14 May 2020 21:46:15 +0100")
Message-ID: <87pnb688y4.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 41222
Cc: 41222 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit

>> I noticed that image-mode still lacks one needed command:
>> some image viewers have a menu item titled “Normal Size C-0” or
>> “Original Size C-0”.  Here's is the patch that implements it:
> <snip>
>> +	["Original Size" image-transform-original
>> +	 :help "Reset image to original size"]
>
> Hi Juri, this looks good to me, but I’m not sure about saying
> "original size", as that may be mistaken for meaning the size it was
> when it was loaded the first time.

It seems the correct term for the size of the image loaded the first
time would be "initial size"?  Hmm, actually, the docstring of
'image-transform-reset' says the correct term for the initial size is
"default size".

> Perhaps "actual size"? It’s not great, but I think less open to
> interpretation than "original".

I don't know, some programs use "original size", some "normal size":

Xreader:

--=-=-=
Content-Type: image/png
Content-Disposition: inline; filename=xreader.png
Content-Transfer-Encoding: base64

iVBORw0KGgoAAAANSUhEUgAAAPYAAACsCAYAAABIB1FZAAAABmJLR0QA/wD/AP+gvaeTAAAACXBI
WXMAAA7EAAAOxAGVKw4bAAAflklEQVR42u2dd3gU1frHP7MlfZNsAiEkRBJCaAkQuiR0UMAoXBCl
6kW9IipWQFC8VrCAP9GLeAVFjIIErygooSiICpFeJQkldAg9bTd9s/P7IwmElGVTgADv53l4HrJn
55yZM/M973vOzM5XUVVVRRCEWwqNdIEgiLAFQRBhC4IgwhYEQYQtCIIIWxBE2IIgiLAFQRBhC4Ig
whYEQYQtCC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Type: image/png
Content-Disposition: inline; filename=xviewer.png
Content-Transfer-Encoding: base64

iVBORw0KGgoAAAANSUhEUgAAALIAAAB2CAYAAABs88nKAAAABmJLR0QA/wD/AP+gvaeTAAAACXBI
WXMAAA7EAAAOxAGVKw4bAAASZklEQVR42u2ceUBU5RqHn3NmGNYBBlxYRMANFXfFDfc0NVJzKZes
LMstW9UyrcybluYtr9e6uWRGbnhL03K/eM0UNZcyr0vu4kKoyDaswzBz/wAUtxEQkeV9/oOPc+ac
b555z3s+5vwUq9VqRRDKOKpMgSAiC4KILAgisiCIyIKILAgisiCIyIIgIgvlHa2twfHjx3Ps2LEC
7Sg4OJhPPvlEZlQofRW5oBIDHDlyRGZTuDvZ59i2ZAPH0h5CRc4jIiICvV5/xzGj0cigQYMK+HJW
Eja+y/OfHyQr/68Vd7r/LZxXm2lLcGatxG79lL99tYNLFi9aDJ3EpF7+aES5u2Am6dxB9h88xaWE
NMyqA25V6tC6Swt87a2kxpzDaAjEy7EUthZ55Jc4LCwMgPXr1982dm8UDD2msfpRC9ZcmeJ/mcX4
773oVl9bwqeu4PXIG4yLOceMjNG8IxLb/NCnnPyZ9XszqNWmK/393NCajFyLy8JNB1iNnPn9f5jb
BuDlqBRit5kkJZhx9nC+XURbY0UVuXj9UVA1OcpYk3azZMk52r7+OvUcciYs/fRmFnz5b/acT0M1
1KLLs2N5NtQLO1tjWbuZNWIHgX1Vdqzex6VMA00GjmWAwxbmr9zLhVQngnq9yttDm+Bqa56zdjNr
xE5qDrAjatVeLqRo8Q19ngkvd8ZHW4E9zo7l0G9X8G7bj5aBDjm/s/PAxxmwpnNuVyQHLydh3biS
43bVaNu7GmfWXqRaGwdORB3hqmdbBnWxu8N+L7J/ezyN+4RQSS3E2P2sWoSFhV2vxnf6ufAf8hR+
+/ZrjjUdwdMNc69HmYcJn/FvMnpOI3zlChZObEH0gpmsPmu2PQZYjbvYdrkrUxdFED6lFZfD32P2
8dZMWriC5Z/2xrphKZF/3fsbq1bjTjadacXE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KRUUWBBFZEERkQRCRBRFZEERkQRCRBUFEFkRkmQJBRBYEEVkQRGRBEJGF8sf/AYbv
JjdZdNe2AAAAAElFTkSuQmCC
--=-=-=
Content-Type: text/plain


And I found one program, namely Pix, that uses "actual size".

--=-=-=--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#41222; Package emacs. Full text available.

Message received at 41222 <at> debbugs.gnu.org:


Received: (at 41222) by debbugs.gnu.org; 14 May 2020 20:46:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 14 16:46:25 2020
Received: from localhost ([127.0.0.1]:35065 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jZKkL-0004Iy-3Q
	for submit <at> debbugs.gnu.org; Thu, 14 May 2020 16:46:25 -0400
Received: from idiocy.org ([217.169.17.33]:54169 helo=breton.holly.idiocy.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <alan@HIDDEN>) id 1jZKkJ-0004Ik-2O
 for 41222 <at> debbugs.gnu.org; Thu, 14 May 2020 16:46:23 -0400
Received: by breton.holly.idiocy.org (Postfix, from userid 501)
 id 4B0C12022C709E; Thu, 14 May 2020 21:46:15 +0100 (BST)
Date: Thu, 14 May 2020 21:46:15 +0100
From: Alan Third <alan@HIDDEN>
To: Juri Linkov <juri@HIDDEN>
Subject: Re: bug#41222: 27.1; Auto-resizing of images in image-mode
Message-ID: <20200514204615.GC50681@HIDDEN>
Mail-Followup-To: Alan Third <alan@HIDDEN>,
 Juri Linkov <juri@HIDDEN>, 41222 <at> debbugs.gnu.org
References: <87tv0kkbkl.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <87tv0kkbkl.fsf@HIDDEN>
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 41222
Cc: 41222 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On Wed, May 13, 2020 at 01:57:38AM +0300, Juri Linkov wrote:
> This is a followup to the emacs-devel thread
> https://lists.gnu.org/archive/html/emacs-devel/2020-04/msg00777.html
> 
> I noticed that image-mode still lacks one needed command:
> some image viewers have a menu item titled “Normal Size C-0” or
> “Original Size C-0”.  Here's is the patch that implements it:
<snip>
> +	["Original Size" image-transform-original
> +	 :help "Reset image to original size"]

Hi Juri, this looks good to me, but I’m not sure about saying
"original size", as that may be mistaken for meaning the size it was
when it was loaded the first time.

Perhaps "actual size"? It’s not great, but I think less open to
interpretation than "original".
-- 
Alan Third




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#41222; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 12 May 2020 22:59:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue May 12 18:59:57 2020
Received: from localhost ([127.0.0.1]:56832 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jYdsT-0004Z0-5c
	for submit <at> debbugs.gnu.org; Tue, 12 May 2020 18:59:57 -0400
Received: from lists.gnu.org ([209.51.188.17]:55858)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <juri@HIDDEN>) id 1jYdsQ-0004Yi-Jx
 for submit <at> debbugs.gnu.org; Tue, 12 May 2020 18:59:54 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:50280)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <juri@HIDDEN>) id 1jYdsQ-0001jh-Ba
 for bug-gnu-emacs@HIDDEN; Tue, 12 May 2020 18:59:54 -0400
Received: from relay9-d.mail.gandi.net ([217.70.183.199]:33067)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <juri@HIDDEN>) id 1jYdsO-0007cG-Tg
 for bug-gnu-emacs@HIDDEN; Tue, 12 May 2020 18:59:53 -0400
X-Originating-IP: 91.129.104.245
Received: from mail.gandi.net (m91-129-104-245.cust.tele2.ee [91.129.104.245])
 (Authenticated sender: juri@HIDDEN)
 by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 26C6BFF808
 for <bug-gnu-emacs@HIDDEN>; Tue, 12 May 2020 22:59:47 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 27.1; Auto-resizing of images in image-mode
Organization: LINKOV.NET
Date: Wed, 13 May 2020 01:57:38 +0300
Message-ID: <87tv0kkbkl.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Received-SPF: pass client-ip=217.70.183.199; envelope-from=juri@HIDDEN;
 helo=relay9-d.mail.gandi.net
X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/12 18:59:48
X-ACL-Warn: Detected OS   = Linux 3.11 and newer
X-Spam_score_int: -25
X-Spam_score: -2.6
X-Spam_bar: --
X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7,
 RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001,
 URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN
X-Spam_action: no action
X-Spam-Score: -1.6 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.6 (--)

This is a followup to the emacs-devel thread
https://lists.gnu.org/archive/html/emacs-devel/2020-04/msg00777.html

I noticed that image-mode still lacks one needed command:
some image viewers have a menu item titled “Normal Size C-0” or
“Original Size C-0”.  Here's is the patch that implements it:

diff --git a/lisp/image-mode.el b/lisp/image-mode.el
index 480b2e6b26..45007289c8 100644
--- a/lisp/image-mode.el
+++ b/lisp/image-mode.el
@@ -456,6 +456,7 @@ image-mode-map
     (define-key map "sb" 'image-transform-fit-both)
     (define-key map "ss" 'image-transform-set-scale)
     (define-key map "sr" 'image-transform-set-rotation)
+    (define-key map "so" 'image-transform-original)
     (define-key map "s0" 'image-transform-reset)
 
     ;; Multi-frame keys
@@ -521,6 +522,8 @@ image-mode-map
 	 :help "Rotate the image"]
 	["Set Rotation..." image-transform-set-rotation
 	 :help "Set rotation angle of the image"]
+	["Original Size" image-transform-original
+	 :help "Reset image to original size"]
 	["Reset Transformations" image-transform-reset
 	 :help "Reset all image transformations"]
 	"--"
@@ -1382,6 +1385,13 @@ image-transform-set-rotation
   (setq image-transform-rotation (float (mod rotation 360)))
   (image-toggle-display-image))
 
+(defun image-transform-original ()
+  "Display the current image with the original size and rotation."
+  (interactive)
+  (setq image-transform-resize nil
+	image-transform-scale 1)
+  (image-toggle-display-image))
+
 (defun image-transform-reset ()
   "Display the current image with the default size and rotation."
   (interactive)


BTW, like ‘image-auto-resize-on-window-resize’ was added recently to
image-mode.el, is there a need to add a similar option to man.el
to allow customization of auto-resizing of Man buffers as well?
Maybe something like:

diff --git a/lisp/man.el b/lisp/man.el
index 5278a1a84d..a614cac536 100644
--- a/lisp/man.el
+++ b/lisp/man.el
@@ -1579,7 +1579,8 @@ Man-mode
   (set (make-local-variable 'outline-level) (lambda () 1))
   (set (make-local-variable 'bookmark-make-record-function)
        'Man-bookmark-make-record)
-  (add-hook 'window-state-change-functions #'Man--window-state-change nil t))
+  (when Man-fit-to-window-on-window-resize
+    (add-hook 'window-state-change-functions #'Man--window-state-change nil t)))
 
 (defun Man-build-section-list ()
   "Build the list of manpage sections."




Acknowledgement sent to Juri Linkov <juri@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#41222; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 May 2020 14:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.