From: Ergus <spacibba@aol.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Terminal only emacs question
Date: Fri, 25 Sep 2020 00:39:56 +0200 [thread overview]
Message-ID: <87h7rmssso.fsf@Ergus.i-did-not-set--mail-host-address--so-tickle-me> (raw)
In-Reply-To: <871riqzuj3.fsf@ebih.ebihd>
On Fri, Sep 25, 2020 at 12:20:32AM +0200, Emanuel Berg via Users list for the GNU Emacs text editor wrote:
>> But `window-system' is still preferable, more
>> elegant, I'd say, so try that first :)
>
>In the docstring to `window-system' it says:
>
> Use of this variable as a boolean is deprecated.
> Instead, use ‘display-graphic-p’ or any of the
> other ‘display-*-p’ predicates which report frame’s
> specific UI-related capabilities.
>
>Hm... your use case is boolean, right?
>
>So try:
>
> (display-graphic-p)
>
>:)
>
That was the first I tried and it is nil in both cases :(
(display-graphic-p) is non nil only when using a gui but in xterm it is
nil.
>--
>underground experts united
>http://user.it.uu.se/~embe8573
>https://dataswamp.org/~incal
>
>
next prev parent reply other threads:[~2020-09-24 22:39 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20200924220106.way5eue2tmykuhgy.ref@Ergus>
2020-09-24 22:01 ` Terminal only emacs question Ergus
2020-09-24 22:10 ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-09-24 22:14 ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-09-24 22:20 ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-09-24 22:39 ` Ergus [this message]
2020-09-24 22:53 ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-09-25 1:22 ` Stefan Monnier
2020-09-25 2:32 ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-09-25 3:22 ` Ergus
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=87h7rmssso.fsf@Ergus.i-did-not-set--mail-host-address--so-tickle-me \
--to=spacibba@aol.com \
--cc=help-gnu-emacs@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.