all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Rah Guzar via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: larsi@gnus.org, 62679-done@debbugs.gnu.org
Subject: bug#62679: 29.0.60; Bindings on `image-map` cause error on sliced images
Date: Sat, 08 Apr 2023 20:29:45 +0200	[thread overview]
Message-ID: <87h6tqb4kn.fsf@zohomail.eu> (raw)
In-Reply-To: <83zg7in1tc.fsf@gnu.org>

Hi Eli,
   Thanks for the changes. Everything work as expected for me now.

   However, the new keymap is only partially effective. I cannot
   use "i r" to rotate a sliced image now but it is possible to do it
   using "i + r" i.e. the mechanism that is used to allow performing
   repeated manipulations still uses a map which allows rotations.

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Rah Guzar <rahguzar@zohomail.eu>
>> Cc: larsi@gnus.org, 62679@debbugs.gnu.org
>> Date: Thu, 06 Apr 2023 20:30:19 +0200
>>
>> > 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.
>
> Thanks, I fixed this now on the emacs-29 branch.
>
>> >>   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.
>
> I added a new map, in which some commands that have no meaning for
> sliced images are absent.
>
> And with that, I'm closing this bug.

Thanks a lot,
Rah Guzar





  reply	other threads:[~2023-04-08 18:29 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
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 [this message]
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=87h6tqb4kn.fsf@zohomail.eu \
    --to=bug-gnu-emacs@gnu.org \
    --cc=62679-done@debbugs.gnu.org \
    --cc=eliz@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.