From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenneth Brun Nielsen Newsgroups: gmane.emacs.help Subject: Re: Emacs insert empty string Date: Thu, 24 Mar 2011 03:25:52 -0700 (PDT) Organization: http://groups.google.com Message-ID: <2dab985c-15ad-442e-ae53-dfc578cc7814@b22g2000prb.googlegroups.com> References: <5908567d-3d1a-4f09-a4cb-e2c3ee9557be@k7g2000yqj.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1300963927 18818 80.91.229.12 (24 Mar 2011 10:52:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 24 Mar 2011 10:52:07 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 24 11:52:03 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q2i91-0006HO-Qm for geh-help-gnu-emacs@m.gmane.org; Thu, 24 Mar 2011 11:52:00 +0100 Original-Received: from localhost ([127.0.0.1]:36575 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q2i2B-0005Bq-5h for geh-help-gnu-emacs@m.gmane.org; Thu, 24 Mar 2011 06:44:55 -0400 Original-Path: usenet.stanford.edu!postnews.google.com!b22g2000prb.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 61 Original-NNTP-Posting-Host: 93.163.37.150 Original-X-Trace: posting.google.com 1300962934 11274 127.0.0.1 (24 Mar 2011 10:35:34 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 24 Mar 2011 10:35:34 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: b22g2000prb.googlegroups.com; posting-host=93.163.37.150; posting-account=Y2qrgwkAAACbbT37NX8gk-aSqpI-3T6p User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.15) Gecko/20110307 Fedora/3.6.15-1.fc13 Firefox/3.6.15,gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:186248 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:80381 Archived-At: On Mar 24, 10:49=A0am, Peter Dyballa 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 =A0 > 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 "*". Does my explanation make sense? /Kenneth