help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding String to Beginning of Lines


From: Christopher Dimech
Subject: Re: Adding String to Beginning of Lines
Date: Tue, 10 Nov 2020 13:03:50 +0100

Have used the following

(defun compfx ()
  (interactive "r")
  (query-replace-regexp "^" ";; + "))



> Sent: Tuesday, November 10, 2020 at 12:54 PM
> From: "Michael Heerdegen" <michael_heerdegen@web.de>
> To: help-gnu-emacs@gnu.org
> Subject: Re: Adding String to Beginning of Lines
>
> Christopher Dimech <dimech@gmx.com> writes:
>
> > Have selected a region, and called the command.  However the region
> > remained unchanged.
>
> No, that should definitely work.  What exactly have you typed?  You have
> left out the "" string markers?  Don't type them in the prompts.
>
> Michael.
>
>
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]