From unknown Fri Aug 15 04:03:12 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#18696 <18696@debbugs.gnu.org> To: bug#18696 <18696@debbugs.gnu.org> Subject: Status: Emacs freezes for a while visitin Conf (.ini)) buffers Reply-To: bug#18696 <18696@debbugs.gnu.org> Date: Fri, 15 Aug 2025 11:03:12 +0000 retitle 18696 Emacs freezes for a while visitin Conf (.ini)) buffers reassign 18696 emacs submitter 18696 Angelo Graziosi severity 18696 normal tag 18696 moreinfo thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 12 04:24:52 2014 Received: (at submit) by debbugs.gnu.org; 12 Oct 2014 08:24:52 +0000 Received: from localhost ([127.0.0.1]:41461 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XdESR-0001DD-K4 for submit@debbugs.gnu.org; Sun, 12 Oct 2014 04:24:52 -0400 Received: from eggs.gnu.org ([208.118.235.92]:52485) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XdESP-0001D5-OP for submit@debbugs.gnu.org; Sun, 12 Oct 2014 04:24:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XdESF-0004Qu-Np for submit@debbugs.gnu.org; Sun, 12 Oct 2014 04:24:49 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:33078) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XdESF-0004Qq-KQ for submit@debbugs.gnu.org; Sun, 12 Oct 2014 04:24:39 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54179) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XdES8-0001U9-4A for bug-gnu-emacs@gnu.org; Sun, 12 Oct 2014 04:24:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XdES0-0004OB-KH for bug-gnu-emacs@gnu.org; Sun, 12 Oct 2014 04:24:32 -0400 Received: from smtp201.alice.it ([82.57.200.97]:29585) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XdES0-0004Np-Dy for bug-gnu-emacs@gnu.org; Sun, 12 Oct 2014 04:24:24 -0400 Received: from [192.168.1.101] (79.53.15.78) by smtp201.alice.it (8.6.060.43) (authenticated as angelo.graziosi@alice.it) id 540979130C60CB69 for bug-gnu-emacs@gnu.org; Sun, 12 Oct 2014 10:24:22 +0200 Message-ID: <543A3AB2.3010301@alice.it> Date: Sun, 12 Oct 2014 10:24:18 +0200 From: Angelo Graziosi User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 MIME-Version: 1.0 To: bug-gnu-emacs@gnu.org Subject: Emacs freezes for a while visitin Conf (.ini)) buffers Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) I have see this trying to visit Cygwin setup.ini files [*], for example: ftp://mirrors.kernel.org/sourceware/cygwin/x86_64/setup.ini (it is a file of about 2.5 MiB). After C-x C-f setup.ini, Emacs freezes (or hangs, if you prefer) and does not respond for a while (> 1 minute), CPU is at 80-100%. Then it works fine. Maybe it is processing the file but I wonder if this 'freezing' is to be expected. I have experimented this with Cygwin and MSYS2-MinGW64 builds. Ciao, Angelo. --- [*] Mode line shows it is in Config[Colon] mode From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 12 04:36:58 2014 Received: (at 18696) by debbugs.gnu.org; 12 Oct 2014 08:36:58 +0000 Received: from localhost ([127.0.0.1]:41466 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XdEe8-0001XB-6y for submit@debbugs.gnu.org; Sun, 12 Oct 2014 04:36:58 -0400 Received: from mtaout20.012.net.il ([80.179.55.166]:58947) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XdEe5-0001X1-1k for 18696@debbugs.gnu.org; Sun, 12 Oct 2014 04:36:54 -0400 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NDB00K00P5EJX00@a-mtaout20.012.net.il> for 18696@debbugs.gnu.org; Sun, 12 Oct 2014 11:36:50 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NDB00KW1P9EGO30@a-mtaout20.012.net.il>; Sun, 12 Oct 2014 11:36:50 +0300 (IDT) Date: Sun, 12 Oct 2014 11:36:41 +0300 From: Eli Zaretskii Subject: Re: bug#18696: Emacs freezes for a while visitin Conf (.ini)) buffers In-reply-to: <543A3AB2.3010301@alice.it> X-012-Sender: halo1@inter.net.il To: Angelo Graziosi Message-id: <838ukl8z1i.fsf@gnu.org> References: <543A3AB2.3010301@alice.it> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 18696 Cc: 18696@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Date: Sun, 12 Oct 2014 10:24:18 +0200 > From: Angelo Graziosi > > I have see this trying to visit Cygwin setup.ini files [*], for example: > > ftp://mirrors.kernel.org/sourceware/cygwin/x86_64/setup.ini > > > (it is a file of about 2.5 MiB). > > After C-x C-f setup.ini, Emacs freezes (or hangs, if you prefer) and > does not respond for a while (> 1 minute), CPU is at 80-100%. Then it > works fine. Maybe it is processing the file but I wonder if this > 'freezing' is to be expected. If this is in "emacs -Q", then I cannot reproduce this in a MinGW build. (You didn't say which version, so I tried the 24.3.94 pretest and a recent trunk.) If this is not in "emacs -Q", there's likely some optional feature that causes that. In any case, attaching a debugger during the freeze and looking what does the main thread do should shed some light on this. From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 12 06:24:53 2014 Received: (at 18696) by debbugs.gnu.org; 12 Oct 2014 10:24:53 +0000 Received: from localhost ([127.0.0.1]:41486 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XdGKb-0004DN-2Q for submit@debbugs.gnu.org; Sun, 12 Oct 2014 06:24:53 -0400 Received: from smtp204.alice.it ([82.57.200.100]:34566) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XdGKZ-0004DD-5p for 18696@debbugs.gnu.org; Sun, 12 Oct 2014 06:24:52 -0400 Received: from [192.168.1.101] (79.53.15.78) by smtp204.alice.it (8.6.060.43) (authenticated as angelo.graziosi@alice.it) id 542BEACC02D9F5F3; Sun, 12 Oct 2014 12:24:49 +0200 Message-ID: <543A56F3.4010701@alice.it> Date: Sun, 12 Oct 2014 12:24:51 +0200 From: Angelo Graziosi User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 MIME-Version: 1.0 To: Eli Zaretskii Subject: Re: bug#18696: Emacs freezes for a while visitin Conf (.ini)) buffers References: <543A3AB2.3010301@alice.it> <838ukl8z1i.fsf@gnu.org> In-Reply-To: <838ukl8z1i.fsf@gnu.org> Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 18696 Cc: 18696@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Il 12/10/2014 10:36, Eli Zaretskii ha scritto: > > If this is not in "emacs -Q", there's likely some optional feature > that causes that. Indeed.. it is this in my initialization file: (which-function-mode t) and, considering the structure of that setup.ini file, this 'freezing' could be expected.. Thanks, Angelo. From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 14 14:43:59 2014 Received: (at 18696) by debbugs.gnu.org; 14 Oct 2014 18:43:59 +0000 Received: from localhost ([127.0.0.1]:43484 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xe74g-00065r-QX for submit@debbugs.gnu.org; Tue, 14 Oct 2014 14:43:59 -0400 Received: from pruche.dit.umontreal.ca ([132.204.246.22]:47350) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xe74e-00065g-L1 for 18696@debbugs.gnu.org; Tue, 14 Oct 2014 14:43:56 -0400 Received: from ceviche.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id s9EIhsW3006532; Tue, 14 Oct 2014 14:43:54 -0400 Received: by ceviche.home (Postfix, from userid 20848) id 485CC66089; Tue, 14 Oct 2014 14:43:49 -0400 (EDT) From: Stefan Monnier To: Angelo Graziosi Subject: Re: bug#18696: Emacs freezes for a while visitin Conf (.ini)) buffers Message-ID: References: <543A3AB2.3010301@alice.it> <838ukl8z1i.fsf@gnu.org> <543A56F3.4010701@alice.it> Date: Tue, 14 Oct 2014 14:43:49 -0400 In-Reply-To: <543A56F3.4010701@alice.it> (Angelo Graziosi's message of "Sun, 12 Oct 2014 12:24:51 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5094=0 X-NAI-Spam-Version: 2.3.0.9378 : core <5094> : inlines <1396> : streams <1316777> : uri <1824899> X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: 18696 Cc: Eli Zaretskii , 18696@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.3 (-) > Indeed.. it is this in my initialization file: > (which-function-mode t) > and, considering the structure of that setup.ini file, this 'freezing' could > be expected.. Actually IIUC which-function-mode shouldn't cause such a slow down. If it does, it's probably because the major mode doesn't have special support for which-function-mode, so it falls back on using imenu's support, i.e. it needs to scan the whole buffer. This said, scanning the whole buffer shouldn't be that sow, unless you really have very many sections. So it might also simply be a bug in the way the major mode supports imenu (e.g. the regexp used is inefficient). Stefan From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 19 10:55:27 2021 Received: (at 18696) by debbugs.gnu.org; 19 Aug 2021 14:55:28 +0000 Received: from localhost ([127.0.0.1]:60603 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGjS3-0002qu-L3 for submit@debbugs.gnu.org; Thu, 19 Aug 2021 10:55:27 -0400 Received: from quimby.gnus.org ([95.216.78.240]:50352) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGjS1-0002qf-En for 18696@debbugs.gnu.org; Thu, 19 Aug 2021 10:55:26 -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:In-Reply-To:Date: References: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=23c7fScYWZDK+LN/B9okBJb5hCrPxI4eBRM7c9zWMjY=; b=e7++8zJdkIL59k6ePw4cUpdnWN PPwC5zMoqts3tqSxWgDaxXF4YCQ2owaaRM250fjfYwzbRVeNzsLIenJ5kmBzawg7XHtlH7re+tjHW q1FVj+NnjSkw2vFX4um0CLZgHm2s6TAE85+eTeUNeLo6ISAN2gidsp0YKS2RPJFtpuO4=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mGjRp-0007JF-IY; Thu, 19 Aug 2021 16:55:17 +0200 From: Lars Ingebrigtsen To: Stefan Monnier Subject: Re: bug#18696: Emacs freezes for a while visitin Conf (.ini)) buffers References: <543A3AB2.3010301@alice.it> <838ukl8z1i.fsf@gnu.org> <543A56F3.4010701@alice.it> Date: Thu, 19 Aug 2021 16:55:12 +0200 In-Reply-To: (Stefan Monnier's message of "Tue, 14 Oct 2014 14:43:49 -0400") Message-ID: <87bl5t5vsf.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Stefan Monnier writes: > Actually IIUC which-function-mode shouldn't cause such a slow down. > If it does, it's probably because the major mode doesn't have special > support for which-function-mode, so it falls back on usi [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 18696 Cc: Eli Zaretskii , 18696@debbugs.gnu.org, Angelo Graziosi X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Stefan Monnier writes: > Actually IIUC which-function-mode shouldn't cause such a slow down. > If it does, it's probably because the major mode doesn't have special > support for which-function-mode, so it falls back on using imenu's > support, i.e. it needs to scan the whole buffer. > > This said, scanning the whole buffer shouldn't be that sow, unless you > really have very many sections. So it might also simply be a bug in the > way the major mode supports imenu (e.g. the regexp used is inefficient). I can reproduce this problem in Emacs 28: curl https://mirrors.kernel.org/sourceware/cygwin/x86_64/setup.ini > /tmp/setup.ini ./src/emacs -f which-function-mode -Q /tmp/setup.ini y Emacs hangs completely, and even `C-g' doesn't help. The major mode here is conf-colon-mode, which does: (setq-local imenu-generic-expression `(("Parameters" "^[ \t]*\\(.+?\\)[ \t]*:" 1) ,@(cdr imenu-generic-expression)))) And, indeed, removing that make the file open in a couple of seconds instead of taking forever (where "forever" is defined as "longer than I had patience to wait"). Hm... That regexp does have some backtracking in it, but this is an 18MB file where 99.997% of the lines match the regexp: sdesc: "Debug info for 2048-cli" ldesc: "This package contains files necessary for debugging the 2048-cli package with gdb." category: Debug requires: cygwin-debuginfo version: 0.9.1-1 etc. So no matter how efficient the regexp is, it's gonna hang here. Perhaps `imenu-default-create-index-function' should just give up after spending more than x seconds? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 19 10:55:31 2021 Received: (at control) by debbugs.gnu.org; 19 Aug 2021 14:55:31 +0000 Received: from localhost ([127.0.0.1]:60606 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGjS6-0002rA-Tg for submit@debbugs.gnu.org; Thu, 19 Aug 2021 10:55:31 -0400 Received: from quimby.gnus.org ([95.216.78.240]:50366) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGjS4-0002qk-Ca for control@debbugs.gnu.org; Thu, 19 Aug 2021 10:55:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Kuzcf7MM715Hs3oeUhRL0H3LYRjddw0Bw3WIP2WbSt4=; b=cLWtqXK5piY0iOmFFA0gQVkuBx aVdAko7jDUlE67miDtM+jnyDVKnNZnN/+1IW3TPZNIbRNmtXD9e5yD7Fv4jHitx0gAPLE3NmT3IBR rDO/gN2wxLg4VYNaqneSz3GYUN4M9wFtlCdrupuHn5se6tZ8ND8vhJAP3axz0EnWjDkg=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mGjRw-0007JL-Jf for control@debbugs.gnu.org; Thu, 19 Aug 2021 16:55:22 +0200 Date: Thu, 19 Aug 2021 16:55:20 +0200 Message-Id: <87a6ld5vs7.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #18696 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 18696 + moreinfo quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 18696 + moreinfo quit From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 19 11:42:24 2021 Received: (at 18696) by debbugs.gnu.org; 19 Aug 2021 15:42:24 +0000 Received: from localhost ([127.0.0.1]:60706 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGkBU-0008QE-6b for submit@debbugs.gnu.org; Thu, 19 Aug 2021 11:42:24 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:45004) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGkBR-0008Q5-Mo for 18696@debbugs.gnu.org; Thu, 19 Aug 2021 11:42:22 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4Gr8Cb2MVCz1sGLq; Thu, 19 Aug 2021 17:42:19 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4Gr8Cb1FHmz1qql0; Thu, 19 Aug 2021 17:42:19 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id r3T6p-TIkhj4; Thu, 19 Aug 2021 17:42:18 +0200 (CEST) X-Auth-Info: 7Kql9ZUBBNZyu8hn7r7hEYMnDDxgOOgrbAEaAZE9PdNem2Esz4k24+qHIgTFb6bm Received: from igel.home (ppp-46-244-170-214.dynamic.mnet-online.de [46.244.170.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Thu, 19 Aug 2021 17:42:18 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id C67282C2700; Thu, 19 Aug 2021 17:42:17 +0200 (CEST) From: Andreas Schwab To: Lars Ingebrigtsen Subject: Re: bug#18696: Emacs freezes for a while visitin Conf (.ini)) buffers References: <543A3AB2.3010301@alice.it> <838ukl8z1i.fsf@gnu.org> <543A56F3.4010701@alice.it> <87bl5t5vsf.fsf@gnus.org> X-Yow: HUMAN REPLICAS are inserted into VATS of NUTRITIONAL YEAST... Date: Thu, 19 Aug 2021 17:42:17 +0200 In-Reply-To: <87bl5t5vsf.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 19 Aug 2021 16:55:12 +0200") Message-ID: <875yw1bfvq.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.5 (/) X-Debbugs-Envelope-To: 18696 Cc: Angelo Graziosi , Stefan Monnier , 18696@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.5 (-) On Aug 19 2021, Lars Ingebrigtsen wrote: > `(("Parameters" "^[ \t]*\\(.+?\\)[ \t]*:" 1) Does that work better? "^[ \t]*\\([^ \t].*?\\)[ \t]*:" Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 19 11:52:48 2021 Received: (at 18696) by debbugs.gnu.org; 19 Aug 2021 15:52:48 +0000 Received: from localhost ([127.0.0.1]:60730 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGkLY-0002NW-C7 for submit@debbugs.gnu.org; Thu, 19 Aug 2021 11:52:48 -0400 Received: from quimby.gnus.org ([95.216.78.240]:50968) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mGkLV-0002NJ-N1 for 18696@debbugs.gnu.org; Thu, 19 Aug 2021 11:52:46 -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:In-Reply-To:Date: References: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=d0lp9o+Q8cqMkZFRyEX1iuknW5CamZXcbHxcEWLRyB4=; b=uqzboZYl0rAz3FuVblZDTGjTgl rKLs5ei7YJSTISDvQFUzZXGntKo2Gk6kXgnLMOQ0/pIIRREHXoQMxpfz0pSkuBGHeqcVi/YAAAthZ s3qwxcEtfWYK9n2V2b/C7cfYMHrmHXP2Ut5VRWjclxD903O9bAGhIAk1qMVWV7o/LwQM=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mGkLK-0007np-2w; Thu, 19 Aug 2021 17:52:38 +0200 From: Lars Ingebrigtsen To: Andreas Schwab Subject: Re: bug#18696: Emacs freezes for a while visitin Conf (.ini)) buffers References: <543A3AB2.3010301@alice.it> <838ukl8z1i.fsf@gnu.org> <543A56F3.4010701@alice.it> <87bl5t5vsf.fsf@gnus.org> <875yw1bfvq.fsf@igel.home> Date: Thu, 19 Aug 2021 17:52:31 +0200 In-Reply-To: <875yw1bfvq.fsf@igel.home> (Andreas Schwab's message of "Thu, 19 Aug 2021 17:42:17 +0200") Message-ID: <87czq94ekg.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Andreas Schwab writes: > On Aug 19 2021, Lars Ingebrigtsen wrote: > >> `(("Parameters" "^[ \t]*\\(.+?\\)[ \t]*:" 1) > > Does that work better? > > "^[ \t]*\\([^ \t].*?\\)[ \t]*:" Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 18696 Cc: Angelo Graziosi , Stefan Monnier , 18696@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Andreas Schwab writes: > On Aug 19 2021, Lars Ingebrigtsen wrote: > >> `(("Parameters" "^[ \t]*\\(.+?\\)[ \t]*:" 1) > > Does that work better? > > "^[ \t]*\\([^ \t].*?\\)[ \t]*:" It's probably an improvement, but it's still very slow. (I.e., I stopped it after half a minute, and it was still going.) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 17 11:54:52 2021 Received: (at 18696) by debbugs.gnu.org; 17 Sep 2021 15:54:52 +0000 Received: from localhost ([127.0.0.1]:60948 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mRGCR-0003Oo-SW for submit@debbugs.gnu.org; Fri, 17 Sep 2021 11:54:52 -0400 Received: from quimby.gnus.org ([95.216.78.240]:48184) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mRGCN-0003OM-Ng for 18696@debbugs.gnu.org; Fri, 17 Sep 2021 11:54:49 -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:In-Reply-To:Date: References: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=xOvmw8bUD8aVuYg8kf4if3hS5ZiDW5lRQCgpAa2D7eo=; b=cPsDODyP7C0T0ttC53k2iY8yQk Z+i2HSRJad3PEKSbdbGxg0BaNSnpsJNf/0aD2brCzpcTgvFFDmSQsLuLEH69INHrBefjbUNXt82RH RBUuS7qMfakeRLBe/IhBkud5+HYuwGcisB26dBm7n/dmJtkGZhNBaXoDwWJ3kvJUj0kY=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mRGCD-0001dq-4i; Fri, 17 Sep 2021 17:54:39 +0200 From: Lars Ingebrigtsen To: Stefan Monnier Subject: Re: bug#18696: Emacs freezes for a while visitin Conf (.ini)) buffers References: <543A3AB2.3010301@alice.it> <838ukl8z1i.fsf@gnu.org> <543A56F3.4010701@alice.it> <87bl5t5vsf.fsf@gnus.org> Date: Fri, 17 Sep 2021 17:54:36 +0200 In-Reply-To: <87bl5t5vsf.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 19 Aug 2021 16:55:12 +0200") Message-ID: <87bl4rw62r.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Lars Ingebrigtsen writes: > Perhaps `imenu-default-create-index-function' should just give up after > spending more than x seconds? I've now done this in Emacs 28. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 18696 Cc: Eli Zaretskii , 18696@debbugs.gnu.org, Angelo Graziosi X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Lars Ingebrigtsen writes: > Perhaps `imenu-default-create-index-function' should just give up after > spending more than x seconds? I've now done this in Emacs 28. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 17 11:54:54 2021 Received: (at control) by debbugs.gnu.org; 17 Sep 2021 15:54:54 +0000 Received: from localhost ([127.0.0.1]:60950 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mRGCU-0003Ox-1s for submit@debbugs.gnu.org; Fri, 17 Sep 2021 11:54:54 -0400 Received: from quimby.gnus.org ([95.216.78.240]:48198) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mRGCQ-0003OW-U0 for control@debbugs.gnu.org; Fri, 17 Sep 2021 11:54:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=zUudDQt3uPZLnklXSFtmZHROv1dz7UQtfQd1f3uDgeI=; b=lfDbY0nI7gkEMMzTHck7ecLb26 zIwX8av9HxdptjQO2VX3mmyOCGrGsF8doo5r8wB8c3rRNs7QerhQ/nRbBuNt6CBJaxKDRnq2yKHrA U4EcdjajCgj15SzaKvbM78P3Ekd8IXkkg6WOo6SNoax6UEV/vW7nCw30TNne+6xxMIik=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mRGCI-0001dx-Vv for control@debbugs.gnu.org; Fri, 17 Sep 2021 17:54:45 +0200 Date: Fri, 17 Sep 2021 17:54:42 +0200 Message-Id: <87a6kbw62l.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #18696 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 18696 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 18696 28.1 quit From unknown Fri Aug 15 04:03:12 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 16 Oct 2021 11:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator