From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.help Subject: Re: Emacs insert empty string Date: Thu, 24 Mar 2011 12:24:00 +0100 Organization: Organization?!? Message-ID: <87vcz8rcbz.fsf@fencepost.gnu.org> References: <5908567d-3d1a-4f09-a4cb-e2c3ee9557be@k7g2000yqj.googlegroups.com> <2dab985c-15ad-442e-ae53-dfc578cc7814@b22g2000prb.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1300967025 4221 80.91.229.12 (24 Mar 2011 11:43:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 24 Mar 2011 11:43:45 +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 12:43:40 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 1Q2iwx-0005jN-SH for geh-help-gnu-emacs@m.gmane.org; Thu, 24 Mar 2011 12:43:36 +0100 Original-Received: from localhost ([127.0.0.1]:52019 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q2iwx-0001BM-7N for geh-help-gnu-emacs@m.gmane.org; Thu, 24 Mar 2011 07:43:35 -0400 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!kanaga.switch.ch!news-zh.switch.ch!switch.ch!news.belwue.de!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:RGA4x2DbGv59uSYqR3cZHRn6fbI= Original-Lines: 32 Original-NNTP-Posting-Date: 24 Mar 2011 12:24:00 CET Original-NNTP-Posting-Host: 013deccc.newsspool1.arcor-online.net Original-X-Trace: DXC=P1J:]n^^8O4D]ncZ]`hZ; 1ic==]BZ:af>4Fo<]lROoR1<`=YMgDjhg2gN7FBo; CXg:QF2\gH8m9H9^9QSCVg3dO6PXAdj3Ee7^8WMC9mdV4?@0S3@IJBPjBS7 Original-X-Complaints-To: usenet-abuse@arcor.de Original-Xref: usenet.stanford.edu gnu.emacs.help:186259 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:80392 Archived-At: Peter Dyballa writes: > Am 24.03.2011 um 11:25 schrieb Kenneth Brun Nielsen: > >> 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) > > > The documentation, in my interpretation and understanding, does not > tell it would work. Because the rectangle functions *insert* and don't > *overwrite* (maybe they would do when you activate > overwrite-mode). Huh? C-x r t runs the command string-rectangle, which is an interactive autoloaded Lisp function in `rect.el'. It is bound to C-x r t. (string-rectangle START END STRING) Replace rectangle contents with STRING on each line. The length of STRING need not be the same as the rectangle width. Called from a program, takes three args; START, END and STRING. What about "replace rectangle contents" do you not understand? -- David Kastrup