From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: peder@news.klingenberg.no (Peder O. Klingenberg) Newsgroups: gmane.emacs.bugs Subject: bug#26591: 26.0.50; Using local emacs+tramp with remote emacsclient Date: Fri, 28 Apr 2017 13:29:19 +0200 Organization: Persons in a Position to Know, inc. Message-ID: References: <83k264na0s.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1493393538 7813 195.159.176.226 (28 Apr 2017 15:32:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 28 Apr 2017 15:32:18 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: 26591@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 28 17:32:15 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d47sV-0001w9-7D for geb-bug-gnu-emacs@m.gmane.org; Fri, 28 Apr 2017 17:32:15 +0200 Original-Received: from localhost ([::1]:37601 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d47sa-0001ca-O8 for geb-bug-gnu-emacs@m.gmane.org; Fri, 28 Apr 2017 11:32:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33637) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d47sL-0001WI-Ay for bug-gnu-emacs@gnu.org; Fri, 28 Apr 2017 11:32:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d47sI-0008UJ-5j for bug-gnu-emacs@gnu.org; Fri, 28 Apr 2017 11:32:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46673) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d47sI-0008UD-2R for bug-gnu-emacs@gnu.org; Fri, 28 Apr 2017 11:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d47sH-0000ME-Sb for bug-gnu-emacs@gnu.org; Fri, 28 Apr 2017 11:32:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: peder@news.klingenberg.no (Peder O. Klingenberg) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 28 Apr 2017 15:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26591 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14933934691294 (code B ref -1); Fri, 28 Apr 2017 15:32:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Apr 2017 15:31:09 +0000 Original-Received: from localhost ([127.0.0.1]:44867 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d47rR-0000Ko-7Z for submit@debbugs.gnu.org; Fri, 28 Apr 2017 11:31:09 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38932) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d44G8-0002hM-8x for submit@debbugs.gnu.org; Fri, 28 Apr 2017 07:40:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d44G2-0000gA-6J for submit@debbugs.gnu.org; Fri, 28 Apr 2017 07:40:19 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:35549) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d44G2-0000g4-2t for submit@debbugs.gnu.org; Fri, 28 Apr 2017 07:40:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58128) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d44G1-0001SD-0Z for bug-gnu-emacs@gnu.org; Fri, 28 Apr 2017 07:40:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d44Fw-0000eV-3t for bug-gnu-emacs@gnu.org; Fri, 28 Apr 2017 07:40:17 -0400 Original-Received: from [195.159.176.226] (port=54228 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d44Fv-0000dy-Te for bug-gnu-emacs@gnu.org; Fri, 28 Apr 2017 07:40:12 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1d44Fo-0004mp-8f for bug-gnu-emacs@gnu.org; Fri, 28 Apr 2017 13:40:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 33 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:gIpuuy6b31SHabcqOV/3nyGwOvE= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Fri, 28 Apr 2017 11:31:07 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:132079 Archived-At: On Fri, Apr 28 2017 at 12:42, Eli Zaretskii wrote: > Also, I don't see "/home" used anywhere in the example, so something > is missing here. The shared file system is just the easiest way for emacs and emacsclient to both see the same server file, containing port number and security cookie. The default placement of that file is in ~/.emacs.d/server, and a shared /home makes sure it's reachable from both server and client. I can see how that would be unclear. I'll improve it, and fix the other things you pointed out. > Why the test for argv[i] being an absolute file name? And if relative > file names cannot be supported, I think emacsclient should emit an > error message rather than silently ignoring --tramp. The previous hunk of the patch adds the tramp prefix to the -dir argument, which ends up setting `default-directory' for the server buffers. That makes relative filenames work. With an absolute filename, if we don't prepend the tramp prefix, the `default-directory' is ignored serverside and emacs tries to open a local-to-emacs absolute file. So we need to prepend the tramp formula to tell emacs that the absolute filename is remote. It would probably do no harm to include the tramp prefix on non-absolute filenames as well, but it's not necessary, due to the previous -dir. ...Peder... -- I wish a new life awaited _me_ in some off-world colony.