From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= Newsgroups: gmane.emacs.devel Subject: Re: Auto-resizing of images in image-mode Date: Sun, 19 Apr 2020 08:58:01 +0200 Message-ID: <87h7xg55dy.fsf@gmail.com> References: <83r1wqgcl1.fsf@gnu.org> <87eesnayhf.fsf@mail.linkov.net> <83sgh2d2zo.fsf@gnu.org> <874ktg5pgt.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="87722"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Apr 19 08:57:56 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 1jQ3tr-000MhM-3S for ged-emacs-devel@m.gmane-mx.org; Sun, 19 Apr 2020 08:57:55 +0200 Original-Received: from localhost ([::1]:38416 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jQ3tq-0006mZ-77 for ged-emacs-devel@m.gmane-mx.org; Sun, 19 Apr 2020 02:57:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49118) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jQ3tL-0006MA-Q6 for emacs-devel@gnu.org; Sun, 19 Apr 2020 02:57:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jQ3tL-0007z2-Gu for emacs-devel@gnu.org; Sun, 19 Apr 2020 02:57:23 -0400 Original-Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]:40132) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jQ3tJ-0007uo-MR; Sun, 19 Apr 2020 02:57:21 -0400 Original-Received: by mail-wm1-x330.google.com with SMTP id a81so7539333wmf.5; Sat, 18 Apr 2020 23:57:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-transfer-encoding; bh=s6N0Jyy8OVtxDFjAyWvGx2vK/1/2B1oGfj1BxYcod6Q=; b=qkvH78yVe+f8Dy4wxVlv+Uu770cjZTJOl0oqEJB+DG3X/DflVUkThMRt0eUEFgbHqo RJKZMDSH2pF5xgKBRp7ikOcnfjdX4QMnRWKh3ugE6LM5H+CHajEDUGTksyZGBFfbo27S EAGOUBfmDjy15BniafZnaS5GBny7+L74xf5sI34m/krPxlRph5y/ZDEi/862GT3TPrcg gOKCjp5mueiGg0uq9ermGRoe56jgYpsrQczwt6cPq2zlkEzuxZFBq0TdNJcaufMfatHq Vf57xAdKZ51vSSFNLOAfZ6zyFK+u8Bkx9jztOEGtN5vaVtBHMW/oFKM+PJUfKr6iP3Fg DrZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references :user-agent:date:message-id:mime-version:content-transfer-encoding; bh=s6N0Jyy8OVtxDFjAyWvGx2vK/1/2B1oGfj1BxYcod6Q=; b=ZJ4ddNwlr3vKY4GZuiR/dm2VoRQBrquQkKUv0pgV+S1qPtFVsSPZNTTgYya21/Oi10 xnestIK6d6ICP5c8D5A3cf42+EqaspkO5dQOReC08SqNGh3X3VaKS74fiHIJoc/NQ1nB fzzxjmvRlYg1f58dKQxsmvpwkjYUE7Q0gM37+/q6ptyhtjKJDl8jKDJ06V4lTUJKFDRj /B/Rv70stA7WC3QPovN5N0VAH2huvxyst/iX/BeidzLGFDGakIAk5TP36mYCjHiX/7rf RQnVQezOTrgOu9lCvxClBRxxeeK/o6OTXHYxbCgp7vBXRIk81ykL0QgtJvW9Kz4RTgyd ABcw== X-Gm-Message-State: AGi0PuaZJu4a+dMv9TQ3axF7zqC/P9CvqX/t6uSV7Ycd5QFoI3dC98kM LGa3XRQfQVzMzWDagMVEo7Do9x51gBc= X-Google-Smtp-Source: APiQypItGJpp9XWMW7S/0mx3Ge9pbukfbaBaIeAAVF1V2nlLBusLPQBbdiC1L3sUMhJ42EqT/cwyyA== X-Received: by 2002:a1c:6405:: with SMTP id y5mr10148346wmb.63.1587279439763; Sat, 18 Apr 2020 23:57:19 -0700 (PDT) Original-Received: from localhost ([185.112.167.47]) by smtp.gmail.com with ESMTPSA id t67sm14972728wmg.40.2020.04.18.23.57.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Apr 2020 23:57:19 -0700 (PDT) In-Reply-To: <874ktg5pgt.fsf@mail.linkov.net> (Juri Linkov's message of "Sun, 19 Apr 2020 02:45:18 +0300") Received-SPF: pass client-ip=2a00:1450:4864:20::330; envelope-from=stepnem@gmail.com; helo=mail-wm1-x330.google.com X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::330 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:247282 Archived-At: On Sun, 19 Apr 2020 02:45:18 +0300 Juri Linkov wrote: > Better would be to have two ways to view an image without the > automatic resizing: > > 1. an option to disable automatic resizing permanently. > There is already a defvar 'image-transform-resize' > but its 'nil' value doesn't disable automatic resizing, > so a new defcustom is needed. Please see it below. > > 2. an easy to type key in image-mode-map to toggle automatic resizing. > Some programs use 'F' key for "Best Fit" but 'F' is already used > in image-mode-map for image-goto-frame. +1 > Also there are no keys for image-transform-fit-to-width, > image-transform-fit-to-height and image-transform-reset. > I thought about using a prefix key 'f', so using 'f w' to fit width, > but 'f' is already taken too. 's' ("scale") is free, used e.g. by the imv image viewer to cycle between different scaling modes (original size, shrink/fit to window). --=20 =C5=A0t=C4=9Bp=C3=A1n