From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#57207: 29.0.50; Fontification is slow after e7b5912b23 (Improvements to long lines handling) Date: Thu, 18 Aug 2022 15:50:45 +0200 Message-ID: <87wnb5wthm.fsf@gnus.org> References: <87bksmx1j1.fsf@localhost> <83lerqkd2u.fsf@gnu.org> <87o7wl4tsv.fsf@localhost> <87r11h90zw.fsf@gnus.org> <8335dxiu6m.fsf@gnu.org> <87y1vnjgmn.fsf@gnus.org> <83y1vncbq5.fsf@gnu.org> <87r11fgi7h.fsf@gnus.org> <83sflvc85y.fsf@gnu.org> <87h729902w.fsf@gnus.org> <83edxdbs96.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36543"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 57207@debbugs.gnu.org, yantar92@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 18 15:51:10 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oOfvR-0009Hs-6P for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 18 Aug 2022 15:51:09 +0200 Original-Received: from localhost ([::1]:52520 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oOfvQ-0003c0-49 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 18 Aug 2022 09:51:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33280) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oOfvK-0003bs-4A for bug-gnu-emacs@gnu.org; Thu, 18 Aug 2022 09:51:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36296) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oOfvJ-00028D-SR for bug-gnu-emacs@gnu.org; Thu, 18 Aug 2022 09:51:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oOfvJ-0006yU-Ot for bug-gnu-emacs@gnu.org; Thu, 18 Aug 2022 09:51:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 18 Aug 2022 13:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57207 X-GNU-PR-Package: emacs Original-Received: via spool by 57207-submit@debbugs.gnu.org id=B57207.166083065926802 (code B ref 57207); Thu, 18 Aug 2022 13:51:01 +0000 Original-Received: (at 57207) by debbugs.gnu.org; 18 Aug 2022 13:50:59 +0000 Original-Received: from localhost ([127.0.0.1]:54278 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oOfvG-0006yE-Uy for submit@debbugs.gnu.org; Thu, 18 Aug 2022 09:50:59 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:57118) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oOfvE-0006xw-3H for 57207@debbugs.gnu.org; Thu, 18 Aug 2022 09:50:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=6uh1SS7GDP4JA+CPeU16FRjhLt+wL2z+GbqVLv70kLw=; b=FjufjvmoB319lRTJjTytqrGVV8 Zyu+ifdiZqkp7/H3QnO2A1v7zrQhQIv7WpLfWUmmU9Vnkn1MCzd9HCPs1dBcRK0KUvr+WWUvfleWG vRCtPlrDc5e7hr2zVaUbi/ndGNANuVtO7T30dUEdNgZiZDXT9485+kqQp4eytv+3rJrQ=; Original-Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oOfv4-00083M-5f; Thu, 18 Aug 2022 15:50:48 +0200 In-Reply-To: <83edxdbs96.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 18 Aug 2022 16:23:01 +0300") X-Now-Playing: Sindre Bjerga's _Being for the Benefit of =?UTF-8?Q?Kaf=C3=A9_?= =?UTF-8?Q?H=C3=A6rverk!=5F:?= "1500 Seconds Over Tokyo" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:240154 Archived-At: Eli Zaretskii writes: > Can you attach a debugger to this session, and produce a C and Lisp > backtrace from Fnarrow_to_region and Fwiden when you do the above? Setting a breakpoint on Fnarrow_to_region doesn't trigger -- the buffer flips back and forth to [Narrow] anyway. Fwiden is triggered all the time, but as far as I can see, never in a relevant code path -- but I've made some progress in determining just what triggers this behaviour: I need to have a process connection going. Without processes being forked, the flipping back and forth doesn't happen. A couple examples of the calls to Fwiden: 0x0000555555759f8c in Fwiden () at editfns.c:2672 #1 Fwiden () at editfns.c:2659 #2 0x00005555556ff1ed in Ferase_buffer () at buffer.c:2318 #3 0x0000555555655f3d in code_conversion_save (with_work_buf=with_work_buf@entry=true, multibyte=) at coding.c:7875 #4 0x0000555555656b23 in decode_coding_object (coding=coding@entry=0x5555573bedf0, src_object=src_object@entry=XIL(0), from=from@entry=0, from_byte=from_byte@entry=0, to=to@entry=57, to_byte=to_byte@entry=57, dst_object=) at coding.c:8129 #5 0x00005555557b6752 in read_and_dispose_of_process_output (coding=0x5555573bedf0, nbytes=57, chars=0x7fffffffbe90 "PING 192.168.12.94 (192.168.12.94) 56(84) bytes of data.\n", p=) at process.c:6253 #6 read_process_output (proc=proc@entry=XIL(0x5555579e538d), channel=channel@entry=17) at process.c:6205 #7 0x00005555557bde76 in wait_reading_process_output (time_limit=time_limit@entry=30, nsecs=nsecs@entry=0, read_kbd=read_kbd@entry=-1, do_display=do_display@entry=true, wait_for_cell=wait_for_cell@entry=XIL(0), wait_proc=wait_proc@entry=0x0, just_wait_proc=) at process.c:5889 #8 0x00005555555b8694 in sit_for Thread 1 "emacs" hit Breakpoint 4, Fwiden () at editfns.c:2669 2669 { (gdb) bt #0 Fwiden () at editfns.c:2669 #1 0x00005555557b160e in exec_byte_code (fun=, args_template=, nargs=, args=) at bytecode.c:1489 #2 0x0000555555768ee3 in Ffuncall (nargs=1, args=0x7ffff092e050) at eval.c:3014 #3 0x000055555576abb8 in Fapply (nargs=2, args=0x7ffff092e050) at eval.c:2638 #4 0x00005555557b0c03 in exec_byte_code (fun=, args_template=, nargs=, args=) at bytecode.c:809 #5 0x0000555555768ee3 in Ffuncall (nargs=nargs@entry=2, args=args@entry=0x7fffffffcd10) at eval.c:3014 #6 0x00005555556e2dfe in call1 (arg1=XIL(0x5555572b14f5), fn=XIL(0xf4e0)) at /home/larsi/src/emacs/trunk/src/lisp.h:3239 #7 timer_check_2 (idle_timers=, timers=) at keyboard.c:4697 #8 timer_check () at keyboard.c:4763 #9 0x00005555556e315d in readable_events (flags=flags@entry=1) at keyboard.c:3540 #10 0x00005555556e3328 in get_input_pending (flags=flags@entry=1) at keyboard.c:7338 #11 0x00005555556e33b1 in swallow_events (do_display=do_display@entry=true) at keyboard.c:4499 (gdb) xbacktrace "jit-lock-context-fontify" (0xf092e0a8) 0xf1ff0028 PVEC_COMPILED "apply" (0xf092e050) "timer-event-handler" (0xffffcd18)