From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: bvraghav@iitk.ac.in (B.V. Raghav) Newsgroups: gmane.emacs.help Subject: Re: When using rectangle-mark-mode in an editable dired buffer, how can I edit the region? Date: Wed, 07 Dec 2016 10:22:15 +0530 Organization: Indian Institute of Technology, Kanpur Message-ID: <87eg1kwdc0.fsf@ram.bvr.dp.lan> References: <20161205233431659351400@bob.proulx.com> <61e09a1f5e3aa9edbc2560bd9a0563d9@waifu.club> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1481086386 2916 195.159.176.226 (7 Dec 2016 04:53:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 7 Dec 2016 04:53:06 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 07 05:52:57 2016 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 1cEUDw-0007iA-NM for geh-help-gnu-emacs@m.gmane.org; Wed, 07 Dec 2016 05:52:56 +0100 Original-Received: from localhost ([::1]:36383 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cEUE0-00012w-Ld for geh-help-gnu-emacs@m.gmane.org; Tue, 06 Dec 2016 23:53:00 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60661) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cEUDW-00012f-O0 for help-gnu-emacs@gnu.org; Tue, 06 Dec 2016 23:52:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cEUDR-0004RL-TB for help-gnu-emacs@gnu.org; Tue, 06 Dec 2016 23:52:30 -0500 Original-Received: from mail3.iitk.ac.in ([202.3.77.190]:51082) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cEUDQ-0004Px-IL for help-gnu-emacs@gnu.org; Tue, 06 Dec 2016 23:52:25 -0500 Original-Received: from smtp.cc.iitk.ac.in (smtp.cc.iitk.ac.in [172.31.1.22]) by mail3.iitk.ac.in (Postfix) with ESMTP id 180F410000AD for ; Wed, 7 Dec 2016 10:22:15 +0530 (IST) Original-Received: from ram.bvr.dp.lan.iitk.ac.in (unknown [172.20.240.26]) (Authenticated sender: bvraghav) by smtp.cc.iitk.ac.in (Postfix) with ESMTPA id 140B14F for ; Wed, 7 Dec 2016 10:22:15 +0530 (IST) In-Reply-To: <61e09a1f5e3aa9edbc2560bd9a0563d9@waifu.club> (s1ohy@waifu.club's message of "Tue, 06 Dec 2016 22:26:08 +0000") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x [fuzzy] X-Received-From: 202.3.77.190 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:111890 Archived-At: s1ohy@waifu.club writes: > above, only works if I manually position the cursor at the beginning > of the filename, thus not being able to quickly repeat it with F4 or > call it with a numeric argument. This IMHO, is a common use case, and though you already have a solution, I might have had a different view point, with an arbitrary tabular data. So I suggest having a look at: | (set-goal-column ARG) | It is bound to C-x C-n. | Set the current horizontal position as a goal for C-n and C-p. | Those commands will move to this position in the line moved to | rather than trying to keep the same horizontal position. | With a non-nil argument ARG, clears out the goal column | so that C-n and C-p resume vertical motion. | The goal column is stored in the variable `goal-column'. As mentioned, you may clear the goal column with `C-u C-x C-n' My two cents. -- (B.V. Raghav)