From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 6ATBBpjn9WW0JQAA62LTzQ:P1 (envelope-from ) for ; Sat, 16 Mar 2024 19:40:24 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id 6ATBBpjn9WW0JQAA62LTzQ (envelope-from ) for ; Sat, 16 Mar 2024 19:40:24 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=williamdenton.org header.s=protonmail header.b=X+g985aU; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=williamdenton.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1710614423; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=e66aRcSPwlmaPYsxSCNlABqt3mX/r1orzuRfgcjzqrg=; b=ZesqHBJzfvnaZKITja3Mz6ZG9No4bVGGaEbgVnt/ycSuAk37aJ6X319YJE3mDXcb/3OjSF UDPMfMBw4hAb8ro1iZyy1OsZ7bLyPrSnlEBQTdN+y8YYQ8TS5KrbveroWgZZhDVKNSt2u1 oW+LErtIS4YEA2hBjWdgVD1Oqv77wdHwM/7V1oIksDQHodPbR2yeMTl3wjr9xinkT66dFg T5lvTGSnAUeeQwGg+0un7YDRp2SXw0lg4rpGVU9f1cKp6f5DvlC1bXbkpsrlGYRfxFvUFZ SQvb63uFcJOK6Akh5dXKcE2ilZOXOuZlBDFuBoq5Yzkeq8WKbjkoNUed4H9hXg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=williamdenton.org header.s=protonmail header.b=X+g985aU; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=williamdenton.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1710614423; a=rsa-sha256; cv=none; b=FjYZEKvcgEjYn7UaFVkUF7mJlSv7LMSo4L/5dlA1EdYHO+236kmk67ts5Gd9ecEG6sHY7p tkW+Du2Lwea087jQ5W3U6o8S7JAVTyI6aIzSfpod3Uoivi0lu6NeiEAj+Bm4Iq4u6DMSHP Bjad2+mjttajfafESdirpxSSkfJiCMQnje+vL3IGsJfPPkLMl9c1+R0ErVZGXQCKmIcehd gjTjne/Dq7Gjt5sgfJfiM/wO2DQOPXLIcU7GFpftwgfshMTbDOBv0oANKS09XkxrdC1CJD LbM4yKoehmyUfNc0GdUHgIvBgcmOb/oSN36Si0bbtm0wwtbirj7OzakIru2uvQ== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 554F7120BF for ; Sat, 16 Mar 2024 19:40:23 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rlYwa-0003Wu-By; Sat, 16 Mar 2024 14:39:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rlYwY-0003WU-CU for emacs-orgmode@gnu.org; Sat, 16 Mar 2024 14:39:42 -0400 Received: from mail-4018.proton.ch ([185.70.40.18]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rlYwU-0000kZ-HX for emacs-orgmode@gnu.org; Sat, 16 Mar 2024 14:39:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=williamdenton.org; s=protonmail; t=1710614373; x=1710873573; bh=e66aRcSPwlmaPYsxSCNlABqt3mX/r1orzuRfgcjzqrg=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=X+g985aUAOviIg91ABgt4ahn6+a5Dojv55EDC093UOq1/Qur6f5rVhx4cOGm9GDn9 4R777kHE8D+PxAdcmC82kcF5077Qaept0NF5Fr6w3yu9S8ByywgCLTATLJrAJivG8E Yu7a8CaoZ50XTg4ND2kxL0R2X/0v0ZVb6ctgYHkyrz83gFXxjJziYWvgvmyz6ZNk2D b7x2vksbnYolG6BbyZi9PYMaZfQOcGi00y1p2nMbCmAV04ImFxLEiRCDuZVAshh5qH weUzbJmO/6+0gtdH6HgcMUZh1Ckk2pgnF3vzW3kSkNulpMIhjk9173bMvUrpln7kdt jgw1evvTZg+0w== Date: Sat, 16 Mar 2024 18:39:16 +0000 To: Ihor Radchenko From: William Denton Cc: Bruno Cardoso , Emacs Org mode mailing list Subject: Re: Things got very slow: profiler output Message-ID: In-Reply-To: <875xxmi30r.fsf@localhost> References: <875xxo5miu.fsf@gmail.com> <87a5mzind4.fsf@localhost> <87v85n4fqh.fsf@gmail.com> <87edcbza5f.fsf@localhost> <87sf0r4c7m.fsf@gmail.com> <87edcawo5y.fsf@localhost> <87edcacng3.fsf@gmail.com> <875xxmi30r.fsf@localhost> Feedback-ID: 95794763:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.18; envelope-from=william@williamdenton.org; helo=mail-4018.proton.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -9.67 X-Spam-Score: -9.67 X-Migadu-Queue-Id: 554F7120BF X-Migadu-Scanner: mx13.migadu.com X-TUID: cPw0vBBaDi71 On Saturday, March 16th, 2024 at 11:56, Ihor Radchenko wrote: > > > What if you try the following version of `org-activate-folds'? > > > ... > >=20 > > It makes almost no difference. >=20 > Ok. > Then, what about the latest main? I tried it, and I'm sorry to say all the same problems keep happening. =20 I tried the test you mentioned here: https://lists.gnu.org/archive/html/emacs-orgmode/2024-03/msg00362.html I loaded up my big Org file and moved around a while. I got: Function Name Call Count Elapsed Time Averag= e Time org-fold-core--property-symbol-get-create 33325 0.0058796690 1.764.= ..e-07 I don't know if that's helpful. For me all this is triggered by my work-diary.org file, which has fair bit = of fontification in it: headings, 1200 clock entries, links, and so on. It= had a big clockable at the bottom, which gave me the "Stack overflow in re= gexp matcher" I mentioned last month: https://lists.gnu.org/archive/html/emacs-orgmode/2024-02/msg00347.html I moved the clocktable to another file and the error stopped. But now it's= back. I've been adding to work-diary.org in the meantime, so perhaps the = problem was triggered by going over some limit, and I got it down under tha= t limit, but now it's back over. Bruno's problem is triggered by a large f= ile---but surely many people here have large files in Org, so why aren't th= ey seeing this? Frustrating. I turned on debugging and will the regex overflow stack trace below in case= it's helpful. (This is beyond my debugging skills, so I'm just pasting in= anything I've got now.) To be clear: all these problems happen when I use the latest Org developme= nt source. Using the Org in the current Emacs development tree (I'm on 30.= 0.50), there's no problem. The Emacs source doesn't have the commit I iden= tified earlier as being where my problems started. I'm toggling between ve= rsions by commenting this on or off: (use-package org ;; :pin manual ;; :load-path "/usr/local/src/org-mode/lisp" Ihor and Bruno, might it help if we did a video call and shared screens to = see problems live? My Lisp is limited but I'll help how I can. Thanks, Bill -- William Denton https://www.miskatonic.org/ Librarian, artist and licensed private investigator. Toronto, Canada Debugger entered--Lisp error: (error "Stack overflow in regexp matcher") re-search-forward("^[ \11]*\\(\\\\begin{\\([a-zA-Z0-9\\*]+\\)\\(?:.\\|\n\= \)+?\\\\end{\\2}\\)\\|\\([^$]\\|^\\)\\(\\$[^ \11\15\n,;.$]\\$\\)\\(\\s.\\|\= \s-\\|\\s(\\|\\s)\\|\\s\"\\|'\\|$\\)\\|\\([^$]\\|^\\)\\(\\(\\$\\([^ \11\n,;= .$][^$\n\15]*?\\(\n[^$\n\15]*?\\)\\{0,2\\}[^ \11\n,.$]\\)\\$\\)\\)\\(\\s.\\= |\\s-\\|\\s(\\|\\s)\\|\\s\"\\|'\\|$\\)\\|\\\\(\\(?:.\\|\n\\)*?\\\\)\\|\\\\\= \[\\(?:.\\|\n\\)*?\\\\\\]\\|\\$\\$\\(?:.\\|\n\\)*?\\$\\$" nil t) org-do-latex-and-related(#) font-lock-fontify-keywords-region(522 # = nil) font-lock-default-fontify-region(522 # n= il) font-lock-fontify-region(522 #) #f(compiled-function (beg end) #)(522 #) font-lock-ensure(522 #) org-table-align() org-table-map-tables(org-table-align t) org-mode() set-auto-mode-0(org-mode nil) set-auto-mode--apply-alist((("\\.yml$" . yaml-mode) ("\\.\\(r\\(?:ng\\|ss= \\)\\|s\\(?:ch\\|vg\\)\\|x\\(?:ml\\|s\\(?:d\\|lt\\)\\)\\)\\'" . nxml-mode) = ("\\.[pP][dD][fF]\\'" . pdf-view-mode) ("README\\.md\\'" . gfm-mode) ("\\(?= :\\(?:\\.\\(?:b\\(?:\\(?:abel\\|ower\\)rc\\)\\|json\\(?:ld\\)?\\)\\|compose= r\\.lock\\)\\'\\)" . json-mode) ("\\.hva\\'" . LaTeX-mode) ("\\.tsv\\'" . t= sv-mode) ("\\.[Cc][Ss][Vv]\\'" . csv-mode) ("\\.[Ss][Aa][Ss]\\'" . SAS-mode= ) ("\\.Sout\\'" . S-transcript-mode) ("\\.[Ss]t\\'" . S-transcript-mode) ("= \\.Rd\\'" . Rd-mode) ("DESCRIPTION\\'" . conf-colon-mode) ("/Makevars\\(\\.= win\\)?\\'" . makefile-mode) ("\\.[Rr]out\\'" . ess-r-transcript-mode) ("CI= TATION\\'" . ess-r-mode) ("NAMESPACE\\'" . ess-r-mode) ("\\.[rR]profile\\'"= . ess-r-mode) ("\\.[rR]\\'" . ess-r-mode) ("/R/.*\\.q\\'" . ess-r-mode) ("= \\.[Jj][Aa][Gg]\\'" . ess-jags-mode) ("\\.[Bb][Mm][Dd]\\'" . ess-bugs-mode)= ("\\.[Bb][Oo][Gg]\\'" . ess-bugs-mode) ("\\.[Bb][Uu][Gg]\\'" . ess-bugs-mo= de) ("/git-rebase-todo\\'" . git-rebase-mode) ("\\.\\(?:md\\|markdown\\|mkd= \\|mdown\\|mkdn\\|mdwn\\)\\'" . markdown-mode) ("\\.\\(e?ya?\\|ra\\)ml\\'" = . yaml-mode) ("\\.gpg\\(~\\|\\.~[0-9]+~\\)?\\'" nil epa-file) ("\\.elc\\'" = . elisp-byte-code-mode) ("\\.zst\\'" nil jka-compr) ("\\.dz\\'" nil jka-com= pr) ("\\.xz\\'" nil jka-compr) ("\\.lzma\\'" nil jka-compr) ("\\.lz\\'" nil= jka-compr) ("\\.g?z\\'" nil jka-compr) ("\\.bz2\\'" nil jka-compr) ("\\.Z\= \'" nil jka-compr) ("\\.vr[hi]?\\'" . vera-mode) ("\\(?:\\.\\(?:rbw?\\|ru\\= |rake\\|thor\\|axlsx\\|jbuilder\\|rabl\\|gemspec\\|podspec\\)\\|/\\(?:Gem\\= |Rake\\|Cap\\|Thor\\|Puppet\\|Berks\\|Brew\\|Fast\\|Vagrant\\|Guard\\|Pod\\= )file\\)\\'" . ruby-mode) ("\\.re?st\\'" . rst-mode) ("/\\(?:Pipfile\\|\\.?= flake8\\)\\'" . conf-mode) ("\\.py[iw]?\\'" . python-mode) ("\\.m\\'" . oct= ave-maybe-mode) ("\\.less\\'" . less-css-mode) ("\\.scss\\'" . scss-mode) (= "\\.cs\\'" . csharp-mode) ("\\.awk\\'" . awk-mode) ("\\.\\(u?lpc\\|pike\\|p= mod\\(\\.in\\)?\\)\\'" . pike-mode) ("\\.idl\\'" . idl-mode) ("\\.java\\'" = . java-mode) ...) nil nil) set-auto-mode() normal-mode(t) after-find-file(nil t) find-file-noselect-1(# "~/york/shared/work-diaries= /work-diary.org" nil nil "~/york/shared/work-diaries/work-diary-2023-2024.o= rg" (10223630 66310)) find-file-noselect("/home/wdenton/york/shared/work-diaries/work-diary.org= ") org-clock-load() run-hooks(change-major-mode-after-body-hook text-mode-hook outline-mode-h= ook org-mode-hook) apply(run-hooks change-major-mode-after-body-hook (text-mode-hook outline= -mode-hook org-mode-hook)) run-mode-hooks(org-mode-hook) org-mode() set-auto-mode-0(org-mode nil) set-auto-mode--apply-alist((("\\.yml$" . yaml-mode) ("\\.\\(r\\(?:ng\\|ss= \\)\\|s\\(?:ch\\|vg\\)\\|x\\(?:ml\\|s\\(?:d\\|lt\\)\\)\\)\\'" . nxml-mode) = ("\\.[pP][dD][fF]\\'" . pdf-view-mode) ("README\\.md\\'" . gfm-mode) ("\\(?= :\\(?:\\.\\(?:b\\(?:\\(?:abel\\|ower\\)rc\\)\\|json\\(?:ld\\)?\\)\\|compose= r\\.lock\\)\\'\\)" . json-mode) ("\\.hva\\'" . LaTeX-mode) ("\\.tsv\\'" . t= sv-mode) ("\\.[Cc][Ss][Vv]\\'" . csv-mode) ("\\.[Ss][Aa][Ss]\\'" . SAS-mode= ) ("\\.Sout\\'" . S-transcript-mode) ("\\.[Ss]t\\'" . S-transcript-mode) ("= \\.Rd\\'" . Rd-mode) ("DESCRIPTION\\'" . conf-colon-mode) ("/Makevars\\(\\.= win\\)?\\'" . makefile-mode) ("\\.[Rr]out\\'" . ess-r-transcript-mode) ("CI= TATION\\'" . ess-r-mode) ("NAMESPACE\\'" . ess-r-mode) ("\\.[rR]profile\\'"= . ess-r-mode) ("\\.[rR]\\'" . ess-r-mode) ("/R/.*\\.q\\'" . ess-r-mode) ("= \\.[Jj][Aa][Gg]\\'" . ess-jags-mode) ("\\.[Bb][Mm][Dd]\\'" . ess-bugs-mode)= ("\\.[Bb][Oo][Gg]\\'" . ess-bugs-mode) ("\\.[Bb][Uu][Gg]\\'" . ess-bugs-mo= de) ("/git-rebase-todo\\'" . git-rebase-mode) ("\\.\\(?:md\\|markdown\\|mkd= \\|mdown\\|mkdn\\|mdwn\\)\\'" . markdown-mode) ("\\.\\(e?ya?\\|ra\\)ml\\'" = . yaml-mode) ("\\.gpg\\(~\\|\\.~[0-9]+~\\)?\\'" nil epa-file) ("\\.elc\\'" = . elisp-byte-code-mode) ("\\.zst\\'" nil jka-compr) ("\\.dz\\'" nil jka-com= pr) ("\\.xz\\'" nil jka-compr) ("\\.lzma\\'" nil jka-compr) ("\\.lz\\'" nil= jka-compr) ("\\.g?z\\'" nil jka-compr) ("\\.bz2\\'" nil jka-compr) ("\\.Z\= \'" nil jka-compr) ("\\.vr[hi]?\\'" . vera-mode) ("\\(?:\\.\\(?:rbw?\\|ru\\= |rake\\|thor\\|axlsx\\|jbuilder\\|rabl\\|gemspec\\|podspec\\)\\|/\\(?:Gem\\= |Rake\\|Cap\\|Thor\\|Puppet\\|Berks\\|Brew\\|Fast\\|Vagrant\\|Guard\\|Pod\\= )file\\)\\'" . ruby-mode) ("\\.re?st\\'" . rst-mode) ("/\\(?:Pipfile\\|\\.?= flake8\\)\\'" . conf-mode) ("\\.py[iw]?\\'" . python-mode) ("\\.m\\'" . oct= ave-maybe-mode) ("\\.less\\'" . less-css-mode) ("\\.scss\\'" . scss-mode) (= "\\.cs\\'" . csharp-mode) ("\\.awk\\'" . awk-mode) ("\\.\\(u?lpc\\|pike\\|p= mod\\(\\.in\\)?\\)\\'" . pike-mode) ("\\.idl\\'" . idl-mode) ("\\.java\\'" = . java-mode) ...) nil nil) set-auto-mode() normal-mode(t) after-find-file(nil nil) find-file-noselect-1(# "~/.emacs.d/init.org" :nowarn nil= "~/.emacs.d/init.org" (9704630 66310)) find-file-noselect("/home/wdenton/.emacs.d/init.org" :nowarn) desktop-restore-file-buffer("/home/wdenton/.emacs.d/init.org" "init.org" = nil) desktop-create-buffer(208 "/home/wdenton/.emacs.d/init.org" "init.org" or= g-mode (font-lock-mode visual-line-mode prettify-symbols-mode corfu-mode an= zu-mode yas-minor-mode undo-tree-mode git-gutter-mode wrap-region-mode flys= pell-mode org-appear-mode org-superstar-mode mixed-pitch-mode org-indent-mo= de) 3969 (nil nil) nil nil ((tab-width . 8) (indent-tabs-mode) (buffer-disp= lay-time 26101 53586 2647 436000) (buffer-file-coding-system . utf-8-unix) = (truncate-lines)) ((mark-ring nil))) eval-buffer(# nil "/home/wdenton/.emacs.d/.emacs.desktop"= nil t) ; Reading at buffer position 6154 load-with-code-conversion("/home/wdenton/.emacs.d/.emacs.desktop" "/home/= wdenton/.emacs.d/.emacs.desktop" t t) load("/home/wdenton/.emacs.d/.emacs.desktop" t t t) desktop-read() #f(compiled-function () #)() run-hooks(after-init-hook delayed-warnings-hook) command-line() normal-top-level()