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.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 18839 in the body.
You can then email your comments to 18839 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#18839
; Package
emacs
.
(Sun, 26 Oct 2014 02:31:02 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
.
(Sun, 26 Oct 2014 02:31:02 GMT)
Full text and
rfc822 format available.
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
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#18839
; Package
emacs
.
(Sun, 26 Oct 2014 02:42:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 18839 <at> debbugs.gnu.org (full text, mbox):
On Sat Oct 25 2014 Roland Winkler wrote:
> Strange enough: starting emacs 24.4 via
>
> emacs -q --no-site-file --no-splash -l ~/emacs/dot/foo.el
>
> works as expected
No, this still fails for larger images:
--no-splash makes posn-object-width-height work for a test image
512x384, but it fails for 1024x768
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#18839
; Package
emacs
.
(Sun, 26 Oct 2014 03:44:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 18839 <at> debbugs.gnu.org (full text, mbox):
> Date: Sat, 25 Oct 2014 21:40:58 -0500
> From: "Roland Winkler" <winkler <at> gnu.org>
>
> On Sat Oct 25 2014 Roland Winkler wrote:
> > Strange enough: starting emacs 24.4 via
> >
> > emacs -q --no-site-file --no-splash -l ~/emacs/dot/foo.el
> >
> > works as expected
>
> No, this still fails for larger images:
>
> --no-splash makes posn-object-width-height work for a test image
> 512x384, but it fails for 1024x768
Please post the URLs where one can find the images you tried, or
images that can be used to reproduce this problem.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#18839
; Package
emacs
.
(Sun, 26 Oct 2014 04:16:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 18839 <at> debbugs.gnu.org (full text, mbox):
On Sun Oct 26 2014 Eli Zaretskii wrote:
> Please post the URLs where one can find the images you tried, or
> images that can be used to reproduce this problem.
Say, I observe the buggy behavior if I enlarge the file splash.png
in the etc directory of emacs:
convert splash.png -resize 1024 splash-1024.png
convert splash.png -resize 2048 splash-2048.png
In this case for emacs 24.4
emacs -q --no-splash -l foo.el splash-1024.png # fine
emacs -q -l foo.el splash-1024.png # buggy
emacs -q --no-splash -l foo.el splash-2048.png # buggy
emacs -q -l foo.el splash-2048.png # buggy
No problem with emacs 24.3.93
Reply sent
to
Eli Zaretskii <eliz <at> gnu.org>
:
You have taken responsibility.
(Sun, 26 Oct 2014 15:45:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
"Roland Winkler" <winkler <at> gnu.org>
:
bug acknowledged by developer.
(Sun, 26 Oct 2014 15:45:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 18839-done <at> debbugs.gnu.org (full text, mbox):
> Date: Sat, 25 Oct 2014 23:15:15 -0500
> From: "Roland Winkler" <winkler <at> gnu.org>
> Cc: 18839 <at> debbugs.gnu.org
>
> On Sun Oct 26 2014 Eli Zaretskii wrote:
> > Please post the URLs where one can find the images you tried, or
> > images that can be used to reproduce this problem.
>
> Say, I observe the buggy behavior if I enlarge the file splash.png
> in the etc directory of emacs:
>
> convert splash.png -resize 1024 splash-1024.png
> convert splash.png -resize 2048 splash-2048.png
>
> In this case for emacs 24.4
>
> emacs -q --no-splash -l foo.el splash-1024.png # fine
> emacs -q -l foo.el splash-1024.png # buggy
> emacs -q --no-splash -l foo.el splash-2048.png # buggy
> emacs -q -l foo.el splash-2048.png # buggy
>
> No problem with emacs 24.3.93
An embarrassing typo that caused this is now fixed on the emacs-24
branch.
Thanks.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#18839
; Package
emacs
.
(Sun, 26 Oct 2014 17:01:02 GMT)
Full text and
rfc822 format available.
Message #22 received at 18839 <at> debbugs.gnu.org (full text, mbox):
On Sun Oct 26 2014 Eli Zaretskii wrote:
> An embarrassing typo that caused this is now fixed on the emacs-24
> branch.
I can confirm that now things work again as expected.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#18839
; Package
emacs
.
(Mon, 27 Oct 2014 02:57:02 GMT)
Full text and
rfc822 format available.
Message #25 received at 18839 <at> debbugs.gnu.org (full text, mbox):
On Sun Oct 26 2014 Roland Winkler wrote:
> On Sun Oct 26 2014 Eli Zaretskii wrote:
> > An embarrassing typo that caused this is now fixed on the emacs-24
> > branch.
>
> I can confirm that now things work again as expected.
I almost forgot to add:
THANK YOU, you saved my day.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#18839
; Package
emacs
.
(Mon, 27 Oct 2014 03:45:01 GMT)
Full text and
rfc822 format available.
Message #28 received at 18839 <at> debbugs.gnu.org (full text, mbox):
> Date: Sun, 26 Oct 2014 21:56:47 -0500
> From: "Roland Winkler" <winkler <at> gnu.org>
>
> THANK YOU, you saved my day.
You are welcome.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 24 Nov 2014 12:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 9 years and 165 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.