unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Emacs crashed trying to connect to X display
@ 2007-09-08 15:24 Chris Moore
  2007-09-08 15:50 ` David Kastrup
  0 siblings, 1 reply; 2+ messages in thread
From: Chris Moore @ 2007-09-08 15:24 UTC (permalink / raw)
  To: emacs-pretest-bug


[-- Attachment #1.1: Type: text/plain, Size: 1096 bytes --]

I usually run Emacs inside GNOME, but today I'm ssh'ed into the box, running
Emacs in an ssh terminal window.

I ran "svn ci" to commit a bunch of changes to subversion, and Emacs
crashed, leaving the terminal looking like this:


chris@trpaslik:~/project$ svn ci
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified Bot (1164,0)   (Shell:run)----Sat Sep  8 17:19
0.14-------------------------------------------------------------------------------
(emacs:30371): Gtk-WARNING **: cannot open display: :0.0
                                                        chris@trpaslik:~$

I have the 'EDITOR' environment variable set to point to a shell script
which does:

/usr/local/bin/emacsclient "$@" ||
/usr/local/bin/emacs       "$@"

and I also have "DISPLAY=:0.0" in the environment (which I probably
shouldn't).

But when I run "emacs" in the ssh session, it runs the console version of
Emacs, which is what I was expecting from the emacsclient program as well.
If it can't connect to an X server, it just crashes Emacs - that can't be
the desired behaviour, can it?

Chris.

[-- Attachment #1.2: Type: text/html, Size: 1730 bytes --]

[-- Attachment #2: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Emacs crashed trying to connect to X display
  2007-09-08 15:24 Emacs crashed trying to connect to X display Chris Moore
@ 2007-09-08 15:50 ` David Kastrup
  0 siblings, 0 replies; 2+ messages in thread
From: David Kastrup @ 2007-09-08 15:50 UTC (permalink / raw)
  To: Chris Moore; +Cc: emacs-pretest-bug

"Chris Moore" <dooglus@gmail.com> writes:

> I usually run Emacs inside GNOME, but today I'm ssh'ed into the box, running
> Emacs in an ssh terminal window.
>
> (emacs:30371): Gtk-WARNING **: cannot open display: :0.0
>                                                         chris@trpaslik:~$
>
> I have the 'EDITOR' environment variable set to point to a shell script which
> does:
>
> /usr/local/bin/emacsclient "$@" ||
> /usr/local/bin/emacs       "$@"
>
> and I also have "DISPLAY=:0.0" in the environment (which I probably
> shouldn't).

This is crazy.  You know that ssh will forward an X session when
called with ssh -X?  Of course, you must not warp the DISPLAY variable
to a nonsensical value if you want to make use of that.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-09-08 15:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-08 15:24 Emacs crashed trying to connect to X display Chris Moore
2007-09-08 15:50 ` David Kastrup

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).