From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: How to get DISPLAY of emacsclient? Date: Mon, 28 Nov 2022 13:19:36 -0500 Message-ID: References: <973588ef-d931-47a0-66d3-f8d70d92bd57@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37251"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org To: Max Nikulin Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Nov 28 19:20:07 2022 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 1ozijd-0009W8-ID for ged-emacs-devel@m.gmane-mx.org; Mon, 28 Nov 2022 19:20:05 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ozijG-0002Cl-DX; Mon, 28 Nov 2022 13:19:42 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ozijF-0002Cb-I5 for emacs-devel@gnu.org; Mon, 28 Nov 2022 13:19:41 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ozijD-000688-Uc for emacs-devel@gnu.org; Mon, 28 Nov 2022 13:19:41 -0500 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id B97811000F8; Mon, 28 Nov 2022 13:19:38 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 5C8CB1000DC; Mon, 28 Nov 2022 13:19:37 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1669659577; bh=jm6v+jFQCLKfROOnH8aTH/61zBgzvyaveUIviXUaXx0=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=JvWiJ4T/ecrClp8upbT9HjB5Z7IVZMp7qptCJdyT3xKHvMxTNk6s3TvoLEdFucNgH QaLj13UmZ3o9kuFLE2nhySiGnuXMNlmf848+FrY1JajcbGdQwjwM+2jpaCJEb9WMF7 HLy9UfbZRHL8udcLi7VeTve6Z3OcGrVzaTsPbvbyxJTwZHocmquR9r/XurFdWhgDWV o8b5MzuIz/ZoUSfVPc0Di57m7VdSMU0cv6xU+25xVZ+aoTwYV4n5erxoLZL7NNUGlf oc/y3iQQVz8Ta/1xh9KRCNrKFm1vKUiE+yUKSMJ26XkDpp8ilFxWolenGxz+pefcPZ BhjGyjmpBfOsQ== Original-Received: from lechazo (lechon.iro.umontreal.ca [132.204.27.242]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 4A5E912097A; Mon, 28 Nov 2022 13:19:37 -0500 (EST) In-Reply-To: (Max Nikulin's message of "Mon, 28 Nov 2022 22:33:22 +0700") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:300679 Archived-At: > Thank you, I have reread emacsclinet code and have realized that I did not > expect such behavior. At first I missed that environment is sent to server > only if -c option is specified and the DISPLAY environment may be > ignored. IIRC there is no good reason other than a historical accident (and the fact that there was no clear need for it) why the environment isn't sent in all cases. IOW, we could change it without breaking backward compatibility, AFAIK. Stefan