unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#18839: 24.4; posn-object-width-height returns (0 . 0) for large images
@ 2014-10-26  2:29 Roland Winkler
  2014-10-26  2:40 ` Roland Winkler
  0 siblings, 1 reply; 8+ messages in thread
From: Roland Winkler @ 2014-10-26  2:29 UTC (permalink / raw)
  To: 18839


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





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#18839: 24.4; posn-object-width-height returns (0 . 0) for large images
  2014-10-26  2:29 bug#18839: 24.4; posn-object-width-height returns (0 . 0) for large images Roland Winkler
@ 2014-10-26  2:40 ` Roland Winkler
  2014-10-26  3:42   ` Eli Zaretskii
  0 siblings, 1 reply; 8+ messages in thread
From: Roland Winkler @ 2014-10-26  2:40 UTC (permalink / raw)
  To: 18839

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





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#18839: 24.4; posn-object-width-height returns (0 . 0) for large images
  2014-10-26  2:40 ` Roland Winkler
@ 2014-10-26  3:42   ` Eli Zaretskii
  2014-10-26  4:15     ` Roland Winkler
  0 siblings, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2014-10-26  3:42 UTC (permalink / raw)
  To: Roland Winkler; +Cc: 18839

> Date: Sat, 25 Oct 2014 21:40:58 -0500
> From: "Roland Winkler" <winkler@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.





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#18839: 24.4; posn-object-width-height returns (0 . 0) for large images
  2014-10-26  3:42   ` Eli Zaretskii
@ 2014-10-26  4:15     ` Roland Winkler
  2014-10-26 15:44       ` Eli Zaretskii
  0 siblings, 1 reply; 8+ messages in thread
From: Roland Winkler @ 2014-10-26  4:15 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 18839

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





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#18839: 24.4; posn-object-width-height returns (0 . 0) for large images
  2014-10-26  4:15     ` Roland Winkler
@ 2014-10-26 15:44       ` Eli Zaretskii
  2014-10-26 17:00         ` Roland Winkler
  0 siblings, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2014-10-26 15:44 UTC (permalink / raw)
  To: Roland Winkler; +Cc: 18839-done

> Date: Sat, 25 Oct 2014 23:15:15 -0500
> From: "Roland Winkler" <winkler@gnu.org>
> Cc: 18839@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.





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#18839: 24.4; posn-object-width-height returns (0 . 0) for large images
  2014-10-26 15:44       ` Eli Zaretskii
@ 2014-10-26 17:00         ` Roland Winkler
  2014-10-27  2:56           ` Roland Winkler
  0 siblings, 1 reply; 8+ messages in thread
From: Roland Winkler @ 2014-10-26 17:00 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 18839

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.





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#18839: 24.4; posn-object-width-height returns (0 . 0) for large images
  2014-10-26 17:00         ` Roland Winkler
@ 2014-10-27  2:56           ` Roland Winkler
  2014-10-27  3:43             ` Eli Zaretskii
  0 siblings, 1 reply; 8+ messages in thread
From: Roland Winkler @ 2014-10-27  2:56 UTC (permalink / raw)
  To: Eli Zaretskii, 18839

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.





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#18839: 24.4; posn-object-width-height returns (0 . 0) for large images
  2014-10-27  2:56           ` Roland Winkler
@ 2014-10-27  3:43             ` Eli Zaretskii
  0 siblings, 0 replies; 8+ messages in thread
From: Eli Zaretskii @ 2014-10-27  3:43 UTC (permalink / raw)
  To: Roland Winkler; +Cc: 18839

> Date: Sun, 26 Oct 2014 21:56:47 -0500
> From: "Roland Winkler" <winkler@gnu.org>
> 
> THANK YOU, you saved my day.

You are welcome.





^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-10-27  3:43 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-26  2:29 bug#18839: 24.4; posn-object-width-height returns (0 . 0) for large images Roland Winkler
2014-10-26  2:40 ` 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

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