[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
23.0.50; mtty emacsclient confused by dumb terminal & DISPLAY
From: |
Trent W. Buck |
Subject: |
23.0.50; mtty emacsclient confused by dumb terminal & DISPLAY |
Date: |
Sat, 26 Jan 2008 16:51:35 +1100 |
User-agent: |
Mutt/1.5.17 (2007-11-01) |
[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
signature.asc
Description: Digital signature
- 23.0.50; mtty emacsclient confused by dumb terminal & DISPLAY,
Trent W. Buck <=