From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Rah Guzar via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#62679: 29.0.60; Bindings on `image-map` cause error on sliced images Date: Thu, 06 Apr 2023 20:30:19 +0200 Message-ID: <87lej4c0o5.fsf@zohomail.eu> References: <87ttxubahz.fsf@zohomail.eu> <83o7o1qrew.fsf@gnu.org> <87pm8hat4s.fsf@zohomail.eu> <83y1n5ou6l.fsf@gnu.org> Reply-To: Rah Guzar Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37758"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.10.1; emacs 29.0.60 Cc: 62679@debbugs.gnu.org, larsi@gnus.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Apr 06 20:43:21 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 1pkUZs-0009fX-NQ for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 06 Apr 2023 20:43:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pkUZc-0004ha-N0; Thu, 06 Apr 2023 14:43:04 -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 1pkUZb-0004hR-8M for bug-gnu-emacs@gnu.org; Thu, 06 Apr 2023 14:43: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 1pkUZa-0007x9-Va for bug-gnu-emacs@gnu.org; Thu, 06 Apr 2023 14:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pkUZa-00064j-6N for bug-gnu-emacs@gnu.org; Thu, 06 Apr 2023 14:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Rah Guzar Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Apr 2023 18:43: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.168080657123335 (code B ref 62679); Thu, 06 Apr 2023 18:43:02 +0000 Original-Received: (at 62679) by debbugs.gnu.org; 6 Apr 2023 18:42:51 +0000 Original-Received: from localhost ([127.0.0.1]:55141 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pkUZP-00064I-5Q for submit@debbugs.gnu.org; Thu, 06 Apr 2023 14:42:51 -0400 Original-Received: from sender11-pp-o93.zoho.eu ([31.186.226.251]:25886) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pkUZL-000646-4P for 62679@debbugs.gnu.org; Thu, 06 Apr 2023 14:42:50 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1680806558; cv=none; d=zohomail.eu; s=zohoarc; b=IIVthOIsYy2dFA4jkAHdVpeL2WWNnIpIFBgelvOKdz7wdNyjHh91B4A3+X7YAz9qX9vkIYMelr4Kl7tQunNFmpHW4EQvgHlF1q+ihISHcnNu8R/yDSxgQ9eOWoI3NQj42vubRpVJj0Qji1LWVzfXFvmhLR3qX5Aoz9RRJsOSv8Q= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1680806558; h=Content-Type:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=yqPri/bKlVo6mB/jFLg7afwkW1OqJ231/L7Un6L7GHw=; b=g8IWGFpslh5vY/QWxe5hB4UHCG3LiQwuOM8PO3IzuGvlcygogYC6tPrPMIuSUGN+cy2jGGEGkfvTmnU/QpURJcJy5dSgUEpN7t8GWTHJzR4cNdPnfr6wQ7osQHYtbWud4OoINEdc9DnyKQUODMoaaEJZDcNnXGObz+Tuwd+y0QU= ARC-Authentication-Results: i=1; mx.zohomail.eu; dkim=pass header.i=zohomail.eu; spf=pass smtp.mailfrom=rahguzar@zohomail.eu; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1680806558; s=zoho; d=zohomail.eu; i=rahguzar@zohomail.eu; h=References:From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:In-reply-to:Message-ID:MIME-Version:Content-Type:Message-Id:Reply-To; bh=yqPri/bKlVo6mB/jFLg7afwkW1OqJ231/L7Un6L7GHw=; b=BmM8GxGtsBMZ5WWBSE3udCv6MtCaOa84S0y2LHlsZ9EZj2IE8LN1RIGlFm8/6ohH I3XKh5K2l8y8IxiWBVBwzu76diDs54xbb/aHGXg5rA8PGJjTijNkcgoEza6dO7cVw27 yUJR4fIG35r4Bcq5JdJEUGbZCgpzGNs8QzeHo0BA= Original-Received: from localhost (81-231-79-170-no600.tbcn.telia.com [81.231.79.170]) by mx.zoho.eu with SMTPS id 1680806556041485.88635211083476; Thu, 6 Apr 2023 20:42:36 +0200 (CEST) In-reply-to: <83y1n5ou6l.fsf@gnu.org> X-ZohoMailClient: External 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:259346 Archived-At: Eli Zaretskii writes: >> From: Rah Guzar >> Cc: Lars Ingebrigtsen , 62679@debbugs.gnu.org >> Date: Thu, 06 Apr 2023 17:43:55 +0200 >> >> Hi Eli, >> I can confirm that the issue is mostly fixed now. One thing I noticed >> was that it is still possible to trigger the error by starting with my >> recipe before, moving the point to somewhere on the image and then >> using right arrow key. Since the image has a single column the point >> is now off image but on the same line. This buffer position still has >> the "image-map" and pressing e.g. "i +" still causes the error. > > I cannot reproduce this. On my system, if I move point with the right > arrow key, "M-x describe-text-properties" doesn't show the keymap > property. > You are right there is no keymap property there but somehow "image-map" is still active. I can press "i +" there and see the error while after or before the image pressing "i +" will insert the two characters. >> According to the info manual, the advantage of using sliced images is >> to get a more intuitive scrolling behavior and that is the reason I am >> using them. I think for everything else the image should behave as a >> single image. For that reason the behavior of "i r" seems correct to >> me. It rotates the image and then slices. > > If this is what you see, I guess you have Emacs built with > ImageMagick? I don't see "rotation followed by slicing", because the > code doesn't do that, at least not with rotation that is implemented > natively in Emacs on my system. But, as I said, rotation of sliced > image is not well defined, so my opinion is that people should not > depend on it doing something sensible. Evaluating "(image-type-available-p 'imagemagick)" returns nil so I think Emacs is built without imagemagick support. The sequence of command I ran to build it were ./configure --with-pgtk make make bootstrap where the first make failed due to some org issue. But to the broader point about rotation not being sensible I think it might be a good idea to put a different keymap on sliced images in that case. Maybe "sliced-image-map" which should be the parent of "image-map". I don't see any misbehavior though.