From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#60107: 30.0.50; Open new files very slow if eglot and which-function-mode are enabled. Date: Fri, 16 Dec 2022 17:45:29 +0200 Message-ID: <83a63njqsm.fsf@gnu.org> References: <87edt0mg7p.fsf@web.de> <87pmcki50f.fsf@web.de> <83mt7nke21.fsf@gnu.org> <87o7s3k2lq.fsf@web.de> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19430"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 60107-done@debbugs.gnu.org, joaotavora@gmail.com To: Felix Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 16 16:46:50 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 1p6CvB-0004tp-Vk for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 16 Dec 2022 16:46:50 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p6Cus-0005oN-D2; Fri, 16 Dec 2022 10:46:30 -0500 Original-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 1p6CuR-0005cc-8V for bug-gnu-emacs@gnu.org; Fri, 16 Dec 2022 10:46:13 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p6CuQ-00076l-H9 for bug-gnu-emacs@gnu.org; Fri, 16 Dec 2022 10:46:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p6CuP-000117-VK for bug-gnu-emacs@gnu.org; Fri, 16 Dec 2022 10:46:01 -0500 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Dec 2022 15:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 60107 X-GNU-PR-Package: emacs Mail-Followup-To: 60107@debbugs.gnu.org, eliz@gnu.org, felix.dick@web.de Original-Received: via spool by 60107-done@debbugs.gnu.org id=D60107.16712055413894 (code D ref 60107); Fri, 16 Dec 2022 15:46:01 +0000 Original-Received: (at 60107-done) by debbugs.gnu.org; 16 Dec 2022 15:45:41 +0000 Original-Received: from localhost ([127.0.0.1]:50073 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p6Cu4-00010k-R1 for submit@debbugs.gnu.org; Fri, 16 Dec 2022 10:45:41 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:42106) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p6Ctz-00010b-Kw for 60107-done@debbugs.gnu.org; Fri, 16 Dec 2022 10:45:39 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p6Cts-0006ya-QI; Fri, 16 Dec 2022 10:45:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=YzRbx/m3mZJa/+rHK2/huuwiYPD89l4YKHAajyj9d0w=; b=RNPB+x8Bx7EL UIZd0BxJH2eFHTCWNPCcb2dGQs0DkwmH2cEF7aCQF7LZ9XGZ5seZcHZHNMcyNEXuWhodsSrGhRO9V Be1rksjbtETtUjq+A05gDGG5QPs0U65sl4/pxUKBlpCzxRF0xfpiYJWxome0VLhNtmj+uAhbhvYGt /bWpMC3NpzWbt4LWoq3eZ76HzVNs7F2d999URgH6VenJmWKMw0lIMPGo53q+59G3pj5Jg+3kzkIg7 mTyG7/rZ/blFZ8ElQf5uuuDk7Gwyxi4XcmUFKtoWo4uoJUFzL0fPvqEfdOJ6CSjCSjhrRSnSIJnkg Alm686EmwcWNr0QZwQ/uMw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p6Cts-0007pj-8L; Fri, 16 Dec 2022 10:45:28 -0500 In-Reply-To: <87o7s3k2lq.fsf@web.de> (message from Felix on Fri, 16 Dec 2022 12:26:21 +0100) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:251216 Archived-At: > From: Felix > Cc: joaotavora@gmail.com, 60107@debbugs.gnu.org > Date: Fri, 16 Dec 2022 12:26:21 +0100 > > > Eli Zaretskii writes: > > > Does it help to customize which-func-non-auto-modes to add the major > > mode you are using there? Or maybe customize which-func-maxout to a > > small value to get the same effect in any mode? I'm asking whether > > this helps because it's unclear to me whether doing so will avoid > > blocking redisplay, if and when which-func finally becomes active. > > > >> If this is not a bug of emacs, > >> feel free to close this bug report. > > > > If the above doesn't help, I guess some changes to which-func could be > > in order, to avoid blocking the first display of a buffer for such a > > long time. So in that case we shouldn't close this bug report yet. > > > > Thanks. > > In fact both of it helps! > Adding c-ts-mode to which-func-non-auto-modes solves the problem, > setting which-func-maxout to 1000 works as well (that's the only value i > tested). Thanks, so I added these hints to the doc strings of the two optioins, and I'm closing the bug.