GNU bug report logs - #66006
30.0.50; (setf (buffer-string) "text") doesn't respect narrowing

Previous Next

Package: emacs;

Reported by: Sebastián Monía <code <at> sebasmonia.com>

Date: Fri, 15 Sep 2023 17:13:01 UTC

Severity: normal

Tags: wontfix

Found in version 30.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Sebastián Monía <code <at> sebasmonia.com>,
 Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 66006 <at> debbugs.gnu.org
Subject: Re: bug#66006: 30.0.50;
 (setf (buffer-string) "text") doesn't respect narrowing
Date: Fri, 15 Sep 2023 21:37:21 +0300
> From: Sebastián Monía <code <at> sebasmonia.com>
> Date: Fri, 15 Sep 2023 10:35:41 -0600
> 
> 
> (buffer-string) behaves different in a call vs setf-ing.
> In the former case, it respects narrowing, but when using setf, it
> replaces the entire buffer. To be honest, I don't know if it should set
> only the narrowed region (from a correctness point of view, maybe it is
> expected for setf to do the whole thing). But if it won't, the
> difference in behaviour should probably be documented.

Adding Stefan.




This bug report was last modified 1 year and 252 days ago.

Previous Next


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