From 0aa8b2f483da11bfd6a6397c56182b5877cb779e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerd=20M=C3=B6llmann?= Date: Mon, 30 Dec 2024 13:41:40 +0100 Subject: [PATCH] Make balancing buffer intervals optional * src/igc.c (buffer_step): Balance intervals only if igc__balance_intervals is true. (syms_of_igc): New DEFVAR_BOOL for igc__balance_intervals. --- src/igc.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/igc.c b/src/igc.c index 39158b38f05..964723ce315 100644 --- a/src/igc.c +++ b/src/igc.c @@ -3697,7 +3697,8 @@ buffer_step (struct igc_buffer_it *it) buffer_it_next (it); struct buffer *b = XBUFFER (buf); compact_buffer (b); - b->text->intervals = balance_intervals (b->text->intervals); + if (igc__balance_intervals) + b->text->intervals = balance_intervals (b->text->intervals); return true; } return false; @@ -5100,4 +5101,8 @@ syms_of_igc (void) don't do something when idle. Negative values and values that are not numbers are handled as if they were the default value. */); Vigc_step_interval = make_fixnum (0); + + DEFVAR_BOOL ("igc--balance-intervals", igc__balance_intervals, + doc: /* Whether to balance buffer intervals when idle. */); + igc__balance_intervals = false; } -- 2.47.1