From: "Sebastien Vauban" <sva-news-D0wtAvR13HarG/iDocfnWg@public.gmane.org>
To: help-gnu-emacs-mXXj517/zsQ@public.gmane.org
Subject: Using string-rectangle more than once
Date: Thu, 07 Nov 2013 16:36:48 +0100 [thread overview]
Message-ID: <86habomdf3.fsf@somewhere.org> (raw)
Hello,
Since not so long, I've discovered `string-rectangle' to replace rectangle
contents (each line of it) with some string.
That works perfectly the first time, but I have problem for the second one...
Suppose I want to replace `-' by `+' in the following list:
--8<---------------cut here---------------start------------->8---
- First
- Second
--8<---------------cut here---------------end--------------->8---
I call `C-x r t' on the right region (for example, a colon of two-chars wide),
and type `+ ' as the replacement string.
--8<---------------cut here---------------start------------->8---
+ First
+ Second
--8<---------------cut here---------------end--------------->8---
Now, I want to replace the `+' and the following space by nothing: I want to
remove the "list" aspect.
I do select the same region, call `C-x r t', and have to type the empty string.
But pressing RET selects the default, that is the last replacement string...
which is not empty.
How to pass an empty string, then?
Best regards,
Seb
--
Sebastien Vauban
next reply other threads:[~2013-11-07 15:36 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-07 15:36 Sebastien Vauban [this message]
2013-11-07 15:48 ` Using string-rectangle more than once Michael Heerdegen
[not found] ` <mailman.5495.1383839347.10748.help-gnu-emacs@gnu.org>
2013-11-07 15:58 ` Sebastien Vauban
2013-11-07 16:36 ` Michael Heerdegen
2013-11-07 16:45 ` Michael Heerdegen
2013-11-07 17:21 ` Peter Dyballa
[not found] ` <mailman.5501.1383842734.10748.help-gnu-emacs@gnu.org>
[not found] ` <mailman.5501.1383842734.10748.help-gnu-emacs-mXXj517/zsQ@public.gmane.org>
2013-11-12 20:34 ` Sebastien Vauban
2013-11-13 0:56 ` Stefan Monnier
2013-11-14 7:55 ` Suvayu Ali
2013-11-14 20:06 ` Stefan Monnier
2013-11-14 23:53 ` Suvayu Ali
2013-11-15 13:23 ` Stefan Monnier
2013-11-16 13:28 ` Suvayu Ali
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86habomdf3.fsf@somewhere.org \
--to=sva-news-d0wtavr13harg/idocfnwg@public.gmane.org \
--cc=help-gnu-emacs-mXXj517/zsQ@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).