From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Dani Moncayo Newsgroups: gmane.emacs.help Subject: Saving a remote buffer into a local file Date: Tue, 24 Jan 2017 10:07:42 +0100 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1485269049 24150 195.159.176.226 (24 Jan 2017 14:44:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 24 Jan 2017 14:44:09 +0000 (UTC) To: "help-gnu-emacs@gnu.org list" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 24 15:44:05 2017 Return-path: Envelope-to: geh-help-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 1cW2Jw-0004F5-RN for geh-help-gnu-emacs@m.gmane.org; Tue, 24 Jan 2017 15:43:40 +0100 Original-Received: from localhost ([::1]:50411 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cW2K2-0004If-39 for geh-help-gnu-emacs@m.gmane.org; Tue, 24 Jan 2017 09:43:46 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33107) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cVx4t-00025O-G7 for help-gnu-emacs@gnu.org; Tue, 24 Jan 2017 04:07:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cVx4s-0007kx-JF for help-gnu-emacs@gnu.org; Tue, 24 Jan 2017 04:07:47 -0500 Original-Received: from mail-lf0-x22f.google.com ([2a00:1450:4010:c07::22f]:34443) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cVx4s-0007iv-CZ for help-gnu-emacs@gnu.org; Tue, 24 Jan 2017 04:07:46 -0500 Original-Received: by mail-lf0-x22f.google.com with SMTP id v186so107246039lfa.1 for ; Tue, 24 Jan 2017 01:07:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=71omxK18Yuw7HRyO0Fd8Yp60zRSoQ7F/VuVk/6uaE98=; b=L9P4WvBxOxDdgmKijR1pe5Qx8gnP4lqcXP9FFlJZKsHigeiHhsXFHPtK8uhVN50hCs y6/WPTOREOQ0oS5UGijp7ibyd7fXt761FaUmu1a6uSQHEChwH2V6lXNpnov0kUV2TGi4 l4pQR9bKGEzKhz7hc6B4fUdothx8TVYS/FrwRoeJv02XWPQAbl5pmrnKHNhN+kH0wYeh Kl8ZnNVPH7q6lCvquOr8d4JwwJkBcbyCugXy0PPIpXWpXHzfWsLUxA8QciGfVs8x2Q6w XKmCQ9q1BUZrG9nzv8RcYPUJCWomS3CJ/KIIiq+zjAhOepdH5yA1mVrxmR3v6Kgj/jRa DgSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=71omxK18Yuw7HRyO0Fd8Yp60zRSoQ7F/VuVk/6uaE98=; b=QAGJrX/y5QSuU/4R7PhDypBG6Cni/pm/C6krishKK7DfpOHACqxjn8Z6uo9wVxOy0m Dc8ud0rJfNwGJG4WTYwZIolRCT4dLrmUCY9PLtjQMwFiLmos657ppc4I01vO5IspfVVY MA+7oY4SjAFUeyRSOLYdJ4+XGsMVMTdZLjWG7j7iJMhltnuMkAcox8JaziSpEDs9fSPp pQ4zxaqr4UMg0gE+88tqzkaVoL97SCEw18VfCggLoc5/RxpKdgoHLUToA87R69JPHLqH 3GcPFxcyCN4ZzopqR3Ug8ghbiBpOrTMgtdKuKc+RdrbQTxqJzjXAdCUNoOZNFPQDANrN aiuw== X-Gm-Message-State: AIkVDXJht4DEngP/5+s963t2t4n3U4flTa9M5rn/2muTE1NRNFJGBUBTyvG03TQXMpTlbQS9fDFcJ0FM2MOXZg== X-Received: by 10.25.195.144 with SMTP id t138mr9206548lff.78.1485248863046; Tue, 24 Jan 2017 01:07:43 -0800 (PST) Original-Received: by 10.25.24.194 with HTTP; Tue, 24 Jan 2017 01:07:42 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c07::22f X-Mailman-Approved-At: Tue, 24 Jan 2017 09:35:21 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:112152 Archived-At: Hi all, Yesterday, I wanted to do something with Emacs, and failed. I did a quick search in the Tramp manual and Google, and found no solution. So I'm asking here for help. Suppose I visit some remote file: C-x C-f /ssh:user1@host1:/path1/file1 Now, I want to save the resulting buffer into a local file. Doing: C-x C-w ~/file2 does not work, since in will create a file in the remote host (host1). I think it would be nice to have some special syntax, so that I can specify a path in my local host (and avoid the cumbersome "/localuser@localhost:/localpath"). Is there such a syntax? If not, which do you think is the easiest way to save the buffer in my local host? TIA -- Dani Moncayo