From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: tramp convinient way to cut path part in minibuffer Date: Sun, 08 Mar 2015 18:21:19 +0100 Message-ID: <878uf776cw.fsf@gmx.de> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1425835316 5389 80.91.229.3 (8 Mar 2015 17:21:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 8 Mar 2015 17:21:56 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Paul K Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 08 18:21:48 2015 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 1YUetf-0007Fx-85 for geh-help-gnu-emacs@m.gmane.org; Sun, 08 Mar 2015 18:21:47 +0100 Original-Received: from localhost ([::1]:39807 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUete-0005ZI-Nf for geh-help-gnu-emacs@m.gmane.org; Sun, 08 Mar 2015 13:21:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35737) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUetS-0005XA-GG for help-gnu-emacs@gnu.org; Sun, 08 Mar 2015 13:21:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YUetN-0001a2-Ia for help-gnu-emacs@gnu.org; Sun, 08 Mar 2015 13:21:34 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:57625) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUetN-0001Zq-9B for help-gnu-emacs@gnu.org; Sun, 08 Mar 2015 13:21:29 -0400 Original-Received: from detlef.gmx.de ([87.146.56.169]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0MSHax-1Y2zyF2nmN-00TRfO; Sun, 08 Mar 2015 18:21:20 +0100 In-Reply-To: (Paul K.'s message of "Sun, 8 Mar 2015 16:01:31 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-Provags-ID: V03:K0:U6l6PVVnX/rB4k+EWXDLy6Z7T/vEUeeL8cczT+d7PS+NL72d8Tz FCIqawxjiFyu0yiCRLZ0wiXwuz9BO+71XhlD12YuLVETMq9AYqb4nH9zhfAC0Ag+QAQTmYo lcWi/ZjZZBQXxaNl+eYW+VYCE9LUZlPpRvWEtwQm3VgImm/mt95fIH8DQC4taM3MigFaMNY qqtm9NzcjitAJkOlc40QQ== X-UI-Out-Filterresults: notjunk:1; X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.17.21 X-BeenThere: help-gnu-emacs@gnu.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@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:103068 Archived-At: Paul K writes: > Hallo People Hi Paul, > Is there any key combination to move cursor `here`, so that I could cut > /etc/passwd and then put /var/log/messages path? You don't need to cut /etc/passwd. If you enter two slashes "//" at the end of the minibuffer, everything which is part of the local name on the remote machine is ignored. Try this (given you have opened /scp:remote.linux.box:/etc/passwd): C-x C-f /var/log/messages Since C-x C-f gives you the default path "/scp:remote.linux.box:/etc/" in the minibuffer you can just start to type with "/var..." - the "/" of "/var" adds the second slash. Btw, three or more slashes "///" will ignore everything in the minibuffer before them. > regards Best regards, Michael.