From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: s1ohy@waifu.club Newsgroups: gmane.emacs.help Subject: Re: When using rectangle-mark-mode in an editable dired buffer, how can I edit the region? Date: Tue, 06 Dec 2016 22:26:08 +0000 Message-ID: <61e09a1f5e3aa9edbc2560bd9a0563d9@waifu.club> References: <20161205233431659351400@bob.proulx.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1481063214 27876 195.159.176.226 (6 Dec 2016 22:26:54 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 6 Dec 2016 22:26:54 +0000 (UTC) User-Agent: Roundcube Webmail/1.2.0 Cc: help-gnu-emacs@gnu.org To: s1ohy@waifu.club Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 06 23:26:49 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 1cEOCH-0006Ls-2G for geh-help-gnu-emacs@m.gmane.org; Tue, 06 Dec 2016 23:26:49 +0100 Original-Received: from localhost ([::1]:35200 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cEOCK-0003Tk-VK for geh-help-gnu-emacs@m.gmane.org; Tue, 06 Dec 2016 17:26:52 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46590) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cEOBr-0003PY-HX for help-gnu-emacs@gnu.org; Tue, 06 Dec 2016 17:26:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cEOBn-0006SE-Fa for help-gnu-emacs@gnu.org; Tue, 06 Dec 2016 17:26:23 -0500 Original-Received: from cock.li ([185.100.85.212]:41330) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cEOBn-0006RW-6D for help-gnu-emacs@gnu.org; Tue, 06 Dec 2016 17:26:19 -0500 In-Reply-To: <20161205233431659351400@bob.proulx.com> X-Sender: s1ohy@waifu.club X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 185.100.85.212 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:111887 Archived-At: On 2016-12-06 07:25, Bob Proulx wrote: > C-x C-q > C-x ( > C-SPC > C-e M-b C-b > M-x upcase-initials-region RET > C-n > C-x ) > C-x e > e > e > e > ... > C-x C-q Thanks for responding, Bob. Your suggestion of keyboard macros was great, as I was unaware I could combine them with non-interactive commands and mark-region. Unfortunately, your suggestion, quoted 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. But, to make your suggestion work I can use `dired-next-line`, which places the cursor at the the beginning of the next filename. C-x C-q Place cursor at the beginning filename F3 C-SPC C-e M-b C-b M-x upcase-initials-region RET dired-next-line F4 F4 F4 ... C-x C-s Of course, I can call it with `M-1 M-4 F4`