unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Using string-rectangle more than once
@ 2013-11-07 15:36 Sebastien Vauban
  2013-11-07 15:48 ` Michael Heerdegen
       [not found] ` <mailman.5495.1383839347.10748.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 13+ messages in thread
From: Sebastien Vauban @ 2013-11-07 15:36 UTC (permalink / raw)
  To: help-gnu-emacs-mXXj517/zsQ

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


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2013-11-16 13:28 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-07 15:36 Using string-rectangle more than once Sebastien Vauban
2013-11-07 15:48 ` 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

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).