From: Deniz Dogan <deniz.a.m.dogan@gmail.com>
To: Kenneth Brun Nielsen <kenneth.brun.nielsen@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Emacs insert empty string
Date: Thu, 24 Mar 2011 11:50:25 +0100 [thread overview]
Message-ID: <AANLkTim=azqFL_00hj5hc0hbk6h=OAJMR2YqCO=hMGbX@mail.gmail.com> (raw)
In-Reply-To: <2dab985c-15ad-442e-ae53-dfc578cc7814@b22g2000prb.googlegroups.com>
2011/3/24 Kenneth Brun Nielsen <kenneth.brun.nielsen@gmail.com>:
> On Mar 24, 10:49 am, Peter Dyballa <Peter_Dyba...@Web.DE> wrote:
>> Am 24.03.2011 um 02:46 schrieb Kenneth Brun Nielsen:
>>
>> > How can I insert an empty string?
>>
>> What is "an empty string?" Can you exactly and comprehensively
>> describe this? Is it defined in Wikipedia? And give us a few examples?
>
> An empty string is the thing between the quotes here: "". My geek
> level is not high enough to rephrase it further :)
>
> An example is this command file consisting of 100001 commands:
>
> ---
> command 1
> command 2
> ..
> command 100000
> command 100001
> ---
> Now I want to outcomment the first 1000 commands. I select the 1000
> lines and use 'CTRL-x rt' for rectangle mode, and insert a "*" in
> front of the first 1000 lines. Now my file looks like this:
> ---
> *command 1
> *command 2
> ..
> *command 1000
> command 1001
> ..
> command 100000
> command 100001
> ---
> Now I "regret" outcommenting the commands 600-800. Again I select the
> lines/columns of interest and use the 'CTRL-x rt' command and remove
> the "*" column (i.e. replace the first column with an empty string)
> for that specific lines, targetting a file like this:
> ---
> *command 1
> ..
> *command 599
> command 600
> ..
> command 800
> *command 801
> ..
> *command 1000
> command 1001
> ..
> command 100000
> command 100001
> ---
>
> However this last step doesn't work as intended. Because I can not
> replace with an empty string. Simply pressing "Enter" will choose the
> default string, which is the equivalent to the previously inserted
> string "*".
>
This is where you should use C-x r d instead. It will delete the
rectangle you have selected and is the equivalent of replacing its
contents with the empty string.
--
Deniz Dogan
next prev parent reply other threads:[~2011-03-24 10:50 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-24 1:46 Emacs insert empty string Kenneth Brun Nielsen
2011-03-24 4:47 ` PJ Weisberg
2011-03-24 9:49 ` Peter Dyballa
2011-03-24 10:38 ` Deniz Dogan
[not found] ` <mailman.1.1300942046.7157.help-gnu-emacs@gnu.org>
2011-03-24 10:11 ` Kenneth Brun Nielsen
2011-03-24 10:42 ` Deniz Dogan
[not found] ` <mailman.20.1300963398.32450.help-gnu-emacs@gnu.org>
2011-03-24 10:56 ` Kenneth Brun Nielsen
2011-03-24 11:50 ` Le Wang
2011-03-24 10:55 ` Kenneth Brun Nielsen
[not found] ` <mailman.11.1300960156.32450.help-gnu-emacs@gnu.org>
2011-03-24 10:25 ` Kenneth Brun Nielsen
2011-03-24 10:50 ` Deniz Dogan [this message]
[not found] ` <mailman.0.1300963850.24982.help-gnu-emacs@gnu.org>
2011-03-24 10:59 ` Kenneth Brun Nielsen
2011-03-24 11:09 ` Peter Dyballa
[not found] ` <mailman.2.1300964974.24982.help-gnu-emacs@gnu.org>
2011-03-24 11:11 ` Kenneth Brun Nielsen
2011-03-24 11:12 ` David Kastrup
2011-03-24 11:18 ` Peter Dyballa
[not found] ` <mailman.3.1300965524.24982.help-gnu-emacs@gnu.org>
2011-03-24 11:24 ` David Kastrup
2011-03-24 13:21 ` Peter Dyballa
2011-03-24 13:44 ` David Kastrup
2011-03-24 15:18 ` Peter Dyballa
2011-03-24 11:53 ` Tassilo Horn
[not found] ` <mailman.6.1300967618.24982.help-gnu-emacs@gnu.org>
2011-03-24 12:02 ` Kenneth Brun Nielsen
2011-03-24 21:27 ` Ilya Zakharevich
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='AANLkTim=azqFL_00hj5hc0hbk6h=OAJMR2YqCO=hMGbX@mail.gmail.com' \
--to=deniz.a.m.dogan@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=kenneth.brun.nielsen@gmail.com \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.