unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#28788: macOS frame-list-z-order fails to list frames when called with a DISPLAY argument
@ 2017-10-11 19:35 Robert Weiner
  2017-10-11 19:44 ` Eli Zaretskii
  2017-10-11 21:27 ` Alan Third
  0 siblings, 2 replies; 4+ messages in thread
From: Robert Weiner @ 2017-10-11 19:35 UTC (permalink / raw)
  To: 28788

[-- Attachment #1: Type: text/plain, Size: 505 bytes --]

emacs-version
"27.0.50"

system-type
darwin

(frame-list-z-order)
(#<frame *scratch* "~/" 0x104ae0d38> #<frame TAGS<bk> "/Users/bk/"
0x1015f3e48> #<frame *Help* "~/" 0x1014b8000> #<frame TAGS<bk> "/Users/bk/"
0x11f959e40> #<frame TAGS<bk> "/Users/bk/" 0x101564fb0> 2111061947183245)

(x-display-list)
("bka-iMac.local")

;; Result should be the same as frame-list-z-order called without an
;; argument since we have only 1 display connection, but it isn't.
(frame-list-z-order (car (x-display-list)))
nil

[-- Attachment #2: Type: text/html, Size: 1867 bytes --]

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

* bug#28788: macOS frame-list-z-order fails to list frames when called with a DISPLAY argument
  2017-10-11 19:35 bug#28788: macOS frame-list-z-order fails to list frames when called with a DISPLAY argument Robert Weiner
@ 2017-10-11 19:44 ` Eli Zaretskii
  2017-10-11 21:27 ` Alan Third
  1 sibling, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2017-10-11 19:44 UTC (permalink / raw)
  To: rswgnu; +Cc: 28788

> From: Robert Weiner <rsw@gnu.org>
> Date: Wed, 11 Oct 2017 15:35:56 -0400
> 
> (frame-list-z-order)
> (#<frame *scratch* "~/" 0x104ae0d38> #<frame TAGS<bk> "/Users/bk/" 0x1015f3e48> #<frame *Help* "~/"
> 0x1014b8000> #<frame TAGS<bk> "/Users/bk/" 0x11f959e40> #<frame TAGS<bk> "/Users/bk/"
> 0x101564fb0> 2111061947183245)
> 
> (x-display-list)
> ("bka-iMac.local")
> 
> ;; Result should be the same as frame-list-z-order called without an
> ;; argument since we have only 1 display connection, but it isn't.

I don't understand why you expected the same results: the former
returns a list of frames, the latter the list of _X_displays_.





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

* bug#28788: macOS frame-list-z-order fails to list frames when called with a DISPLAY argument
  2017-10-11 19:35 bug#28788: macOS frame-list-z-order fails to list frames when called with a DISPLAY argument Robert Weiner
  2017-10-11 19:44 ` Eli Zaretskii
@ 2017-10-11 21:27 ` Alan Third
  2017-10-12  8:05   ` martin rudalics
  1 sibling, 1 reply; 4+ messages in thread
From: Alan Third @ 2017-10-11 21:27 UTC (permalink / raw)
  To: rswgnu; +Cc: 28788-done

On Wed, Oct 11, 2017 at 03:35:56PM -0400, Robert Weiner wrote:
> emacs-version
> "27.0.50"
> 
> system-type
> darwin
> 
> (frame-list-z-order)
> (#<frame *scratch* "~/" 0x104ae0d38> #<frame TAGS<bk> "/Users/bk/"
> 0x1015f3e48> #<frame *Help* "~/" 0x1014b8000> #<frame TAGS<bk> "/Users/bk/"
> 0x11f959e40> #<frame TAGS<bk> "/Users/bk/" 0x101564fb0> 2111061947183245)
> 
> (x-display-list)
> ("bka-iMac.local")
> 
> ;; Result should be the same as frame-list-z-order called without an
> ;; argument since we have only 1 display connection, but it isn't.
> (frame-list-z-order (car (x-display-list)))
> nil

Fix pushed to emacs 26.

Since DISPLAY is irrelevant here I’ve changed it to behave like the
Windows version and return the full list unless the argument is a
frame.
-- 
Alan Third





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

* bug#28788: macOS frame-list-z-order fails to list frames when called with a DISPLAY argument
  2017-10-11 21:27 ` Alan Third
@ 2017-10-12  8:05   ` martin rudalics
  0 siblings, 0 replies; 4+ messages in thread
From: martin rudalics @ 2017-10-12  8:05 UTC (permalink / raw)
  To: 28788, alan, rswgnu

 > Since DISPLAY is irrelevant here I’ve changed it to behave like the
 > Windows version and return the full list unless the argument is a
 > frame.

Thanks.  While you're there, could you also try fixing the return value
of

(frame-parameter nil 'display)

This would be needed to fix Bug#25901: 25.2; fit-frame-to-buffer not
functional in OS X.

martin






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

end of thread, other threads:[~2017-10-12  8:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-11 19:35 bug#28788: macOS frame-list-z-order fails to list frames when called with a DISPLAY argument Robert Weiner
2017-10-11 19:44 ` Eli Zaretskii
2017-10-11 21:27 ` Alan Third
2017-10-12  8:05   ` martin rudalics

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