all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Drew Adams <drew.adams@oracle.com>
Cc: emacs-devel@gnu.org
Subject: Re: question about `display-graphic-p' and emacs daemon
Date: Wed, 21 Nov 2012 20:05:54 +0200	[thread overview]
Message-ID: <83liduvnjx.fsf@gnu.org> (raw)
In-Reply-To: <5117FACB1DD14041804B94DDD6B2DDF3@us.oracle.com>

> From: "Drew Adams" <drew.adams@oracle.com>
> Date: Wed, 21 Nov 2012 07:16:16 -0800
> 
> But shouldn't it be possible for Emacs to determine the display type without
> actually displaying a frame?

Why do you need that?  The display-*-P functions are mainly for
testing what the current frame can or cannot do, so that Lisp
applications could fall back on alternative methods if the best
alternative cannot be supported.  E.g., if fringes are not available,
a Lisp program could display something in an overlay or in margins.

If you want to know whether the current Emacs executable can do
something, it is better to use fboundp and featurep instead.

> 2. While looking for the answer, I checked the doc for `display-graphic-p'.  It
> says that argument DISPLAY can be a display name, as an alternative to being a
> frame name or nil.  But it says nothing about what a "display name" means wrt
> Emacs Lisp.
> 
> What form does it take?  Is it a Unix/Linux X-Window display name?

Yes.  A cross reference to "Multiple Terminals" would be good there.

> What about on MS Windows?

The Windows build does not support multiple displays.

> The closest I found to describing DISPLAY is in `Multiple Terminals'.  It
> describes X-Window displays as having names of the form HOST:SERVER.SCREEN.
> What about non X-Window displays?

There are none; X-Window displays are the only ones Emacs supports.

> If I eval (x-display-list) on MS Windows I see ("w32"), but I don't see that
> form of DISPLAY described anywhere.

That's a fake name, just so that code that looks at this will have
some string to play with.  It has no meaning.

> And I see that (framep (selected-frame)) returns `w32' (a symbol
> this time).

Yes, and that one _is_ documented.



      parent reply	other threads:[~2012-11-21 18:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-21 15:16 question about `display-graphic-p' and emacs daemon Drew Adams
2012-11-21 15:31 ` Christopher Schmidt
2012-11-21 16:27   ` Drew Adams
2012-11-21 18:05 ` Eli Zaretskii [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83liduvnjx.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.