aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2009-11-16 20:10:39 +0000
committerMichael Albinus2009-11-16 20:10:39 +0000
commitd3e971853d5d29230315e08421a3ccd6870886b3 (patch)
treeff45077648da50714d8111826a0a57ad0afb9e43
parent118141564bc12af7a2e2a9cd244808348f006a2a (diff)
downloademacs-d3e971853d5d29230315e08421a3ccd6870886b3.tar.gz
emacs-d3e971853d5d29230315e08421a3ccd6870886b3.zip
* net/tramp-gvfs.el (tramp-gvfs-dbus-event-error): Raise only an
error when `tramp-gvfs-dbus-event-vector' is set. (tramp-gvfs-maybe-open-connection): Loop over `read-event'.
-rw-r--r--lisp/ChangeLog8
-rw-r--r--lisp/net/tramp-gvfs.el11
2 files changed, 13 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index a77408c604c..fe04aeec167 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12009-11-16 Michael Albinus <michael.albinus@gmx.de>
2
3 * net/tramp-gvfs.el (tramp-gvfs-dbus-event-error): Raise only an
4 error when `tramp-gvfs-dbus-event-vector' is set.
5 (tramp-gvfs-maybe-open-connection): Loop over `read-event'.
6
12009-11-16 Stefan Monnier <monnier@iro.umontreal.ca> 72009-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
2 8
3 * vc-rcs.el (vc-rcs-consult-headers): Add missing save-excursion. 9 * vc-rcs.el (vc-rcs-consult-headers): Add missing save-excursion.
@@ -5,7 +11,7 @@
52009-11-16 Michael Albinus <michael.albinus@gmx.de> 112009-11-16 Michael Albinus <michael.albinus@gmx.de>
6 12
7 * net/dbus.el (dbus-unregister-service): New defun. 13 * net/dbus.el (dbus-unregister-service): New defun.
8 (dbus-register-property): Register the handlers for 14 (dbus-register-property): Register the handlers of
9 "org.freedesktop.DBus.Properties" for SERVICE. 15 "org.freedesktop.DBus.Properties" for SERVICE.
10 (dbus-property-handler): Fix docstring. 16 (dbus-property-handler): Fix docstring.
11 17
diff --git a/lisp/net/tramp-gvfs.el b/lisp/net/tramp-gvfs.el
index 94f6f742017..a04f891b3f5 100644
--- a/lisp/net/tramp-gvfs.el
+++ b/lisp/net/tramp-gvfs.el
@@ -196,7 +196,7 @@
196 196
197;; <interface name='org.gtk.vfs.MountOperation'> 197;; <interface name='org.gtk.vfs.MountOperation'>
198;; <method name='askPassword'> 198;; <method name='askPassword'>
199;; <arg name='message' type='s' direction='in'/> 199;; <arg name='message' type='s' direction='in'/>
200;; <arg name='default_user' type='s' direction='in'/> 200;; <arg name='default_user' type='s' direction='in'/>
201;; <arg name='default_domain' type='s' direction='in'/> 201;; <arg name='default_domain' type='s' direction='in'/>
202;; <arg name='flags' type='u' direction='in'/> 202;; <arg name='flags' type='u' direction='in'/>
@@ -499,9 +499,10 @@ is no information where to trace the message.")
499 499
500(defun tramp-gvfs-dbus-event-error (event err) 500(defun tramp-gvfs-dbus-event-error (event err)
501 "Called when a D-Bus error message arrives, see `dbus-event-error-hooks'." 501 "Called when a D-Bus error message arrives, see `dbus-event-error-hooks'."
502; (tramp-cleanup-connection tramp-gvfs-dbus-event-vector) 502 (when tramp-gvfs-dbus-event-vector
503 (tramp-message tramp-gvfs-dbus-event-vector 1 "%S" event) 503 ;(tramp-cleanup-connection tramp-gvfs-dbus-event-vector)
504 (tramp-error tramp-gvfs-dbus-event-vector 'file-error "%s" (cadr err))) 504 (tramp-message tramp-gvfs-dbus-event-vector 10 "%S" event)
505 (tramp-error tramp-gvfs-dbus-event-vector 'file-error "%s" (cadr err))))
505 506
506(add-hook 'dbus-event-error-hooks 'tramp-gvfs-dbus-event-error) 507(add-hook 'dbus-event-error-hooks 'tramp-gvfs-dbus-event-error)
507 508
@@ -1092,7 +1093,7 @@ connection if a previous connection has died for some reason."
1092 vec 'file-error 1093 vec 'file-error
1093 "Timeout reached mounting %s@%s using %s" user host method))) 1094 "Timeout reached mounting %s@%s using %s" user host method)))
1094 (while (not (tramp-get-file-property vec "/" "fuse-mountpoint" nil)) 1095 (while (not (tramp-get-file-property vec "/" "fuse-mountpoint" nil))
1095 (sit-for 0.1))) 1096 (read-event nil nil 0.1)))
1096 1097
1097 ;; We set the connection property "started" in order to put the 1098 ;; We set the connection property "started" in order to put the
1098 ;; remote location into the cache, which is helpful for further 1099 ;; remote location into the cache, which is helpful for further