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

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

bug#76313: New function `replace-region`


From: Stefan Monnier
Subject: bug#76313: New function `replace-region`
Date: Sat, 15 Feb 2025 17:18:15 -0500

Tags: patch

We often need to replace a chunk of buffer text with something else.
It is easy enough to do with `insert` + `delete-region`, but that
has suboptimal behavior w.r.t markers, so rather than let coders
reinvent a slightly-better replacement I propose we add a dedicated
function for it.

So I suggest the patch below.  Comments?  Objections?


        Stefan

Attachment: replace-region.patch
Description: Text Data


reply via email to

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