all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Rah Guzar <rahguzar@zohomail.eu>, Lars Ingebrigtsen <larsi@gnus.org>
Cc: 62679@debbugs.gnu.org
Subject: bug#62679: 29.0.60; Bindings on `image-map` cause error on sliced images
Date: Thu, 06 Apr 2023 12:41:11 +0300	[thread overview]
Message-ID: <83o7o1qrew.fsf@gnu.org> (raw)
In-Reply-To: <87ttxubahz.fsf@zohomail.eu> (bug-gnu-emacs@gnu.org)

> 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" <bug-gnu-emacs@gnu.org>
> 
> (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?





  reply	other threads:[~2023-04-06  9:41 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-05 15:23 bug#62679: 29.0.60; Bindings on `image-map` cause error on sliced images Rah Guzar via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-04-06  9:41 ` Eli Zaretskii [this message]
2023-04-06 15:43   ` Rah Guzar via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-04-06 16:24     ` Eli Zaretskii
2023-04-06 18:30       ` Rah Guzar via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-04-08  9:46         ` Eli Zaretskii
2023-04-08 18:29           ` Rah Guzar via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-04-08 18:58             ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83o7o1qrew.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=62679@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    --cc=rahguzar@zohomail.eu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.