GNU bug report logs -
#18839
24.4; posn-object-width-height returns (0 . 0) for large images
Previous Next
Reported by: "Roland Winkler" <winkler <at> gnu.org>
Date: Sun, 26 Oct 2014 02:31:02 UTC
Severity: normal
Found in version 24.4
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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
This bug report was last modified 10 years and 214 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.