From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: "Sebastián Monía" <code@sebasmonia.com>, 66006@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 [thread overview]
Message-ID: <jwv34zfw9dd.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <83h6nvjna6.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 15 Sep 2023 21:37:21 +0300")
>> (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
next prev parent reply other threads:[~2023-09-15 19:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-15 16:35 bug#66006: 30.0.50; (setf (buffer-string) "text") doesn't respect narrowing Sebastián Monía
2023-09-15 18:37 ` Eli Zaretskii
2023-09-15 19:00 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2023-09-15 20:01 ` Sebastián Monía
2023-09-16 5:21 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwv34zfw9dd.fsf-monnier+emacs@gnu.org \
--to=bug-gnu-emacs@gnu.org \
--cc=66006@debbugs.gnu.org \
--cc=code@sebasmonia.com \
--cc=eliz@gnu.org \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).