From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: howto: 2 users interactively edit the same file ? Date: 30 Oct 2005 18:11:47 +1100 Message-ID: <87hdazv5qk.fsf@tiger.rapttech.com.au> References: <1130305405.843028.221790@z14g2000cwz.googlegroups.com> Reply-To: timx@spamto.devnul.com NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1130656437 5381 80.91.229.2 (30 Oct 2005 07:13:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 30 Oct 2005 07:13:57 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Oct 30 08:13:54 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EW7Ni-0004uu-LH for geh-help-gnu-emacs@m.gmane.org; Sun, 30 Oct 2005 08:13:30 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EW7Nh-0002vB-Ks for geh-help-gnu-emacs@m.gmane.org; Sun, 30 Oct 2005 02:13:29 -0500 Original-Newsgroups: gnu.emacs.help Original-Lines: 48 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 Original-NNTP-Posting-Host: ppp4-97.lns1.syd7.internode.on.net Original-X-Trace: duster.adelaide.on.net 1130656308 59.167.4.97 (30 Oct 2005 17:41:48 +1050) Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!news.xtra.co.nz!news-south.connect.com.au!duster.adelaide.on.net!not-for-mail Original-Xref: shelby.stanford.edu gnu.emacs.help:135094 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:30685 Archived-At: "PT" writes: > After years of using Emacs I accidentally discovered M-x > make-frame-on-display which can do what you want if memory serves me > right. > > I don't know if it works on Windows, but it was seamless on Unix. > I don't think this will work. The problem will be getting input. I suspect that as this would involve redirecting a frame from an existing emacs session to a different display, while the second user would be able to see the frame, they would not be able to input data as the application itself is still associated with the input from the user who started the session. It would probably be possible to start emacs and have all its i/o directed to the second display, but then the first user who started emacs won't have any way to input commands/characters etc. I think the root of the problem here is that the OP wants to be able to setup emacs in such a way that two users can be usinig it at the same time - it simply is not designed to achieve this - don't forget emacs doesn't have thread support either, so I doubt you could even modify emacs itself to achieve this. The best you could do wold be - 1. Use CVS as the repository for the files 2. Each user checks out their own copy 3. Each user starts emacs and opens their own copy 4. Each user creates a second frame with a copy of the file they are editing and redirects this frame to the other users display 5. Each user checks in their document once editing has finished. The two users would be editing *different* copies of the file and there would still be a need to merge them together, but CVS will take care of the trivial merging problems. The two users will have to resolve more complex merges. The redirected frame would at least allow each user to see what the other has done - but I suspect the functionality here will be limited as I don't think the second user will be able to manipulate the contents of the window i.e. scroll up/down etc. -- 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!