[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Terminal only emacs question
From: |
Emanuel Berg |
Subject: |
Re: Terminal only emacs question |
Date: |
Fri, 25 Sep 2020 00:20:32 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
> 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)
:)
--
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal
Re: Terminal only emacs question, Stefan Monnier, 2020/09/24