From: "Roland Winkler" <winkler@gnu.org>
To: 18839@debbugs.gnu.org
Subject: bug#18839: 24.4; posn-object-width-height returns (0 . 0) for large images
Date: Sat, 25 Oct 2014 21:29:50 -0500 [thread overview]
Message-ID: <87mw8j5zs1.fsf@gnu.org> (raw)
cat > foo.el <<EOF
(global-set-key [C-down-mouse-1] 'foo)
(global-set-key [C-mouse-1] 'foo)
(defun foo (event)
(interactive "e")
(message "foo: %s" (posn-object-width-height (event-start event))))
EOF
emacs -q --no-site-file -l foo.el
load some image (say jpg, png, or tif) in image-mode,
the image needs to be large enough for the bug to occur, say 1024x768
Put mouse pointer over image.
Press C-mouse-1
emacs 24.3.93: command foo gives width and height of the image
emacs 24.4: command foo gives (0 . 0)
Strange enough: starting emacs 24.4 via
emacs -q --no-site-file --no-splash -l ~/emacs/dot/foo.el
works as expected
In GNU Emacs 24.4.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.4.2)
of 2014-10-22 on regnitz
Windowing system distributor `The X.Org Foundation', version 11.0.11103000
System Description: Ubuntu 12.04.5 LTS
Important settings:
value of $LC_COLLATE: C
value of $LANG: en_US.ISO-8859-15
locale-coding-system: iso-latin-9-unix
next reply other threads:[~2014-10-26 2:29 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-26 2:29 Roland Winkler [this message]
2014-10-26 2:40 ` bug#18839: 24.4; posn-object-width-height returns (0 . 0) for large images Roland Winkler
2014-10-26 3:42 ` Eli Zaretskii
2014-10-26 4:15 ` Roland Winkler
2014-10-26 15:44 ` Eli Zaretskii
2014-10-26 17:00 ` Roland Winkler
2014-10-27 2:56 ` Roland Winkler
2014-10-27 3:43 ` 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=87mw8j5zs1.fsf@gnu.org \
--to=winkler@gnu.org \
--cc=18839@debbugs.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 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.