From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: ams@gnu.org (Alfred M. Szmidt) Newsgroups: gmane.emacs.devel Subject: Re: Modernize frame-title-format: "%b - GNU Emacs" Date: Thu, 27 Aug 2020 13:23:50 -0400 Message-ID: References: <35661e93-ed43-47a1-95fc-5638848b0c33@default> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26249"; mail-complaints-to="usenet@ciao.gmane.io" Cc: stefan@marxist.se, drew.adams@oracle.com, emacs-devel@gnu.org To: thibaut.verron@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Aug 27 19:24:21 2020 Return-path: Envelope-to: ged-emacs-devel@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 1kBLdM-0006i2-JN for ged-emacs-devel@m.gmane-mx.org; Thu, 27 Aug 2020 19:24:20 +0200 Original-Received: from localhost ([::1]:44258 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kBLdL-0000iZ-M4 for ged-emacs-devel@m.gmane-mx.org; Thu, 27 Aug 2020 13:24:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57184) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kBLct-0000B4-6v for emacs-devel@gnu.org; Thu, 27 Aug 2020 13:23:51 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:57536) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kBLcs-0000PE-PD; Thu, 27 Aug 2020 13:23:50 -0400 Original-Received: from ams by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1kBLcs-0000u9-4T; Thu, 27 Aug 2020 13:23:50 -0400 In-reply-to: (message from Thibaut Verron on Thu, 27 Aug 2020 18:42:58 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:254313 Archived-At: Is it possible to detect between remote and non-remote? For buffers associated to files, there is file-remote-p. For others, stackoverflow suggests using (file-remote-p default-directory). I don't know how those behave if you use tramp to connect to a server which then connects to the local host, or whether one using such connections would not want that information to be as clearly visible as a remote host. That assumes running emacs locally, what is being discussed is if you are running Emacs remotley, i.e. over a remote X11 connection (e.g, ssh -X).