From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: way to discriminate between Emacs.app or terminal launch of Emacs in init.el Date: Tue, 18 Aug 2015 01:24:39 -0400 Organization: A noiseless patient Spider Message-ID: References: <17805043-1393-49a5-ad64-2010da9b1473@googlegroups.com> <87614dbk78.fsf@kuiper.lan.informatimago.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1439899484 17874 80.91.229.3 (18 Aug 2015 12:04:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Aug 2015 12:04:44 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 18 14:04:44 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZRfdC-0000Dj-TB for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Aug 2015 14:04:43 +0200 Original-Received: from localhost ([::1]:50000 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZRZPI-0004CX-IM for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Aug 2015 01:25:56 -0400 Original-Path: usenet.stanford.edu!news.kjsl.com!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.datemas.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 13 Injection-Info: mx02.eternal-september.org; posting-host="ef6c052bdb54eaf7713ec08fb861923d"; logging-data="5123"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/HjQMToy7apZNA72aAubNb" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:8wN4efUFecjIIq+TWkQYNsyhBLo= sha1:9ZJSY/LLIQyYhDN/Wqp0/AdAaM8= Original-Xref: usenet.stanford.edu gnu.emacs.help:214379 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:106666 Archived-At: > I think this is what's recommended, but I can't tell you why > `display-graphic-p' is supposed to be better here. ;-) The "better" is mostly for Elisp packages. One of the reasons is that it takes an argument, so it can check whether a given frame is graphical or is a tty (after all, a single Emacs session can have both). The other is that window-system can have value `pc' when running in the FreeDOS port, and that port does not offer graphics mode. In the use case of the OP, it probably just doesn't matter. Stefan