From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Dimech Newsgroups: gmane.emacs.help Subject: Re: Adding String to Beginning of Lines Date: Tue, 10 Nov 2020 12:29:45 +0100 Message-ID: References: <20201110111024.GA15992@tuxteam.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5627"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: tomas@tuxteam.de Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 10 12:48:14 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 1kcS8D-0001NM-Vx for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 10 Nov 2020 12:48:13 +0100 Original-Received: from localhost ([::1]:37836 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kcS8C-0007sQ-Qw for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 10 Nov 2020 06:48:13 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48614) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kcRqc-00083R-OL for help-gnu-emacs@gnu.org; Tue, 10 Nov 2020 06:30:02 -0500 Original-Received: from mout.gmx.net ([212.227.15.18]:33203) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kcRqZ-0001mk-5R for help-gnu-emacs@gnu.org; Tue, 10 Nov 2020 06:30:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1605007785; bh=s70/VUV101SE1QEH/WJJdI2Zobfh3PhH9WZMn9S/zMc=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=HE7pSMlMk4bSihc74ULtm5fTS53a/DdexNjceyYOW0FWk2hYlM77sPiaKv6jDLT9k 2EW7WNHk0cXja0cQ9RNkK7g0wnUOhvrCjKYXrAavNS4GH8qmKqT7cdPqTH/uuGBlbu gBPHT1pOBVOROKleyV7WzN76HnI0UcEoGlu8mcGY= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs07.server.lan [172.19.170.175]) (via HTTP); Tue, 10 Nov 2020 12:29:45 +0100 Importance: normal Sensitivity: Normal In-Reply-To: <20201110111024.GA15992@tuxteam.de> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:KbsMXrseU7JCZfOnHTn8f9zDDmQaVnVEAwgEkLi3E/NuD9KO5Ga8DwkDnwvvEHUNnAqSv WM1J/9uEpeMaCHwTvrhWD7dofXWHnjjqDzCjZzdndu+PQSsZ8+yEIc0i+4aX+v9hV8TOA7NarnEK 4LCLg0OSissi7GLGYFDR7zHvJdl6iEPvCe7S/8oy0yrCNhukELMVRzQekZfKVQ/yg+ZgLyCKjWWe Sc17xMwFhdG8r/Xj387sKcqt9S+F/s69nM5DHYB8xmXS5RZ+7wjLwkcG4rxtJlCip83xEXzAMSsT Rc= X-UI-Out-Filterresults: notjunk:1;V03:K0:PiAiAWz3Qic=:5WW5vQR8ICZcpclTVMtlHQ Kr46DvzukdOWv/JebJ4bihZyuUGyxhqdpuEjOW8kE6rxMESQBUtYwNlGsorA/pjS7u3Xpjyxj SkRFDLJn1TVQx3b05Yf6vD69FeCU69D2N/9vZ9uooNzYZJsI7LoXRcUYYKIIgBMKiqMp3Ya49 bNSuxzRlFaoa3jtJb/9KJo+D/0F8BYZpnh/e5lcI1X4iavDYFf1h3aM9eFktXCh6+cDWYZqQU kPeWu8c3RO9ReDZszF0By1T7/yjbM0K1R+ua4GMwVVpWIRRqir8DlMbGW7Ccwu+wTZO9M9Qy9 xR/Kj/K5AIcQ7sCzVnlJ7sZJvvKC69vlUJxXOknMal31kf2tdibvQFrw1Nek0CRSSKI38qEL9 QhTQuYlNcLeL7wRkIqkuXE1a1ZlpS27QsY1PmQ6jaMT9aLi+88ZRIcIMkUsSCpYV3sC0SOXO/ OiQ9OOcTfAL+kK9ppcpRJ/Q9ny6JT0IAYRwRYwEm2OXN3yhX3Xvm8VjO2kqycAGcBSpKmPCnr WRzIr6cVZyh/kOJpE2UUjW1bh1hY65ktBi71mfI6OvwyFeHUhk5+2g1SIhMLive7KbfLDUG7R guuX/cPGkw6r0= Received-SPF: pass client-ip=212.227.15.18; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/10 06:29:51 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=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:125179 Archived-At: Have selected a region, and called the command=2E However the region remained unchanged=2E=20 > Sent: Tuesday, November 10, 2020 at 12:10 PM > From: tomas@tuxteam=2Ede > To: help-gnu-emacs@gnu=2Eorg > Subject: Re: Adding String to Beginning of Lines > > On Tue, Nov 10, 2020 at 11:43:45AM +0100, Christopher Dimech wrote: > >=20 > > I have a paragraph and want to add a string to the beginning of each l= ine after selecting > > the paragraph region=2E > >=20 > > GNU is an operating system that is free software=E2=80=94that is, it r= espects users' freedom=2E The > > GNU operating system consists of GNU packages (programs specifically r= eleased by the GNU=20 > > Project) as well as free software released by third parties=2E The dev= elopment of GNU made > > it possible to use a computer without software that would trample your= freedom=2E > >=20 > > Example, passing ';; + ' as argument to a function to get > >=20 > > ;; + GNU is an operating system that is free software=E2=80=94that is,= it respects users' freedom=2E The > > ;; + GNU operating system consists of GNU packages (programs specifica= lly released by the GNU=20 > > ;; + Project) as well as free software released by third parties=2E Th= e development of GNU made > > ;; + it possible to use a computer without software that would trample= your freedom=2E >=20 > - Select the region > - M-x query-replace-regexp "^" =E2=86=92 ";; + " > - Profit! >=20 > Wrapping that up in a function is left as an exercise to the > reader :-) >=20 > Cheers > -- t >