From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Trent W. Buck" Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: 23.0.50; mtty emacsclient confused by dumb terminal & DISPLAY Date: Sat, 26 Jan 2008 16:51:35 +1100 Message-ID: <20080126055132.GA3751@Clio.twb.ath.cx> Reply-To: emacs-pretest-bug@gnu.org, rfrancoise@debian.org, "Trent W. Buck" NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1639305096==" X-Trace: ger.gmane.org 1201326727 22234 80.91.229.12 (26 Jan 2008 05:52:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 26 Jan 2008 05:52:07 +0000 (UTC) Cc: "Trent W. Buck" , rfrancoise@debian.org To: emacs-pretest-bug@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 26 06:52:25 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JIdxm-0002Sz-Cq for ged-emacs-devel@m.gmane.org; Sat, 26 Jan 2008 06:52:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JIdxL-00031c-IV for ged-emacs-devel@m.gmane.org; Sat, 26 Jan 2008 00:51:55 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JIdxF-00031W-VC for emacs-devel@gnu.org; Sat, 26 Jan 2008 00:51:50 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JIdxA-00030c-MJ for emacs-devel@gnu.org; Sat, 26 Jan 2008 00:51:48 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JIdxA-00030Y-HC for emacs-devel@gnu.org; Sat, 26 Jan 2008 00:51:44 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JIdxA-000590-5v for emacs-devel@gnu.org; Sat, 26 Jan 2008 00:51:44 -0500 Original-Received: from mx10.gnu.org ([199.232.76.166]) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JIdx9-00020o-QY for emacs-pretest-bug@gnu.org; Sat, 26 Jan 2008 00:51:43 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JIdx6-00057x-OK for emacs-pretest-bug@gnu.org; Sat, 26 Jan 2008 00:51:43 -0500 Original-Received: from ipmail01.adl6.internode.on.net ([203.16.214.146]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JIdx6-00056n-5Q for emacs-pretest-bug@gnu.org; Sat, 26 Jan 2008 00:51:40 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CACJYmkd5LOnP/2dsb2JhbACBWKwZ X-IronPort-AV: E=Sophos;i="4.25,253,1199626200"; d="asc'?scan'208";a="29395744" Original-Received: from ppp121-44-233-207.lns2.mel4.internode.on.net (HELO Clio.twb.ath.cx) ([121.44.233.207]) by ipmail01.adl6.internode.on.net with ESMTP; 26 Jan 2008 16:21:35 +1030 User-Agent: Mutt/1.5.17 (2007-11-01) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:87544 gmane.emacs.pretest.bugs:20754 Archived-At: --===============1639305096== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jRHKVT23PllUwdXP" Content-Disposition: inline --jRHKVT23PllUwdXP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline [Please CC me replies, I am not subscribed to the list.] To summarize: if - Emacs is running in a tty - $DISPLAY is set, and - emacsclient is run in a dumb terminal (M-x shell) emacsclient will create a new X frame, EVEN WITHOUT the -c switch. I do not want this. Within M-x shell, I want emacsclient to open a buffer in the current frame and window, as it does under Emacs 22. ## Why? Because I'm connecting remotely to a Screen session that was ## started under X. New X frames will appear on the original X ## display -- which could be a five hour drive away from the keyboard ## and display I'm actually sitting in front of *now*. Furthermore, X ## might not even be running anymore -- my Screen sessions persist ## across my X sessions. Invoking emacsclient as "env -u DISPLAY emacsclient foo" does not help. It seems that (setenv "DISPLAY" nil) causes emacsclient to behave as desired. However, I do not want to unset $DISPLAY for my whole Emacs session because then I have to re-enable it to launch X processes to e.g. view images with display(1). In GNU Emacs 23.0.50.1 (i486-pc-linux-gnu, GTK+ Version 2.12.5) of 2008-01-21 on elegiac, modified by Debian (emacs-snapshot package, version 1:20080120-1) configured using `configure '--build' 'i486-linux-gnu' '--host' 'i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/23.0.50/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.0.50/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.0.50/leim' '--with-x=yes' '--with-x-toolkit=gtk' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: C value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_AU.utf8 locale-coding-system: utf-8 default-enable-multibyte-characters: t Major mode: Post Minor modes in effect: xterm-mouse-mode: t shell-dirtrack-mode: t icomplete-mode: t partial-completion-mode: t show-paren-mode: t delete-selection-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t --jRHKVT23PllUwdXP Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHmspkLpef9iTtxAYRAkreAJ9tCGGtkDGN9yUhu9hZI25lAsO3xgCePD7E sktCMBuSda31Zo/bA72adZA= =wf2s -----END PGP SIGNATURE----- --jRHKVT23PllUwdXP-- --===============1639305096== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --===============1639305096==--