[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tramp "too many open files" [Re: bug#56606
From: |
Michael Albinus |
Subject: |
Re: tramp "too many open files" [Re: bug#56606 |
Date: |
Tue, 21 Mar 2023 10:22:05 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Thierry Volpiatto <thievol@posteo.net> 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?
diff --git a/lisp/tramp-gvfs.el b/lisp/tramp-gvfs.el
index 7323374c..0d23f5d8 100644
--- 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)))
+
;; D-Bus helper function.
> Thanks.
Best regards, Michael.
- tramp "too many open files" [Re: bug#56606, Madhu, 2023/03/20
- Re: tramp "too many open files" [Re: bug#56606, Thierry Volpiatto, 2023/03/20
- Re: tramp "too many open files" [Re: bug#56606, Michael Albinus, 2023/03/20
- Re: tramp "too many open files" [Re: bug#56606, Thierry Volpiatto, 2023/03/20
- Re: tramp "too many open files" [Re: bug#56606, Michael Albinus, 2023/03/20
- Re: tramp "too many open files" [Re: bug#56606, Thierry Volpiatto, 2023/03/21
- Re: tramp "too many open files" [Re: bug#56606,
Michael Albinus <=
- Re: tramp "too many open files" [Re: bug#56606, Thierry Volpiatto, 2023/03/21
- Re: tramp "too many open files" [Re: bug#56606, Michael Albinus, 2023/03/21
- Re: tramp "too many open files" [Re: bug#56606, Thierry Volpiatto, 2023/03/21
Re: tramp "too many open files" [Re: bug#56606, Michael Albinus, 2023/03/20