From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dante Catalfamo Newsgroups: gmane.emacs.help Subject: Re: Adding String to Beginning of Lines Date: Thu, 12 Nov 2020 14:01:08 -0500 Message-ID: <063ba029-53b3-4880-c650-77ff47013b38@lambda.cx> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1254"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 12 20:02:06 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 1kdHrB-0000Du-Ry for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 12 Nov 2020 20:02:05 +0100 Original-Received: from localhost ([::1]:33186 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kdHrA-0006lA-T0 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 12 Nov 2020 14:02:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54266) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kdHqN-0006ky-NM for help-gnu-emacs@gnu.org; Thu, 12 Nov 2020 14:01:15 -0500 Original-Received: from wnew1-smtp.messagingengine.com ([64.147.123.26]:38307) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kdHqL-0006ei-Me for help-gnu-emacs@gnu.org; Thu, 12 Nov 2020 14:01:15 -0500 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailnew.west.internal (Postfix) with ESMTP id 4597BD0F for ; Thu, 12 Nov 2020 14:01:10 -0500 (EST) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Thu, 12 Nov 2020 14:01:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lambda.cx; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=j RYaOrRxa/ZmZx9XUnb0Fr45vWIhRQb8fXadxrDJ4CM=; b=SGVtAHZ+6OJUuklFJ UWgz3dn6MjShoBvOOZaDYIZ26dxpEMG1Wrq5ZgTfZuSBg0PyedTKyx6fy5fyas3s iGjuBKLDMyrsNCLA0mVlJzCL3wd6I5sFeJZNYvHvrBd8eUjffeGbscJ9u+IPE6jP 6W99n0FC/Z1lPqlDw3nBd1nvW9yW8D2BeXoGqhzu7f3zvbLO5qRgoI44+h+DKnlb pEnmIFcSmA8AOVY+nEgS1jJcmkEuAdAFHCxYNCf/PaZLKyUJCG9bFLdEFdp3yGmp AdTHzkaMvzEIQDxxUvi1ZxdFfGhJsxPtp/z57uK5OFjksQ6y1HdjMCja1RewTWV4 V0KHQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=jRYaOrRxa/ZmZx9XUnb0Fr45vWIhRQb8fXadxrDJ4 CM=; b=G/M6Yu6DV3JJqxDwOG7NQSeWJPY/n9IjlY4Hb2qARcDg1hHSuQeUsw1Cb RvWkdByL+eoE2vwTsdGHlG2QlTHeTzulyvzm5nI3Hp+SHHJl6IdvdIsMHwqC1ti4 Cw6J8APQKlEybEyv9ujCN4cEPxCwFOpQdurpKpEs7I22oZ3VbuENkxIUfNTKkUdu ABEe1skY/Qc7jEFb4i0NGG/NgrsNEycyOVt1pSjSbahj4vHJxB5SeDjSq/rC4eMX eKo6V1r7woe3midVkhYjdVUgrdTZaUBdRyiPHgAj6SE+7kCujgHe9K2oX+TZsgPi C2X/P9/wHnzGbzid6WvSFHlvZ45wg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedruddvfedgleegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtke ertddtfeejnecuhfhrohhmpeffrghnthgvucevrghtrghlfhgrmhhouceouggrnhhtvges lhgrmhgsuggrrdgtgieqnecuggftrfgrthhtvghrnhepueejvedutdektdekvdevjeekle fghfejueeggfeihfegiefhjeefudelieetgfejnecukfhppedujeegrdduudegrddvudef rdehudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe gurghnthgvsehlrghmsggurgdrtgig X-ME-Proxy: Original-Received: from [192.168.0.105] (cpe688f2e087823-cm688f2e087820.cpe.net.cable.rogers.com [174.114.213.51]) by mail.messagingengine.com (Postfix) with ESMTPA id 0C0B53068739 for ; Thu, 12 Nov 2020 14:01:09 -0500 (EST) In-Reply-To: Content-Language: en-CA Received-SPF: pass client-ip=64.147.123.26; envelope-from=dante@lambda.cx; helo=wnew1-smtp.messagingengine.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/12 14:01:10 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-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:125252 Archived-At: The way I would do this would be to make a zero character wide rectangle selection that goes down the left side of the paragraph, and then use string-rectangle to insert the characters. (starting all the way at the left side) C-x SPC (move down to the bottom of the area you want to add the lines to) C-t ;; + RET On 11/10/20 5:43 AM, Christopher Dimech wrote: > > I have a paragraph and want to add a string to the beginning of each line after selecting > the paragraph region. > > GNU is an operating system that is free software—that is, it respects users' freedom. The > GNU operating system consists of GNU packages (programs specifically released by the GNU > Project) as well as free software released by third parties. The development of GNU made > it possible to use a computer without software that would trample your freedom. > > Example, passing ';; + ' as argument to a function to get > > ;; + GNU is an operating system that is free software—that is, it respects users' freedom. The > ;; + GNU operating system consists of GNU packages (programs specifically released by the GNU > ;; + Project) as well as free software released by third parties. The development of GNU made > ;; + it possible to use a computer without software that would trample your freedom. > > >