From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Felix 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 12:26:21 +0100 Message-ID: <87o7s3k2lq.fsf@web.de> References: <87edt0mg7p.fsf@web.de> <87pmcki50f.fsf@web.de> <83mt7nke21.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="30255"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.9.3; emacs 30.0.50 Cc: joaotavora@gmail.com, 60107@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 16 12:34:30 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 1p68yz-0007Y5-FU for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 16 Dec 2022 12:34:29 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p68yp-0004f7-Ce; Fri, 16 Dec 2022 06:34:19 -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 1p68yZ-0004b3-2k for bug-gnu-emacs@gnu.org; Fri, 16 Dec 2022 06:34: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 1p68yY-00019b-Pm for bug-gnu-emacs@gnu.org; Fri, 16 Dec 2022 06:34:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p68yY-0007ry-9C for bug-gnu-emacs@gnu.org; Fri, 16 Dec 2022 06:34:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Felix Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Dec 2022 11:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60107 X-GNU-PR-Package: emacs Original-Received: via spool by 60107-submit@debbugs.gnu.org id=B60107.167119041030241 (code B ref 60107); Fri, 16 Dec 2022 11:34:02 +0000 Original-Received: (at 60107) by debbugs.gnu.org; 16 Dec 2022 11:33:30 +0000 Original-Received: from localhost ([127.0.0.1]:48725 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p68y2-0007rh-JG for submit@debbugs.gnu.org; Fri, 16 Dec 2022 06:33:30 -0500 Original-Received: from mout.web.de ([212.227.15.4]:50917) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p68xy-0007rV-E3 for 60107@debbugs.gnu.org; Fri, 16 Dec 2022 06:33:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=s29768273; t=1671190400; bh=YxI/gKlpTeuscpU3KLqPGKGL/W0zYcXEA6ARioWMdZE=; h=X-UI-Sender-Class:References:From:To:Cc:Subject:Date:In-reply-to; b=K5MTGxnmGhANzxfJwOiovWZQbUpooC5HjXxsjUxEpOui2ozHylwl67RRD0zDR5Gu4 x+KHFjV6cc79n/WvcvOhFFRIq2hzRzznhS343dN79UitkMeWotHNb3RPd2cB4C898J kk6IU0HvzEiG4G6Pp4GGpgc1S6IlQ4vfBJcPOfJqvHxVjyZVBmgyyxcId96uSnXWkn Lcq2+DM5dWoG4+7ZsXTATqaDgshO2eO+dtNBs4taCfjMIEfz/2KxIjZHcKd4UR7DCQ zIID/X5Gl4T7ZGWXXfC2ltOzAOeuPmv+Oxji/fnqRg8OWBukXt6BhulHUfG+FlRjhl i/zD32Rcjy5lw== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Original-Received: from felix-lifebooka531.web.de ([94.134.181.103]) by smtp.web.de (mrweb006 [213.165.67.108]) with ESMTPSA (Nemesis) id 1MElVH-1p9Bsy3ZeN-00Fzu2; Fri, 16 Dec 2022 12:33:19 +0100 In-reply-to: <83mt7nke21.fsf@gnu.org> X-Provags-ID: V03:K1:7tsCKw3mCSVpDb5n7DRnmrzqdhHBmioS05yN1ZGA31UAiJ25KzD 0XukVKTE3AGcNP8EpwvsMzqWx0lS1ejRpiJfEFTz12L3Z6U2eh7oS+NMtRNGw5uub5l2vng KwlDZ6oQsXNzN1T4+BD36Y5DQ2qCfzGLUQtAXXcmCdFIbIXzm/aYBM64lT5axak25ZV3J1b FxvTGkvtLrSeDtC8/wmXQ== UI-OutboundReport: notjunk:1;M01:P0:GZejC5WyIv0=;Jp6zwGB8nOWVdfBMvLX//Ry0krQ hLOzuzJJOmc03+1rm+D5JTDjEizg3AOM7+Pe9bJoAs1faP1kuUL56isNKXQJvTN+1Z4hbgdG+ u98G0wXPTVusKgmWdHgV3mlzmdkkAA2TDV6lTzSOW2rTBMDcaGfk4sPyjtdRbuWsbsRaLoAr7 mamQw1eRsqj/xQLZv8oV93H72cwpaVvxKptbokJ+422mSJ61mNEZ1D+lg089hUAcPSHU12oIS ATNrOJ5AM3zCGdVCl2igknvFSe7y7g6lqT175KLzqlQmTZ6cH53IgrIaUOHGOCNWTMmMwp0bC jHfCIoAfbr5eiZ8FEBVMKzDgqVsE7u7ONbFtiGaAeCouwTt+xtNy9wgfeuPwOFshl3nYRLHvl TS7SE1A7WfA1qLUaZNGX3SKTX/9SzJKxO2FuxfBJjcdHY+bYS8GUbc+QGvOZ/C+lCYamJwEYK /blrvNiAVDAJexarPacQBlO/HDN8WYmyW3QhWziiqazjWZgK9PrC71ePz9vx7h0EBQwMNlP0R fSFFaQ0CzGMFArBh3pgnN1NHDD2JqXUVkOGq+3RvraK7C15S12Ap/fvYO9rvgJW4G4O9aNhdL vrZgRnd8ZxtqVAzehS3tDzvS5w98UDibYH3uFHOCngcDAK3B9QoE3RwoondDRFknwOGTYMHBP UvreZXY03A4o41GXAGzl4sDTC5G8WXYwiB3qx4BYBeg9mdJ76u1cA3X8fA7HVzp0I8rvSqMDq lC9I7LfsnrVELCwiXHjkXIfeFWfBOC3irdRft+FPiU7yd5+FsfjxR+QduZAUuiXke4xdRw9k 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:251197 Archived-At: Eli Zaretskii writes: >> Cc: 60107@debbugs.gnu.org >> From: Felix >> Date: Fri, 16 Dec 2022 00:59:28 +0100 >> >> Now it makes sense that glsl-mode managed with eglot and glslls takes >> forever to open glsl files, and imenu is not working at all. >> Seems to depend on the server. >> I will try your suggestions, in the end which-function-mode >> is not that important to me, so if everything fails it's not that bad >> either. > > 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 a lot!