Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package emacs for openSUSE:Factory checked in at 2022-01-14 23:12:25 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/emacs (Old) and /work/SRC/openSUSE:Factory/.emacs.new.1892 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "emacs" Fri Jan 14 23:12:25 2022 rev:162 rq:945990 version:27.2 Changes: -------- --- /work/SRC/openSUSE:Factory/emacs/emacs.changes 2021-12-08 22:08:27.878848752 +0100 +++ /work/SRC/openSUSE:Factory/.emacs.new.1892/emacs.changes 2022-01-14 23:12:44.574612539 +0100 @@ -1,0 +2,7 @@ +Thu Jan 13 07:25:28 UTC 2022 - Dr. Werner Fink <wer...@suse.de> + +- Skip patch boo1180353-6d8144a2.patch for emacs 25.3 as already + part of emacs 27.2: Was fix for boo#1180353 that was a possible + segmentation fault in case of stack overflow of etags + +------------------------------------------------------------------- @@ -26,0 +34,6 @@ + +------------------------------------------------------------------- +Thu Sep 9 10:16:16 UTC 2021 - Dr. Werner Fink <wer...@suse.de> + +- Add patch boo1178942-bedb3cb6.patch to avoid that emacs hang in + isearch (boo#1178942) New: ---- boo1178942-bedb3cb6.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ emacs.spec ++++++ --- /var/tmp/diff_new_pack.FtwlTD/_old 2022-01-14 23:12:45.598613199 +0100 +++ /var/tmp/diff_new_pack.FtwlTD/_new 2022-01-14 23:12:45.602613201 +0100 @@ -1,7 +1,7 @@ # # spec file for package emacs # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -181,6 +181,8 @@ # This patch allows vte based terminals like gnome-terminal to get 24bit colors # without setting a custom terminfo, honouring COLORTERM=truecolor Patch30: emacs-27.2-COLORTERM-24bit.patch +# PATCH-FIX-UPSTREAM boo#1178942 -- emacs hang in isearch +Patch31: boo1178942-bedb3cb6.patch Patch39: sigsegv-stack.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -299,6 +301,7 @@ %patch26 -p0 -b .fmt %patch29 -p0 -b .xauth %patch30 -p1 -b .colorterm +%patch31 -p0 -b .isearch %patch39 -p1 %patch -p0 -b .0 %if %{without tex4pdf} ++++++ boo1178942-bedb3cb6.patch ++++++ >From bedb3cb66541fd4dd35cf15261c6d99f132e7d2c Mon Sep 17 00:00:00 2001 From: Eli Zaretskii <e...@gnu.org> Date: Wed, 15 Apr 2020 14:28:21 +0300 Subject: [PATCH] Avoid infloop in redisplay when wrap-prefix is too wide * src/xdisp.c (move_it_to): Avoid infloop due to wrap-prefix that is wide enough to leave no space to display even the first character of the continuation line. (Bug#40632) --- src/xdisp.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) --- src/xdisp.c +++ src/xdisp.c 2021-09-09 10:14:45.107931449 +0000 @@ -9727,9 +9727,13 @@ move_it_to (struct it *it, ptrdiff_t to_ int line_height, line_start_x = 0, reached = 0; int max_current_x = 0; void *backup_data = NULL; + ptrdiff_t orig_charpos = -1; + enum it_method orig_method = NUM_IT_METHODS; for (;;) { + orig_charpos = IT_CHARPOS (*it); + orig_method = it->method; if (op & MOVE_TO_VPOS) { /* If no TO_CHARPOS and no TO_X specified, stop at the @@ -9963,7 +9967,17 @@ move_it_to (struct it *it, ptrdiff_t to_ } } else - it->continuation_lines_width += it->current_x; + { + /* Make sure we do advance, otherwise we might infloop. + This could happen when the first display element is + wider than the window, or if we have a wrap-prefix + that doesn't leave enough space after it to display + even a single character. */ + if (IT_CHARPOS (*it) == orig_charpos + && it->method == orig_method) + set_iterator_to_next (it, false); + it->continuation_lines_width += it->current_x; + } break; default: