[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
replace-region.patch
Description: Text Data
- bug#76313: New function `replace-region`,
Stefan Monnier <=
- bug#76313: New function `replace-region`, Eli Zaretskii, 2025/02/16
- bug#76313: New function `replace-region`, Stefan Monnier, 2025/02/16
- bug#76313: New function `replace-region`, Eli Zaretskii, 2025/02/16
- bug#76313: New function `replace-region`, Stefan Monnier, 2025/02/16
- bug#76313: New function `replace-region`, Eli Zaretskii, 2025/02/17
- bug#76313: New function `replace-region`, Stefan Monnier, 2025/02/17
- bug#76313: New function `replace-region`, Eli Zaretskii, 2025/02/17
- bug#76313: New function `replace-region`, Stefan Monnier, 2025/02/17
- bug#76313: New function `replace-region`, Stefan Monnier, 2025/02/17
- bug#76313: New function `replace-region`, Eli Zaretskii, 2025/02/18