* bug#53546: 28.0.91; posn-image fails below an image
@ 2022-01-26 5:29 Roland Winkler
2022-01-26 14:46 ` Eli Zaretskii
0 siblings, 1 reply; 4+ messages in thread
From: Roland Winkler @ 2022-01-26 5:29 UTC (permalink / raw)
To: 53546
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#53546: 28.0.91; posn-image fails below an image
2022-01-26 5:29 bug#53546: 28.0.91; posn-image fails below an image Roland Winkler
@ 2022-01-26 14:46 ` Eli Zaretskii
2022-02-23 20:14 ` Lars Ingebrigtsen
0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2022-01-26 14:46 UTC (permalink / raw)
To: Roland Winkler; +Cc: 53546
> From: "Roland Winkler" <winkler@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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#53546: 28.0.91; posn-image fails below an image
2022-01-26 14:46 ` Eli Zaretskii
@ 2022-02-23 20:14 ` Lars Ingebrigtsen
2022-02-23 21:00 ` Roland Winkler
0 siblings, 1 reply; 4+ messages in thread
From: Lars Ingebrigtsen @ 2022-02-23 20:14 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 53546, Roland Winkler
Eli Zaretskii <eliz@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
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#53546: 28.0.91; posn-image fails below an image
2022-02-23 20:14 ` Lars Ingebrigtsen
@ 2022-02-23 21:00 ` Roland Winkler
0 siblings, 0 replies; 4+ messages in thread
From: Roland Winkler @ 2022-02-23 21:00 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: 53546, Roland Winkler
On Wed, Feb 23 2022, Lars Ingebrigtsen wrote:
> Eli Zaretskii <eliz@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.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-02-23 21:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-26 5:29 bug#53546: 28.0.91; posn-image fails below an image Roland Winkler
2022-01-26 14:46 ` Eli Zaretskii
2022-02-23 20:14 ` Lars Ingebrigtsen
2022-02-23 21:00 ` Roland Winkler
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.