GNU bug report logs - #71370
30.0.50; Please un-obsolete buffer-substring as a generalized variable

Previous Next

Package: emacs;

Reported by: Adam Porter <adam <at> alphapapa.net>

Date: Wed, 5 Jun 2024 01:34:02 UTC

Severity: wishlist

Found in version 30.0.50

Full log


Message #106 received at 71370 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 71370 <at> debbugs.gnu.org, yantar92 <at> posteo.net, michael_heerdegen <at> web.de,
 stefankangas <at> gmail.com, adam <at> alphapapa.net, acorallo <at> gnu.org,
 spwhitton <at> spwhitton.name
Subject: Re: bug#71370: 30.0.50; Please un-obsolete buffer-substring as a
 generalized variable
Date: Sun, 23 Mar 2025 16:10:15 +0200
> From: Stefan Monnier <monnier <at> iro.umontreal.ca>
> Cc: Stefan Kangas <stefankangas <at> gmail.com>,  michael_heerdegen <at> web.de,
>   71370 <at> debbugs.gnu.org,  yantar92 <at> posteo.net,  adam <at> alphapapa.net,
>   acorallo <at> gnu.org,  spwhitton <at> spwhitton.name
> Date: Sun, 23 Mar 2025 10:00:19 -0400
> 
> > That is not a necessary condition for making buffer-substring a
> > generalized variable.  We could have an internal function, maybe not
> > even exposed to Lisp, to replace the buffer substring.
> 
> We do, exposed to ELisp:
> 
>     (macroexpand '(setf (buffer-substring A B) C))
> =~>
>     (cl--set-buffer-substring A B C)

I meant that we could make the body of cl--set-buffer-substring a
single subr call, not a delete-region followed by insert.  Or even
completely replace cl--set-buffer-substring with that subr.




This bug report was last modified 85 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.