From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#41222: 27.1; Auto-resizing of images in image-mode Date: Wed, 20 May 2020 01:43:00 +0300 Organization: LINKOV.NET Message-ID: <87wo575yx7.fsf@mail.linkov.net> References: <87tv0kkbkl.fsf@mail.linkov.net> <20200514204615.GC50681@breton.holly.idiocy.org> <87pnb688y4.fsf@mail.linkov.net> <20200515062834.GB52382@breton.holly.idiocy.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="78703"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: 41222@debbugs.gnu.org To: Alan Third Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 20 00:47:13 2020 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 1jbB0z-000KN6-1Y for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 20 May 2020 00:47:13 +0200 Original-Received: from localhost ([::1]:39778 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jbB0y-0006Be-0U for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 19 May 2020 18:47:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47244) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jbB0p-0006Ax-15 for bug-gnu-emacs@gnu.org; Tue, 19 May 2020 18:47:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39878) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jbB0o-0007CP-OE for bug-gnu-emacs@gnu.org; Tue, 19 May 2020 18:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jbB0o-0004QB-M6 for bug-gnu-emacs@gnu.org; Tue, 19 May 2020 18:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 May 2020 22:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41222 X-GNU-PR-Package: emacs Original-Received: via spool by 41222-submit@debbugs.gnu.org id=B41222.158992841416968 (code B ref 41222); Tue, 19 May 2020 22:47:02 +0000 Original-Received: (at 41222) by debbugs.gnu.org; 19 May 2020 22:46:54 +0000 Original-Received: from localhost ([127.0.0.1]:51423 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jbB0g-0004PW-EP for submit@debbugs.gnu.org; Tue, 19 May 2020 18:46:54 -0400 Original-Received: from relay10.mail.gandi.net ([217.70.178.230]:51693) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jbB0X-0004Og-49 for 41222@debbugs.gnu.org; Tue, 19 May 2020 18:46:45 -0400 Original-Received: from mail.gandi.net (m91-129-97-200.cust.tele2.ee [91.129.97.200]) (Authenticated sender: juri@linkov.net) by relay10.mail.gandi.net (Postfix) with ESMTPSA id ED4CB240009; Tue, 19 May 2020 22:46:37 +0000 (UTC) In-Reply-To: <20200515062834.GB52382@breton.holly.idiocy.org> (Alan Third's message of "Fri, 15 May 2020 07:28:34 +0100") 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" Xref: news.gmane.io gmane.emacs.bugs:180626 Archived-At: >> >> 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: >> > >> >> + ["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?