From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#22172: 25.1.50; Wishlist: There should be a way to say to Emacs that is should rescale all images with a certain factor Date: Wed, 10 Feb 2016 00:18:52 +1100 Message-ID: <87zivaauo3.fsf@gnus.org> References: <47io40i0ph.fsf@fencepost.gnu.org> <877fifya6c.fsf@gnus.org> <878u2vxmlm.fsf@web.de> <87oabqltlt.fsf@gnus.org> <87fux28xit.fsf@gnus.org> <21432be5-61e0-4f0e-8f39-e9b66a414e07@default> <871t8ml38f.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1455024026 19892 80.91.229.3 (9 Feb 2016 13:20:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Feb 2016 13:20:26 +0000 (UTC) Cc: 22172@debbugs.gnu.org To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 09 14:20:15 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aT8DE-0001WA-CL for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Feb 2016 14:20:12 +0100 Original-Received: from localhost ([::1]:55914 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aT8DD-0004pc-OF for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Feb 2016 08:20:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38111) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aT8D9-0004o6-Hc for bug-gnu-emacs@gnu.org; Tue, 09 Feb 2016 08:20:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aT8D4-0004JY-Ei for bug-gnu-emacs@gnu.org; Tue, 09 Feb 2016 08:20:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51873) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aT8D4-0004JU-BK for bug-gnu-emacs@gnu.org; Tue, 09 Feb 2016 08:20:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aT8D4-0003Mj-7t for bug-gnu-emacs@gnu.org; Tue, 09 Feb 2016 08:20:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Feb 2016 13:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22172 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22172-submit@debbugs.gnu.org id=B22172.145502397012894 (code B ref 22172); Tue, 09 Feb 2016 13:20:02 +0000 Original-Received: (at 22172) by debbugs.gnu.org; 9 Feb 2016 13:19:30 +0000 Original-Received: from localhost ([127.0.0.1]:32781 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aT8CX-0003Lu-VP for submit@debbugs.gnu.org; Tue, 09 Feb 2016 08:19:30 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:53873) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aT8CU-0003Lj-W0 for 22172@debbugs.gnu.org; Tue, 09 Feb 2016 08:19:27 -0500 Original-Received: from cpe-60-225-211-161.nsw.bigpond.net.au ([60.225.211.161] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aT8C5-00038q-Ol; Tue, 09 Feb 2016 14:19:02 +0100 In-Reply-To: <871t8ml38f.fsf@web.de> (Michael Heerdegen's message of "Tue, 09 Feb 2016 09:03:44 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-MailScanner-ID: 1aT8C5-00038q-Ol MailScanner-NULL-Check: 1455628743.25378@stnu7i0n3KPELgwsmtS9gw X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:112792 Archived-At: Michael Heerdegen writes: > I agree we should be careful. Even using the keymap text property might > be surprising. E.g. when we chose + and -, these might already be bound > (e.g. to `negative-argument' in image-mode itself!). Well, the local keymap wins over the mode keymap. > Let's start to find some suitable bindings for `image-mode'. How about > i and d ("increase", "decrease")? I don't find image mode that interesting, actually. I think images, whenever displayed in Emacs, should offer ways of interacting. Scaling, of course, but also saving, for instance. And rotation. > In the general case, we could attach a keymap text property to any image > we insert into a buffer. The keymap should be a user option. It could > even be empty by default, at least for now. That would already be a big > win. And thinking about it a bit more, I think we could probably afford to grab some pretty basic keys for these commands. If the user puts the cursor on an image, I think it's very likely that the user wants to interact with that image. So we could bind keys like `-' and `+'. Drag an image into a Message buffer, scale it, rotate it, and send the message. I think that sounds rather attractive... Other modes that insert images today often also puts keymaps on images (like eww does), but these could be derived from this new keymap. Errr... `image-map'. Perhaps. We can give it a try and see whether it's annoying or not in practice. These UI things usually require a bit of usage to see whether they "feel nice" or not. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no