GNU bug report logs - #71525
30.0.50; Spin in delete-region/interval_deletion_adjustment

Previous Next

Package: emacs;

Reported by: Steven Allen <steven <at> stebalien.com>

Date: Wed, 12 Jun 2024 19:22:01 UTC

Severity: normal

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: Dmitry Gutov <dmitry <at> gutov.dev>
To: Eli Zaretskii <eliz <at> gnu.org>, Steven Allen <steven <at> stebalien.com>
Cc: jporterbugs <at> gmail.com, 71525 <at> debbugs.gnu.org
Subject: bug#71525: 30.0.50; Spin in delete-region/interval_deletion_adjustment Spin in delete-region/interval_deletion_adjustment)
Date: Fri, 14 Jun 2024 02:41:15 +0300
[Message part 1 (text/plain, inline)]
On 14/06/2024 00:47, Dmitry Gutov wrote:
> The thing is, decode_coding_c_string already calls 
> adjust_markers_for_insert through
> 
>    decode_coding_object->decode_coding->produce_chars->insert_from_gap
> 
> And the extra call moves the markers too far.
> 
> Unfortunately, it's called with BEFORE_MARKERS=nil, and the above call 
> chain makes it difficult to pass through the extra argument.

We can do it through the coding_system structure, though.

See attached. It fixes the freezes in my testing.

It seems like the least invasive possible fix, but better suggestions 
welcome.
[dst_before_markers.diff (text/x-patch, attachment)]

This bug report was last modified 344 days ago.

Previous Next


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