From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: wgreenhouse-sGOZH3hwPm2sTnJN9+BGXg@public.gmane.org (W. Greenhouse) Newsgroups: gmane.emacs.help Subject: Re: Server issues Date: Thu, 21 Mar 2013 22:01:08 +0000 Message-ID: <87zjxw2z17.fsf@riseup.net> References: <5149bbcc$0$43145$862e30e2@ngroups.net> <514ab9ab$0$37943$862e30e2@ngroups.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1363903299 6391 80.91.229.3 (21 Mar 2013 22:01:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Mar 2013 22:01:39 +0000 (UTC) To: help-gnu-emacs-mXXj517/zsQ@public.gmane.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Thu Mar 21 23:02:05 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UInYh-0002Z2-LA for geh-help-gnu-emacs@m.gmane.org; Thu, 21 Mar 2013 23:02:03 +0100 Original-Received: from localhost ([::1]:50125 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UInYK-0002B1-DK for geh-help-gnu-emacs@m.gmane.org; Thu, 21 Mar 2013 18:01:40 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60488) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UInY7-0002A0-Mx for help-gnu-emacs-mXXj517/zsQ@public.gmane.org; Thu, 21 Mar 2013 18:01:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UInY5-0000XZ-4d for help-gnu-emacs-mXXj517/zsQ@public.gmane.org; Thu, 21 Mar 2013 18:01:27 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:56544) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UInY4-0000XC-UC for help-gnu-emacs-mXXj517/zsQ@public.gmane.org; Thu, 21 Mar 2013 18:01:25 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UInYQ-0002OJ-EV for help-gnu-emacs-mXXj517/zsQ@public.gmane.org; Thu, 21 Mar 2013 23:01:46 +0100 Original-Received: from torland1-this.is.a.tor.exit.server.torland.is ([37.130.227.133]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 21 Mar 2013 23:01:46 +0100 Original-Received: from wgreenhouse by torland1-this.is.a.tor.exit.server.torland.is with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 21 Mar 2013 23:01:46 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 46 Original-X-Complaints-To: usenet-dbVV3NMTNubNLxjTenLetw@public.gmane.org X-Gmane-NNTP-Posting-Host: torland1-this.is.a.tor.exit.server.torland.is X-Archive: encrypt User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) Cancel-Lock: sha1:Tlj8o2EpITvcaax6YtBwHNRki0Q= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs-mXXj517/zsQ@public.gmane.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Xref: news.gmane.org gmane.emacs.help:89642 Archived-At: Hi Miguel, > I was secretly hoping someone would say that as it means it can be fixed > without having to look (too deeply) under the hood! I would imagine > something in my emacs conf files are loading is causing this issue > perhaps by interfering with the code in server.el . > > Do you (or anyone else!) know how I could go about diagnosing this? > > Many thanks for you reply. > > > * BTW, also using GNU Emacs 24.2.1 Where in the process of raising an emacsclient and using TRAMP to access a file via su do things go wrong for you? Is Emacs itself still able to access /su::/path type filenames, or is that broken, too? M-x toggle-debug-on-error does work for diagnosing many server errors, so try that at first. Next, the usual litany of the Emacs process of elimination: try connecting to an Emacs server which was initialized with emacs -q (skipping your own init file), and if that still has trouble, escalate to emacs -Q (skipping the distro/site-wide init files too). FWIW, some of the most irritating and hard-to-diagnose emacsclient invocation problems I've had have had to do with the behavior of the *shell* rather than of Emacs (i.e. the shell interpreting things when we want it to just pass the args to Emacs). So experiment with different shell quoting strategies too, especially if you are calling this inside a shell script. I noticed also in this list that you were writing some code to warn on the modeline when su-editing a file; I don't see how that might've contributed to your troubles, but maybe... Sorry this is such general advice, but I can't think of much else that's special about the su backend to Tramp. Best, Will -- BOFH excuse #289: Interference between the keyboard and the chair.