From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#62679: 29.0.60; Bindings on `image-map` cause error on sliced images Date: Thu, 06 Apr 2023 12:41:11 +0300 Message-ID: <83o7o1qrew.fsf@gnu.org> References: <87ttxubahz.fsf@zohomail.eu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20148"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 62679@debbugs.gnu.org To: Rah Guzar , Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Apr 06 11:41:24 2023 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 1pkM7Q-00055G-4W for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 06 Apr 2023 11:41:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pkM77-0005qq-Mp; Thu, 06 Apr 2023 05:41:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pkM75-0005qN-BC for bug-gnu-emacs@gnu.org; Thu, 06 Apr 2023 05:41:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pkM75-0000jc-0J for bug-gnu-emacs@gnu.org; Thu, 06 Apr 2023 05:41:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pkM74-0006gq-CT for bug-gnu-emacs@gnu.org; Thu, 06 Apr 2023 05:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Apr 2023 09:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62679 X-GNU-PR-Package: emacs Original-Received: via spool by 62679-submit@debbugs.gnu.org id=B62679.168077405425693 (code B ref 62679); Thu, 06 Apr 2023 09:41:02 +0000 Original-Received: (at 62679) by debbugs.gnu.org; 6 Apr 2023 09:40:54 +0000 Original-Received: from localhost ([127.0.0.1]:53447 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pkM6w-0006gL-FI for submit@debbugs.gnu.org; Thu, 06 Apr 2023 05:40:54 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:49250) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pkM6t-0006g7-OV for 62679@debbugs.gnu.org; Thu, 06 Apr 2023 05:40:52 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pkM6l-0000cR-Mp; Thu, 06 Apr 2023 05:40:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=707pm3mzVAcwTTq3iy9+Ujv4g4Au0TbsyARKf0kyVYI=; b=qVSNllYfJrX3iusixgfM UAwkc90H5Jii8IrDigt0MjahprhWMrrRoTjRALaClhFKYbQVlJA+e1b2CWpsw0WqXBHc7mtpXJGpJ WcGj4fgTpjbQ9QnsVVBoTsasL2Mnd/j8hBAHUzcqIoAnpmzyWLsKKIT3jJ+2ClOf0rCaImoI7H94R g6NKaWWKauETAsmRbSfYdWyvAFPo1BgYjc1HswihRorbfPXwkgmEfeAMysBzo/IX05b3HfBN9EXm/ SR9e/phnrQsx8jLIxkKEZ5LsGvzxT+pLziQSC3w5tLKOZX45rKoOjiCWaQdx/JziqUDHWU16vFoPx 0ktPpYOjXzZeqg==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pkM6k-0004Gg-TR; Thu, 06 Apr 2023 05:40:43 -0400 In-Reply-To: <87ttxubahz.fsf@zohomail.eu> (bug-gnu-emacs@gnu.org) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:259301 Archived-At: > Date: Wed, 05 Apr 2023 17:23:11 +0200 > From: Rah Guzar via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > (let* ((image (create-image path-to-png 'png nil :mask 'heuristic)) > (rows (max 1 (1- (cdr (image-size image)))))) > (goto-char (point-max)) > (insert "\n") > (insert-sliced-image image " " nil rows)) > ``` > This inserts the image specified at the end of the buffer. The image > has a `keymap` text property which include binding for various > operations on images but moving point to the image and trying to use > any of these (e.g. `i +` to increase image size) results in the error, > > Error running timer ‘image--change-size’: (error "No image under point") This should be fixed now on the emacs-29 branch. It isn't perfect: "i -" leaves display artifacts (which I think are unrelated to this bug report per se), and "i r" doesn't really work, except when you type 'r' 4 times in a row. But I'm not sure I understand the conceptual meaning of rotating a sliced image, and even resizing it doesn't necessarily have a clear-cut meaning IMO. Perhaps we should decide we don't support these operations for sliced images, and simply show a different error message specifically about that non-support? Lars, any comments and/or ideas?