help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: howto: 2 users interactively edit the same file ?


From: Tim X
Subject: Re: howto: 2 users interactively edit the same file ?
Date: 03 Nov 2005 17:51:21 +1100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4

Bernard Adrian <bernadrian@free.fr> writes:

> Tim X <timx@spamto.devnul.com> a écrit : 
> 
> >> Do you think :
> >> - emacs can't make a frame on X from a tty ?
> >> - my window manager (ion3) can't accept this feature ? 
> >> - I did a mistake ?
> >
> > Its unlikely it can be done from a tty - I don't think emacs will be
> > loading the X libraries (needed to open an X display).
> 
> I decided to use emacs-multi-tty. Works fine. I had tried it before
> but i was wondering if it was a good idea to remove emacs21. Hoping a
> new version of the official GNU/Emacs will soon allow us to use the
> multi-tty feature.
> 
> What is amazing, on my mind, is that it is possible to launch emacs21
> from a tty on a X window (emacs -display=:0.0), but not possible to
> create a frame on a X window from an emacs21 running in a tty...
> 
> -- 
> Bernard Adrian 
> http://bernadrian.free.fr
> 
The ability of X to redirect i/o to a different display on a different
machine is probably one of the main advantages of X that I've always
loved. We were doing this stuff back in the late 80's when MS still
only had DOS!

I don't know exactly why you can't take advantage of X support when
running under a console tty, but suspect emacs may be being a little
too smart and just doesn't load any X related libraries etc if it
detects your running in console mode.

With respect to your reference to the hassles of getting the xauth
stuff right, there use to be a script which came with the X
distribution called Xon, which used rsh to automate the merging of
xauth cookies. While I've not used this since switching to ssh for
remote access (which handles all the X stuff automatically), you might
want to check to see if that script exists on your system. Its trivial
to modify it to use scp to merge the xauth cookies.

I'm glad to see you got it working. I really didn't think it would be
that easy and expected you would see either really poor performance
due to contention over shared resources etc or weird side
effects. I've obviously under estimated the design of emacs!

Tim

-- 
Tim Cross
The e-mail address on this message is FALSE (obviously!). My real e-mail is
to a company in Australia called rapttech and my login is tcross - if you 
really need to send mail, you should be able to work it out!


reply via email to

[Prev in Thread] Current Thread [Next in Thread]