bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#31888: 27.0.50; Segmentation fault in replace-buffer-contents


From: João Távora
Subject: bug#31888: 27.0.50; Segmentation fault in replace-buffer-contents
Date: Fri, 29 Jun 2018 20:04:58 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Eli Zaretskii <eliz@gnu.org>
>> Cc: acm@muc.de, 31888@debbugs.gnu.org, joaotavora@gmail.com, 
>> k.michal@zoho.com
>> 
>> Is that worth the hassle?  The caller asked to replace the entire
>> buffer by something else, why should they expect after-change hooks to
>> be run on something other than the entire buffer?
>
> s/entire buffer/entire accessible portion of buffer/g

FWIW I use this on potentially small sections of the buffer, by first
narrowing down to it.  OTOH I have no need for modification hooks.  And
if I did, I'd probably use a simpler region-replacing strategy for every
region besides the one where point is.

João







reply via email to

[Prev in Thread] Current Thread [Next in Thread]