]> git.eshelyaron.com Git - emacs.git/commitdiff
Improve Tramp backward compatibility
authorMichael Albinus <michael.albinus@gmx.de>
Tue, 21 Mar 2023 15:14:40 +0000 (16:14 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Tue, 21 Mar 2023 15:14:40 +0000 (16:14 +0100)
* lisp/net/tramp-gvfs.el (while-no-input-ignore-events):
Add `dbus-event' for older Emacs versions.

lisp/net/tramp-gvfs.el

index 7323374c607966267b7fcd92d1bfffbda879f60b..0d23f5d88d58ef0c359612649369ff9b59ceec5a 100644 (file)
@@ -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)))
+
 \f
 ;; D-Bus helper function.