From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.help Subject: Re: Terminal only emacs question Date: Fri, 25 Sep 2020 00:39:56 +0200 Message-ID: <87h7rmssso.fsf@Ergus.i-did-not-set--mail-host-address--so-tickle-me> References: <20200924220106.way5eue2tmykuhgy.ref@Ergus> <20200924220106.way5eue2tmykuhgy@Ergus> <87a6xezv08.fsf@ebih.ebihd> <875z82zut1.fsf@ebih.ebihd> <871riqzuj3.fsf@ebih.ebihd> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26896"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 25 00:40:53 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kLZv3-0006v1-LC for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 25 Sep 2020 00:40:53 +0200 Original-Received: from localhost ([::1]:49830 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kLZv2-0000cD-KN for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 24 Sep 2020 18:40:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59706) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kLZuP-0000bt-27 for help-gnu-emacs@gnu.org; Thu, 24 Sep 2020 18:40:13 -0400 Original-Received: from sonic314-14.consmr.mail.bf2.yahoo.com ([74.6.132.124]:36436) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kLZuL-0004MI-B2 for help-gnu-emacs@gnu.org; Thu, 24 Sep 2020 18:40:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1600987207; bh=mB2wacIIA0JSQEXC0C8rkSZvrcPdSMmMJ+fuX7egjPE=; h=Date:From:To:Subject:References:In-Reply-To:From:Subject; b=mzUNonmEkPvRtkaSwDqoWHGBKY/uEaqTnIESq8ehbN6mMfSB15KHe0ewrq1FTVmTNZ04Jcdh1h+wK/eso7apI0yitHz7VSKJLvjN63q+F5LpvtBTvdrCq6m5NJ08hy/3JnQUoDULObAMsMoB7lyYSRJaZ6YMMEVSCgLlJPx4tn8+9CZyda0EUkDc9hqlR2Sd+am/BijmUtyjDEd0LMm/RrFVM9ykB+hu9vcHr//h1i687VxzF6PfriXu4DkiM/W/B78ghEDreiTaPtT/u1rrwcluYmxhrbN7z4XXgfnuqm4UmYqw9Qjjzg9eCj7L909uOcbZToAQQRQBLMzLWW4Qng== X-YMail-OSG: 1pthtYwVM1ktHjAtBXWIKc.i.Wko4xd8NqmPgV7U1fU8KqHmIq95eXaW5gwFKxz tZBqvgU3x99F4AD0SYcMs9qZXeUWjlHNHHndFrYAoqMXlcmHGu0mneVA7kE_lHxdK9HSQNr8flW5 .pHg0kDT4ZrPpD2M5iZIPswqWvT6vBZepxfylwzDhhhBUYy3nns02fi9rcH_XiUMTApiqGsopq8M diN9TYSjubTYzemqLvkwmsSXbeHzbruUU31kMaUlPN80ZuQEe7Oa0Od6fKBHdgoTkYWf1kElBSNW x71OYwXsSbbWeMLwQ0LoDe7kduRlsR_E3y9SFU4Un1ZdMRzUO9p04z0wvT6sptML2w5hDc6QaHxr gWLKt0EBXlILbjaFQl22nQyL3QNY.N2cOdq.lvV_q_1xsk6hB1RKW5HbieWFhPQdoeoRVyFvg03b kKT1QUwTKDyidK5WBLgYA7xrhxQJSc2THCYDPCWIpqJ.UfaZHVHTl6KcWt.7f146X_SLqdrdnwIn 1ZJJw8DUsTviQ1ZdFd1mwKsGZOCyySq6FQ1pwwtWC3Tlo7wBWN95OddxHxbsGgV5itXJ6rV7fOhb fsV.AE0jsIGnsdA_VrnQoeovmCzKR44C1KAukhsPfwnCd0gEEn736jy5ZYf39XW31fJVVDRSwCSv RTb7RGgl_X1k0Dl0rufG65TfnnXEMpuh_Rw1MpvSPW0y4U_RPJm01KHDPfjvNrRNl4cbniKlga7A 5e_ZM7a_1Nq0wdWpkKS6qpN3yXzfsLuyQloVZdkO3iit5daWUO6QKyIzw6_262Nco7T3CNJLs7Im KHRHKjkr9OBYwyZvuP6ZEp5ukJ6HYEfai.lmBp5ZQZ Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.bf2.yahoo.com with HTTP; Thu, 24 Sep 2020 22:40:07 +0000 Original-Received: by smtp416.mail.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 067ce65f43ba27e4e25a0ee1f9934fe8; Thu, 24 Sep 2020 22:40:04 +0000 (UTC) Content-Disposition: inline In-Reply-To: <871riqzuj3.fsf@ebih.ebihd> X-Mailer: WebService/1.1.16674 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Apache-HttpAsyncClient/4.1.4 (Java/11.0.7) Received-SPF: pass client-ip=74.6.132.124; envelope-from=spacibba@aol.com; helo=sonic314-14.consmr.mail.bf2.yahoo.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/24 17:29:10 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:124176 Archived-At: 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 > >