On 31/10/2025 07:16, Страхиња Радић wrote:
Дана 25/10/29 11:22AM, [email protected] написа:
> *  the replacement of all occurances of ^pat on a line by replace-regexp. For
>    example, (replace-regexp "^#" "") will delete every occurance of
>    "#" in the line "#############################". This is unexpected
>    (at least to me) and is not the behaviour of emacs.

The mg(1) manpage states:

>      replace-regexp
> Replace regular expression globally without individual > prompting.

so, it behaves as if the 'g' modifier was used eg. in sed(1).


Hi Страхиња Радић,

I can see that what mg(1) does now is a legitimate interpretation of the regexp 
replacement. However, I'd really prefer it to behave as Emacs does, to avoid 
surprise.

Best Regards,
Mark
--
Mark Willson | 07579 784676 | [email protected]


Reply via email to