From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#61350: Eglot over Tramp freezes with large project Date: Tue, 28 Feb 2023 15:18:37 +0100 Message-ID: <877cw1swjm.fsf@gmx.de> References: <87y1ootw2t.fsf@gmail.com> <69968923.705640.1677163650760@office.mailbox.org> <87a613f0b7.fsf@gmx.de> <87r0udvmzr.fsf@gmx.de> <878rglxrzm.fsf@gmail.com> <87cz5wmjbx.fsf@gmx.de> <87h6v8f7u9.fsf@gmail.com> <87o7pflfcd.fsf@gmx.de> <87wn43e9ht.fsf@gmail.com> <874jr6oont.fsf@gmx.de> <87sfeqd4zi.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14637"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Thomas Koch , 61350@debbugs.gnu.org To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 28 15:19:42 2023 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 1pX0pS-0003fe-DQ for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 28 Feb 2023 15:19:42 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pX0pB-00016i-Np; Tue, 28 Feb 2023 09:19:26 -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 1pX0oo-0000Y3-S7 for bug-gnu-emacs@gnu.org; Tue, 28 Feb 2023 09:19:05 -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 1pX0oo-0002GY-H7 for bug-gnu-emacs@gnu.org; Tue, 28 Feb 2023 09:19:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pX0on-0000y5-VT for bug-gnu-emacs@gnu.org; Tue, 28 Feb 2023 09:19:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 28 Feb 2023 14:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61350 X-GNU-PR-Package: emacs Original-Received: via spool by 61350-submit@debbugs.gnu.org id=B61350.16775939293702 (code B ref 61350); Tue, 28 Feb 2023 14:19:01 +0000 Original-Received: (at 61350) by debbugs.gnu.org; 28 Feb 2023 14:18:49 +0000 Original-Received: from localhost ([127.0.0.1]:49985 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX0ob-0000xd-7C for submit@debbugs.gnu.org; Tue, 28 Feb 2023 09:18:49 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:47649) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pX0oZ-0000xO-4M for 61350@debbugs.gnu.org; Tue, 28 Feb 2023 09:18:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1677593918; i=michael.albinus@gmx.de; bh=2E6k2Jq8vZTXpzbIiDZ0RY9KkMKTPrzf83DNWcNonbc=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=Wt36VbqsDdhnImlE61ssBqn5qnUvCfZs/0JzLzJIdpLR88c75NJWiv3XupVdr/u0D WMBuhvHjivnJ3nBtwT1TAbTdYhlxga7zWYE/S3t0yQxZ26lEbUoetHgotUkoVJK5Vf jNdFxfzHNd1QT0rCKOzT/EZJCQNoDo3/0c5HsRvG3iInB8wgncazlblLK+81RB4eo1 TxWGhfXzAWGfJipZ8c1E9HGjG9s3J5oFV0ccgPqzaLlcaAIpEpgphaxVz46+cmjmKV WS8lq036vm655XTklcUeSl2Qr3VSZ+9kSpLpLfkHLHElxNV97IKmYvqpu3SrQGvmmF 7URRQMi0nG32w== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from gandalf.gmx.de ([185.89.39.22]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MgvvT-1oqWyx2K5d-00hLsC; Tue, 28 Feb 2023 15:18:38 +0100 In-Reply-To: <87sfeqd4zi.fsf@gmail.com> ("=?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?="'s message of "Tue, 28 Feb 2023 00:10:41 +0000") X-Provags-ID: V03:K1:yHhrXRQJ+WLKEapx0GK7/XJg/4AR5DIJp1VM7oT11kLzDi11Oi7 hjrf0ZVHcPdY0mHXLLoUsGy4EMhZ/yjmeZojlC8BrU4LE6dDvoZ1PD6z9wimYhJ4VRpiywi zVVxqfPQtAcGJ+dUj8pGwDn9uG06G7iEmKZPnEJlIQTiCCtglUwWSYbu98gf71jJ9qAxtHU I8g5ch1RJpHTibQqS+TgA== UI-OutboundReport: notjunk:1;M01:P0:ByVd3UUgCl0=;pS8ju+jOm9/Gbpoe95MQA/QBy2N JEuWlxLP68O85qmaXlqcwLzXlKi9kX5H/5fpWG1E1LDRYTmj+P7R+Uu3cFCLQcTOG74AXXam0 OGVqWjvpT7hUCixXN4ZCpQl+wutP2RDzT1CAkslZUclBJNb11O+WcghCk6S090rwIdZhRuhkK Kn/z7pn75JMu6Gjy2HCfTy9Wk3eKrjqPUfWj4RgmC6I4llwTALYjoYWQTH+9XIUyRJAOsy4S0 /MDtJeGU2cPEXZqAP+5J6bkEI7hD0EajAGUHkVwoILwQREYHxM5wkoId3z5nLpZY46dFeAunq I0A53HbwfwoUnsEcp0ZLcZR0qoy82BBWI9J2wxeZdfimnTQqvhkI1TTP0VrIgU3Oy2piNVHw1 f6WY74JRmQsX3BYMJZr5NXHzlQIpV1chv+fzqcclQF1TLZGQNBeHlMAvzVzneCJkOvEE4aBq5 b0ctOaQPRRxnc/LYut88KRaA7FdTIgvre6LUHTbLtfsLEz2FhyaL9TjjxEW7W9Vze8kiFluAO ooEwzdpaEOOiXjUKjTIYdpbOoVMv77ognmrs6fWnGnzbApclvn/H+KetuZY1QSnwDk1vy6PaE nsiNXd5iuETFF7ZRiJARVXLChcw6m0iElQCu57PFIaquaWU4PFH9JPzZU0i+hRN4nN+7bETRw H0qvjIOSvTN3am292kgW8MIzQ6BJtGHd7F/gjQn3vQEJpANyPQfWjdcmXVE/+BoFyLdxZ9xSu Pj0wVoOW1vscz6AvKfO5ZyQ/wkDkqghughgE8PB0vDXag6VokfWmMmX88X2hXO3PsBxpzxhp 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:256966 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Jo=C3=A3o T=C3=A1vora writes: Hi Joao, >> settings in ~/.ssh/config shall apply. And a new value, say `suppress', >> shall suppress this feature even if enabled in ~/.ssh/config. >> >> I'll try to implement something along this line. > > Thanks. I think that is a good start. But can Eglot or the user > somehow set 'suppress' for connections "motivated" by Eglot, i.e. M-x > eglot in some remote file? How? The appended patch fixes the issue for me with Thomas' example. It binds tramp-use-ssh-controlmaster-options to nil before calling make-process, and that's sufficient for the majority of users. Users, who have set ControlMaster in their ~/.ssh/config (like Thomas), are not satified. For them we need another setting of tramp-use-ssh-controlmaster-options. I'm working on this. > Jo=C3=A3o Best regards, Michael. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment Content-Transfer-Encoding: quoted-printable diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index ffc9511469f..71271ca0b0a 100644 =2D-- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -1214,6 +1214,8 @@ eglot--cmd (defvar-local eglot--cached-server nil "A cached reference to the current Eglot server.") +(defvar tramp-use-ssh-controlmaster-options) + (defun eglot--connect (managed-modes project class contact language-id) "Connect to MANAGED-MODES, LANGUAGE-ID, PROJECT, CLASS and CONTACT. This docstring appeases checkdoc, that's all." @@ -1249,7 +1251,9 @@ eglot--connect (contact (cl-subseq contact 0 probe))) `(:process ,(lambda () - (let ((default-directory default-directory)) + (let ((default-directory default-directory) + ;; See bug#61350. + tramp-use-ssh-controlmaster-options) (make-process :name readable-name :command (setq server-info (eglot--cmd contact= )) --=-=-=--