all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* display-pixel-height not working as advertized
@ 2002-04-08 11:10 John Wiegley
  2002-04-09  7:43 ` Eli Zaretskii
  2002-04-09 12:08 ` Richard Stallman
  0 siblings, 2 replies; 5+ messages in thread
From: John Wiegley @ 2002-04-08 11:10 UTC (permalink / raw)


This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English, because the Emacs maintainers do not have
translators to read other languages for them.

Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list,
and to the gnu.emacs.bug news group.

In GNU Emacs 21.2.1 (i386-debian-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2002-03-22 on raven, modified by Debian
configured using `configure  i386-debian-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --with-x=yes --with-x-toolkit=athena --without-gif'
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: C
  locale-coding-system: nil
  default-enable-multibyte-characters: t

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

(display-pixel-height "some.host.com:0.0") should return the X display
height in pixels.  Instead, it always returns my own display's height
in characters!

This seems to be because (framep-on-display "some.host.com:0") always
returns nil.

(x-display-pixel-height "some.host.com:0.0") returns what I expect.

John

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

* Re: display-pixel-height not working as advertized
  2002-04-08 11:10 display-pixel-height not working as advertized John Wiegley
@ 2002-04-09  7:43 ` Eli Zaretskii
  2002-04-09 12:08 ` Richard Stallman
  1 sibling, 0 replies; 5+ messages in thread
From: Eli Zaretskii @ 2002-04-09  7:43 UTC (permalink / raw)
  Cc: bug-gnu-emacs


On Mon, 8 Apr 2002, John Wiegley wrote:

> (display-pixel-height "some.host.com:0.0") should return the X display
> height in pixels.  Instead, it always returns my own display's height
> in characters!
> 
> This seems to be because (framep-on-display "some.host.com:0") always
> returns nil.

Thanks.  Could you please step through frame-on-display and its 
subroutines, and see why does it return nil?

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

* Re: display-pixel-height not working as advertized
  2002-04-08 11:10 display-pixel-height not working as advertized John Wiegley
  2002-04-09  7:43 ` Eli Zaretskii
@ 2002-04-09 12:08 ` Richard Stallman
  2002-04-10 23:27   ` John Paul Wallington
  1 sibling, 1 reply; 5+ messages in thread
From: Richard Stallman @ 2002-04-09 12:08 UTC (permalink / raw)
  Cc: emacs-devel

    This seems to be because (framep-on-display "some.host.com:0") always
    returns nil.

Since the failure is happening on your machine, could you debug why it
fails?

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

* Re: display-pixel-height not working as advertized
  2002-04-09 12:08 ` Richard Stallman
@ 2002-04-10 23:27   ` John Paul Wallington
  2002-04-12  3:12     ` Richard Stallman
  0 siblings, 1 reply; 5+ messages in thread
From: John Paul Wallington @ 2002-04-10 23:27 UTC (permalink / raw)
  Cc: johnw, emacs-devel

Richard Stallman <rms@gnu.org> wrote:

>     This seems to be because (framep-on-display "some.host.com:0") always
>     returns nil.
>
> Since the failure is happening on your machine, could you debug why it
> fails?

Should `frames-on-display-list' use equal instead of eq ?

(defun frames-on-display-list (&optional display)
  "Return a list of all frames on DISPLAY.
DISPLAY is a name of a display, a string of the form HOST:SERVER.SCREEN.
If DISPLAY is omitted or nil, it defaults to the selected frame's display."
  (let* ((display (or display (frame-parameter nil 'display)))
	 (func #'(lambda (frame)
-		   (eq (frame-parameter frame 'display) display))))
+		   (equal (frame-parameter frame 'display) display))))
    (filtered-frame-list func)))

-- 
John Paul Wallington

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

* Re: display-pixel-height not working as advertized
  2002-04-10 23:27   ` John Paul Wallington
@ 2002-04-12  3:12     ` Richard Stallman
  0 siblings, 0 replies; 5+ messages in thread
From: Richard Stallman @ 2002-04-12  3:12 UTC (permalink / raw)
  Cc: johnw, emacs-devel

I think you found the problem and the right fix.
Thanks.

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

end of thread, other threads:[~2002-04-12  3:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-08 11:10 display-pixel-height not working as advertized John Wiegley
2002-04-09  7:43 ` Eli Zaretskii
2002-04-09 12:08 ` Richard Stallman
2002-04-10 23:27   ` John Paul Wallington
2002-04-12  3:12     ` Richard Stallman

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.