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: Michael Heerdegen
Subject: Re: Adding String to Beginning of Lines
Date: Tue, 10 Nov 2020 13:16:04 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Christopher Dimech <dimech@gmx.com> writes:

> Have used the following
>
> (defun compfx ()
>   (interactive "r")
>   (query-replace-regexp "^" ";; + "))

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

Do you want to be asked interactively whether to replace each "match"?
If not, we want to use something non-interactive instead of
`query-replace-regexp'.


Michael.




reply via email to

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