unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Roland Winkler" <winkler@gnu.org>
Cc: 53546@debbugs.gnu.org
Subject: bug#53546: 28.0.91; posn-image fails below an image
Date: Wed, 26 Jan 2022 16:46:48 +0200	[thread overview]
Message-ID: <835yq6h7vr.fsf@gnu.org> (raw)
In-Reply-To: <87fspboyis.fsf@gnu.org> (winkler@gnu.org)

> 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.





  reply	other threads:[~2022-01-26 14:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2022-02-23 20:14   ` Lars Ingebrigtsen
2022-02-23 21:00     ` Roland Winkler

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=835yq6h7vr.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=53546@debbugs.gnu.org \
    --cc=winkler@gnu.org \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).