GNU bug report logs - #53546
28.0.91; posn-image fails below an image

Previous Next

Package: emacs;

Reported by: "Roland Winkler" <winkler <at> gnu.org>

Date: Wed, 26 Jan 2022 05:30:03 UTC

Severity: normal

Tags: moreinfo

Found in version 28.0.91

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 53546 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: "Roland Winkler" <winkler <at> gnu.org>
Cc: 53546 <at> debbugs.gnu.org
Subject: Re: bug#53546: 28.0.91; posn-image fails below an image
Date: Wed, 26 Jan 2022 16:46:48 +0200
> From: "Roland Winkler" <winkler <at> gnu.org>
> Date: Tue, 25 Jan 2022 23:29:31 -0600
> 
> 
> In 'emacs -Q' load
> 
> (defun foo (event)
>   (interactive "e")
>   (message "%simage"
>            (if (posn-image (event-start event)) "" "not ")))
> (global-set-key [down-mouse-1] 'foo)
> 
> Then visit a pbm image such as etc/images/gnus.pbm from GNU Emacs such
> that the image is smaller than the window displaying the image.  Then
> (left-) clicking inside the image gives the message "image" (fine).
> Clicking on the right of the image gives the message "not image" (again fine).
> However, clicking below the image again gives the message "image", when it
> should be "not image".  (With emacs 27.2, clicking below the image gives
> "not image".)
> 
> I noticed this with djvu-image-rect in djvu.el (GNU Elpa).

Thanks, this silly bug should now be fixed on the emacs-28 branch.




This bug report was last modified 3 years and 87 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.