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.devel Subject: Re: Auto-resizing of images in image-mode Date: Tue, 21 Apr 2020 02:44:52 +0300 Organization: LINKOV.NET Message-ID: <87eeshvi2l.fsf@mail.linkov.net> References: <83r1wqgcl1.fsf@gnu.org> <87eesnayhf.fsf@mail.linkov.net> <83sgh2d2zo.fsf@gnu.org> <874ktg5pgt.fsf@mail.linkov.net> <87h7xg55dy.fsf@gmail.com> <87blnnxe2x.fsf@mail.linkov.net> <87ftcy4fe7.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="97654"; 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: Eli Zaretskii , emacs-devel@gnu.org To: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Apr 21 01:48:44 2020 Return-path: Envelope-to: ged-emacs-devel@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 1jQg9c-000PHS-7z for ged-emacs-devel@m.gmane-mx.org; Tue, 21 Apr 2020 01:48:44 +0200 Original-Received: from localhost ([::1]:44198 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jQg9a-0007KE-Jq for ged-emacs-devel@m.gmane-mx.org; Mon, 20 Apr 2020 19:48:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38840) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jQg8t-0006O0-Aa for emacs-devel@gnu.org; Mon, 20 Apr 2020 19:47:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jQg8t-0003io-2A for emacs-devel@gnu.org; Mon, 20 Apr 2020 19:47:59 -0400 Original-Received: from relay7-d.mail.gandi.net ([217.70.183.200]:49643) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jQg8q-0003gK-OG; Mon, 20 Apr 2020 19:47:56 -0400 X-Originating-IP: 91.129.106.11 Original-Received: from mail.gandi.net (m91-129-106-11.cust.tele2.ee [91.129.106.11]) (Authenticated sender: juri@linkov.net) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id BE60820006; Mon, 20 Apr 2020 23:47:52 +0000 (UTC) In-Reply-To: <87ftcy4fe7.fsf@gmail.com> (=?utf-8?B?IsWgdMSbcMOhbiBOxJtt?= =?utf-8?B?ZWMiJ3M=?= message of "Mon, 20 Apr 2020 12:31:44 +0200") Received-SPF: pass client-ip=217.70.183.200; envelope-from=juri@linkov.net; helo=relay7-d.mail.gandi.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/04/20 19:47:53 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Received-From: 217.70.183.200 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:247431 Archived-At: > I don't use doc-view mode, but consistency seems important, esp. given > that its keymap iherits from image-mode-map. > > OTOH I really like grouping similar functionality to a common prefix, as > it helps both mnemonics and discoverability/documentation, so I think > I'd prefer changing doc-view mode to follow image-mode's example here; > possibly changing the s prefix to something else (in the parent, i.e. > image-mode) so it doesn't conflict with the slice prefix. But changing > UI defaults is always a delicate matter... Some unfinished code in image-mode.el ;; ;; (define-key map "c f h" 'image-scale-fit-height) ;; ;; (define-key map "c ]" 'image-rotate-right) uses the prefix "c", but I see no mnemonics in "c". There is some mnemonics in the prefix "t" (transform): t 0 image-transform-reset t b image-transform-fit-both t f image-mode-fit-frame t h image-transform-fit-to-height t r image-transform-set-rotation t s image-transform-set-scale t w image-transform-fit-to-width but I'm still not sure if this is the best possible outcome.