From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: dieter@duenenhof-wilhelm.de (H. Dieter Wilhelm) Newsgroups: gmane.emacs.help Subject: Re: Adding String to Beginning of Lines Date: Tue, 10 Nov 2020 19:47:29 +0100 Message-ID: <86wnythwvy.fsf@duenenhof-wilhelm.de> References: <875z6de8vp.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15608"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 10 19:48:07 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kcYgY-0003wd-8b for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 10 Nov 2020 19:48:06 +0100 Original-Received: from localhost ([::1]:52328 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kcYgX-0000CF-AP for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 10 Nov 2020 13:48:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42460) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kcYg4-0000C6-Ua for help-gnu-emacs@gnu.org; Tue, 10 Nov 2020 13:47:36 -0500 Original-Received: from mout.kundenserver.de ([212.227.126.130]:60635) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kcYg3-0007xz-1i for help-gnu-emacs@gnu.org; Tue, 10 Nov 2020 13:47:36 -0500 Original-Received: from ping ([92.116.180.109]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MHGTI-1kY8qA2zDc-00DIFN; Tue, 10 Nov 2020 19:47:30 +0100 In-Reply-To: <875z6de8vp.fsf@web.de> (Michael Heerdegen's message of "Tue, 10 Nov 2020 12:42:02 +0100") X-Provags-ID: V03:K1:/6olDkiw3hoK94oZnSIy10sN/sqwd3q24AhmAiaUgek10cMNFwJ 3Yvt4HynaeFAyekESbHvUvKgPEdnA4ZPJKozWQqno0O+5tkFvUWKWuP4WEoW0Hsg/T5MgMF 8XqHsX44aQxzFtVMIBCUkKb+x8q5IeSO/FaGFV6CXdvKHNusBYQOgFhYQPKOIwHaaBxwqWk 3+QTWDm69SwjKpsfZ/MOA== X-UI-Out-Filterresults: notjunk:1;V03:K0:m6/Zl4gvpZg=:6OO9UscJ0xpQsab7/Dnvvc 3ixHpCB7fvtQ0z9ETzUfb09FXhbfg69jAA/5472Kzl94zQmTJ770AWeQoKUwxysNTmcAgeFqa aVokP3vL30fxCsBDypMdxvQVxk9HlhvMStF/u4sH4tIzAuooLZxEvafDWqffKbrARqXF0gkek Lis25pPVCpahQJc/nvHEhcq4QZw4Xcpdcd37gXYVImcuSGFjqCdG0f63pqBYsTJm87UuhbC7A +hhEHHtMOII0dSGuPC4UhiIzZuKcZpzkzN9zfgejxMQ5Q/FC+ALAqqXZx2oLuLXQ4TNGQb6Tl yMlhboprJjSxZNv2E+44cZsK+5eMeznyPDhvEobcNYzguyZ4eCSoXqrYsIadNyEwueGqTVYRR Xzdg1g6o337ZmYCoX72ETv2mscgRofd290yyLDkryKSvj0rVfjwMkdmMB6N1JMaP0poiKED31 LnzI8LYlDQ== Received-SPF: none client-ip=212.227.126.130; envelope-from=dieter@duenenhof-wilhelm.de; helo=mout.kundenserver.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/10 13:47:31 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:125200 Archived-At: Michael Heerdegen writes: > Christopher Dimech writes: > >> I have a paragraph and want to add a string to the beginning of each >> line after selecting the paragraph region. > > Alternatively, you can use `string-rectangle' when you select an > appropriate rectangle (of width zero in this case) instead of the > paragraph. Excellent suggestion, in short: Select a region and C-x r t and you're even getting visual feedback what is replaced ! :-) Dieter -- Best wishes H. Dieter Wilhelm Zwingenberg, Germany