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


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Sebastián Monía <code <at> sebasmonia.com>, 66006 <at> debbugs.gnu.org
Subject: bug#66006: 30.0.50; (setf (buffer-string) "text") doesn't respect narrowing
Date: Fri, 15 Sep 2023 15:00:08 -0400
>> (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.

I think we don't want to fix this because:

    (make-obsolete-generalized-variable 'buffer-string nil "29.1")


-- 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.