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.devel Subject: Re: tramp "too many open files" [Re: bug#56606 Date: Tue, 21 Mar 2023 10:22:05 +0100 Message-ID: <87fs9ysblu.fsf@gmx.de> References: <86ilnwafso.fsf@stephe-leake.org> <86a6989itv.fsf@stephe-leake.org> <8335f0qbvn.fsf@gnu.org> <831qujrjnm.fsf@gnu.org> <86h73ex91m.fsf@stephe-leake.org> <83k089omhb.fsf@gnu.org> <87v8ivii64.fsf@posteo.net> <87jzzbzbys.fsf@gmx.de> <87r0tjibia.fsf@posteo.net> <871qljz4q4.fsf@gmx.de> <87ileuiqph.fsf@posteo.net> 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="1363"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Madhu , emacs-devel@gnu.org To: Thierry Volpiatto Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Mar 21 10:23:21 2023 Return-path: Envelope-to: ged-emacs-devel@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 1peYDA-00006F-Tp for ged-emacs-devel@m.gmane-mx.org; Tue, 21 Mar 2023 10:23:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1peYCC-0001gd-Vz; Tue, 21 Mar 2023 05:22:21 -0400 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 1peYCB-0001gP-GG for emacs-devel@gnu.org; Tue, 21 Mar 2023 05:22:19 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1peYC9-0000Hp-Eu for emacs-devel@gnu.org; Tue, 21 Mar 2023 05:22:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1679390530; i=michael.albinus@gmx.de; bh=8ZrIRVUs0CmI2nI3/R9q4QI+hyp/PYBsAPAka4oYagg=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=ijsYPk+ONFufxBV2ME6+0CSm+kw7ehnmVQNCWkrPuWryy+RisqkxTfpxZhYLxJrFf mQXnxRbBZydz0prcsesz2G+7WeiIhJSo6oWn9mcK86nReR+E4xz8Ba3VXE+Js2/G4H bHpWNDygwP5/ZFjuXnrGtAN1fOUF7FR6OO99fDeJfrvudnsvn5wZoqlDyKj9jxFWnk oFhCA9U/nV5E+SRMwIzzs3GWkDXCsralCx7fxMbirZ23uaSEmhyK8OwN0OpbvTtfUE M5CvzXsNutfjBsUX3dGqYRlyk8ufWeOfFvjGPoaYJNmVJu2kV2x/+3TG63tPauRX7n e98x4WhVcPDrQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from gandalf.gmx.de ([185.89.39.19]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MGz1V-1pjAdm46c7-00E2nI; Tue, 21 Mar 2023 10:22:10 +0100 In-Reply-To: <87ileuiqph.fsf@posteo.net> (Thierry Volpiatto's message of "Tue, 21 Mar 2023 05:55:44 +0000") X-Provags-ID: V03:K1:tO3a33ewbqPgIu36SYts7gAMs9BHFM1l3MM/CEegibOnxQpNOTm Mc3gIm1wqSE8bKqNmA+NTyFkkKr+xiwGdQQblKsbvm3uLs044XT34RbAbwI7/aDoTuXTOcU uFL6Tdc8SO5LtlKwY5Z6uCW2bDhW9UyChSA8s/AhzMyc/3BwsAEanVra7W7OlurK3+qFwoJ 5diOLvNlRxeTWk8wo40pA== UI-OutboundReport: notjunk:1;M01:P0:TE3xaJ4L4j0=;VbjZMIjMTzhoDEyAHdatEW/AE6F IFq547xCycCpo0QJLrPLN3ZHHYw+684TtBLebFU8cy/Eu/vW/BakpGnlCowEIsmaWiheb7q4v c35LObj5tup8r10a4qxUPpcXCg2ChrG1Jbg+6PAnG2RYdPBV3ienUXl61c2uAhG/t4ewTJNeu 1/FcXJ1bBn0HyNFHg2AEshsvjCi7jyAzkHG0OKV29EV01Gu2QNK41KqVslNj/0nP/3egBmbHt ChtGOBAt+SgnFHrqRmn/TARwyrGQheJM9CTy5hRpt2UbMQpygsNrxzXRlklbPkCioXaPmGPPc fcxp8ja6dEUCRt97pio6U1ZiQ3E5QKzfg4lRMZUZBADkHDmlwKo2TUVlC2SqB2JqyW1ZsG4Dh XgGdLi2dLkzncQd0xLBO0mtx5fooZ2Ow7bHZjaSjVPSsxEbVPugGumZPMq0638yl1uDlCsglR 7fI39bgqutBONi8lgPWZcw4o5bGcfQdpObn3Iv+YHeGpKcatGeGHJY+7VFyxU/7Pbi614HJSx Z5+lSbTRTRus57sOuw6ZbQ3CZllwGJH2PxNuFpj91TcELbxyS4EBjsawICPtb6BNvckXm7MRO biD8/bYsnBhgHZTuyP51R5nyMJKxD3Biw9BRd96I1Bgo+XGwHJVhmn75PbJgrdBZI3d29284o mr8bQkpwzNrSrrSI6IDYRehCA90QE5V9IUjAFvppx0jvApsmy4+njrEuDtT5xHO9pHGmaXLh6 1zFkYvrbCpt8ELRqjrm0zWuk67P2Ai2FmH7Nx0x9EHIfuzH/u/btabIVEr5tnnstrJXzG/3c Received-SPF: pass client-ip=212.227.15.19; envelope-from=michael.albinus@gmx.de; helo=mout.gmx.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:304632 Archived-At: --=-=-= Content-Type: text/plain Thierry Volpiatto writes: > Hello Michael, Hi Thierry, >> And also, tramp-archive-file-name-handler checks in case of a file name >> "/path/to/file.tar/", whether "/path/to/file.tar" is a directory. >> In this case, tramp-archive also ceases to work. > > Yes, the problem we had in Helm was with while-no-input, when a check in > done under it (file-directory-p or whatever) a dbus event is sent and > while-no-input fails, we have to let bind while-no-input-ignore-events > with the new dbus-event added to fix the problem, perhaps tramp-archive > should take care of this? Indeed. dbus-event, file-notify and thread-event have been added to while-no-input-ignore-events in Emacs 29. What about the following patch? --=-=-= Content-Type: text/x-patch Content-Disposition: inline Content-Transfer-Encoding: quoted-printable diff --git a/lisp/tramp-gvfs.el b/lisp/tramp-gvfs.el index 7323374c..0d23f5d8 100644 =2D-- a/lisp/tramp-gvfs.el +++ b/lisp/tramp-gvfs.el @@ -872,6 +872,14 @@ arguments to pass to the OPERATION." (tramp-register-foreign-file-name-handler #'tramp-gvfs-file-name-p #'tramp-gvfs-file-name-handler))) +;; Event type `dbus-event' is added to `while-no-input-ignore-events' +;; in Emacs 29.1. If it is missing, some packages like Helm report +;; problems. So we add it here. +(when (and (featurep 'dbusbind) + (not (memq 'dbus-event while-no-input-ignore-events))) + (setq while-no-input-ignore-events + (cons 'dbus-event while-no-input-ignore-events))) + =0C ;; D-Bus helper function. --=-=-= Content-Type: text/plain > Thanks. Best regards, Michael. --=-=-=--