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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 53546 in the body.
You can then email your comments to 53546 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#53546; Package emacs. (Wed, 26 Jan 2022 05:30:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Roland Winkler" <winkler <at> gnu.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 26 Jan 2022 05:30:03 GMT) Full text and rfc822 format available.

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

From: "Roland Winkler" <winkler <at> gnu.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 28.0.91; posn-image fails below an image
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).


In GNU Emacs 28.0.91 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.5, cairo version 1.16.0)
 of 2022-01-16 built on regnitz
Windowing system distributor 'The X.Org Foundation', version 11.0.12004000
System Description: Debian GNU/Linux 10 (buster)

Configured using:
 'configure --with-native-compilation'

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES
NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF
TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM GTK3 ZLIB

Important settings:
  value of $LC_COLLATE: C
  value of $LANG: en_US.utf8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#53546; Package emacs. (Wed, 26 Jan 2022 14:48:02 GMT) Full text and rfc822 format available.

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.




Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 26 Jan 2022 15:28:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#53546; Package emacs. (Wed, 23 Feb 2022 20:15:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 53546 <at> debbugs.gnu.org, Roland Winkler <winkler <at> gnu.org>
Subject: Re: bug#53546: 28.0.91; posn-image fails below an image
Date: Wed, 23 Feb 2022 21:14:22 +0100
Eli Zaretskii <eliz <at> gnu.org> writes:

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

There was no followup here in a month, so I'm guessing that this worked
fine, and I'm closing this bug report.  If there's still a problem here,
please respond to the debbugs address and we'll reopen.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug marked as fixed in version 28.1, send any further explanations to 53546 <at> debbugs.gnu.org and "Roland Winkler" <winkler <at> gnu.org> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 23 Feb 2022 20:15:03 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#53546; Package emacs. (Wed, 23 Feb 2022 21:01:01 GMT) Full text and rfc822 format available.

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

From: Roland Winkler <winkler <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 53546 <at> debbugs.gnu.org,
 Roland Winkler <winkler <at> gnu.org>
Subject: Re: bug#53546: 28.0.91; posn-image fails below an image
Date: Wed, 23 Feb 2022 15:00:40 -0600
On Wed, Feb 23 2022, Lars Ingebrigtsen wrote:
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
>> Thanks, this silly bug should now be fixed on the emacs-28 branch.
>
> There was no followup here in a month, so I'm guessing that this worked
> fine, and I'm closing this bug report.  If there's still a problem here,
> please respond to the debbugs address and we'll reopen.

I need to admit: I have not yet tested Eli's patch simply because I am
still using emacs 28.0.91, waiting for 28.0.92.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 24 Mar 2022 11:24:09 GMT) Full text and rfc822 format available.

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.