From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul K Newsgroups: gmane.emacs.help Subject: tramp convinient way to cut path part in minibuffer Date: Sun, 8 Mar 2015 16:01:31 +0100 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1425826906 28340 80.91.229.3 (8 Mar 2015 15:01:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 8 Mar 2015 15:01:46 +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 Mar 08 16:01:45 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 1YUci9-0002ra-AW for geh-help-gnu-emacs@m.gmane.org; Sun, 08 Mar 2015 16:01:45 +0100 Original-Received: from localhost ([::1]:39255 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUci8-0002Lm-Ge for geh-help-gnu-emacs@m.gmane.org; Sun, 08 Mar 2015 11:01:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43598) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUchx-0002LW-9R for help-gnu-emacs@gnu.org; Sun, 08 Mar 2015 11:01:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YUchw-00049g-Fd for help-gnu-emacs@gnu.org; Sun, 08 Mar 2015 11:01:33 -0400 Original-Received: from mail-qc0-x235.google.com ([2607:f8b0:400d:c01::235]:38272) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YUchw-00049Y-Bm for help-gnu-emacs@gnu.org; Sun, 08 Mar 2015 11:01:32 -0400 Original-Received: by qcvx3 with SMTP id x3so61234397qcv.5 for ; Sun, 08 Mar 2015 08:01:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=L686p96AeH3BC0tIyhzYyaKLvFuOVGkTgNU0Ap2EDdM=; b=NBfOIbsp0kzR7doxGXlJuWahSZdLCdiYS2IezOsFIDgaVwA2311onr/bWI5NKCtblQ IbYvF1tdzv3e/0K40gcXlvJHBTSJOn8A+qqamCGrnzALbhxs0CBYcLUIazlyvMXpHvI+ YQBamdKxzfyF/xfQ0f0SDgD/Y0f0CgSJQpkJkziHCg4qKg3TnSCbCgA/cU4HuTApMJFv 2axg/UDccjtQKraM5P0mK1kgFBWztC6LS5ZL3/VndAW8uobarjStYAD4GZWcKLwixf2s KT8VtTmTjlzXCgWR2m02miKHjP5Y6dAQ+BuY25uIK9LPVkzOY+8EcEIBY3Hcm/nKCeBz UPcg== X-Received: by 10.55.31.83 with SMTP id f80mr1691204qkf.57.1425826891644; Sun, 08 Mar 2015 08:01:31 -0700 (PDT) Original-Received: by 10.140.104.45 with HTTP; Sun, 8 Mar 2015 08:01:31 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400d:c01::235 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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:103067 Archived-At: Hallo People I'm going to open /scp:remote.linux.box:/etc/passwd. Currently opened file is /scp:remote.linux.box:/var/log/messages, thus pressing C-x C-f, produces following path to minibuffer: /scp:remote.linux.box:/var/log/messages Cursor is at the end of line of course. Is there any key combination to move cursor `here`, so that I could cut /etc/passwd and then put /var/log/messages path? /scp:remote.linux.box:/var/log/messages ^ here. Probably the perfect solution would be to force C-a to move cursor `here` and another C-a to move cursor to beginning of line. I'm opening many files on the same remote.linux.box, thus such solution would be very helpful. regards