From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Greg Detre Newsgroups: gmane.emacs.help Subject: Emacsclient, multiple displays and hanging Date: Sun, 30 Sep 2007 04:09:44 -0000 Organization: http://groups.google.com Message-ID: <1191125384.791451.257590@57g2000hsv.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1191139354 1013 80.91.229.12 (30 Sep 2007 08:02:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 30 Sep 2007 08:02:34 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Sep 30 10:02:30 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Ibtkz-0006NB-QU for geh-help-gnu-emacs@m.gmane.org; Sun, 30 Sep 2007 10:02:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ibtkv-0002IO-U9 for geh-help-gnu-emacs@m.gmane.org; Sun, 30 Sep 2007 04:02:26 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!57g2000hsv.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 30 Original-NNTP-Posting-Host: 208.115.239.41 Original-X-Trace: posting.google.com 1191125384 13724 127.0.0.1 (30 Sep 2007 04:09:44 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 30 Sep 2007 04:09:44 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.7; Google-TR-3) Gecko/20070914 Firefox/2.0.0.7,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: 57g2000hsv.googlegroups.com; posting-host=208.115.239.41; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Original-Xref: shelby.stanford.edu gnu.emacs.help:152483 X-Mailman-Approved-At: Sun, 30 Sep 2007 04:02:02 -0400 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:47992 Archived-At: Dear all, I try to keep the same Emacs session on my laptop running for days and weeks at a time. When I'm at work, I want to be able to use that same emacs session on my desktop. So I sit at my desktop and ssh into my laptop, using emacsclient and 'make-frame-on-display' to bring up a new emacsclient session on my desktop, continuing where I left off. This works phenomenally for me. The problem comes when I remove my laptop. If I forgot to close all the running emacsclient windows on my desktop, then emacs on my laptop hangs (since it's waiting for some kind of X input from the emacsclient running on my desktop). Obviously the solution is to always shut all the emacsclients on my desktop before unplugging my laptop, but I forget about twice a week, and have to kill -9 my laptop emacs :( I've spent a fair while scouring emacsclient tips and documentation, but nobody appears to have mentioned this issue. Does anybody have any ideas for how to fix or work around this? Yours, Greg P.S. I wrote a tiny wrapper for Emacsclient to try and make it friendlier for the use case I outlined above. Feel free to grab it from here: http://gregdetre.blogspot.com/2007/05/my-take-on-emacsclient.html