diff options
| author | Michael Albinus | 2020-04-16 19:51:23 +0200 |
|---|---|---|
| committer | Michael Albinus | 2020-04-16 19:51:23 +0200 |
| commit | 0bb3aec2675779d0e0aba12a60274aedea49086a (patch) | |
| tree | 853d66c4de588d83aab078bb1c7fa83391426193 | |
| parent | 22ba04742072098be60ec223ed2e97fa9a09b045 (diff) | |
| download | emacs-0bb3aec2675779d0e0aba12a60274aedea49086a.tar.gz emacs-0bb3aec2675779d0e0aba12a60274aedea49086a.zip | |
Ignore D-Bus errors in tramp-gvfs.el (Bug#40655)
* lisp/net/tramp-gvfs.el (with-tramp-dbus-call-method): Ignore D-Bus
errors. (Bug#40655)
| -rw-r--r-- | lisp/net/tramp-gvfs.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/net/tramp-gvfs.el b/lisp/net/tramp-gvfs.el index 526c564ee33..f19e510eb67 100644 --- a/lisp/net/tramp-gvfs.el +++ b/lisp/net/tramp-gvfs.el | |||
| @@ -912,7 +912,9 @@ or `dbus-call-method-asynchronously'." | |||
| 912 | #'dbus-call-method #'dbus-call-method-asynchronously)) | 912 | #'dbus-call-method #'dbus-call-method-asynchronously)) |
| 913 | (args (append (list ,bus ,service ,path ,interface ,method) | 913 | (args (append (list ,bus ,service ,path ,interface ,method) |
| 914 | (if ,synchronous (list ,@args) (list 'ignore ,@args))))) | 914 | (if ,synchronous (list ,@args) (list 'ignore ,@args))))) |
| 915 | (tramp-dbus-function ,vec func args))) | 915 | ;; We use `dbus-ignore-errors', because this macro is also called |
| 916 | ;; when loading. | ||
| 917 | (dbus-ignore-errors (tramp-dbus-function ,vec func args)))) | ||
| 916 | 918 | ||
| 917 | (font-lock-add-keywords 'emacs-lisp-mode '("\\<with-tramp-dbus-call-method\\>")) | 919 | (font-lock-add-keywords 'emacs-lisp-mode '("\\<with-tramp-dbus-call-method\\>")) |
| 918 | 920 | ||