diff options
| -rw-r--r-- | lisp/ChangeLog | 10 | ||||
| -rw-r--r-- | lisp/net/tramp.el | 36 |
2 files changed, 29 insertions, 17 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d451a9620b6..2d55c0bb457 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,13 @@ | |||
| 1 | 2009-08-04 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | * net/tramp.el (top): Make check for tramp-gvfs loading more | ||
| 4 | robust. | ||
| 5 | (tramp-handle-insert-file-contents): `unwind-protect' must be | ||
| 6 | inside `with-parsed-tramp-file-name'. | ||
| 7 | |||
| 8 | * net/tramp-gvfs.el (top): Remove superfluous message when loading | ||
| 9 | fails. | ||
| 10 | |||
| 1 | 2009-08-03 Nick Roberts <nickrob@snap.net.nz> | 11 | 2009-08-03 Nick Roberts <nickrob@snap.net.nz> |
| 2 | 12 | ||
| 3 | * progmodes/gud.el (jdb): Set gud-jdb-classpath-string to current | 13 | * progmodes/gud.el (jdb): Set gud-jdb-classpath-string to current |
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index df2f10ba5dd..4ccf2ab6e58 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el | |||
| @@ -143,6 +143,9 @@ | |||
| 143 | ;; tramp-gvfs needs D-Bus messages. Available since Emacs 23 | 143 | ;; tramp-gvfs needs D-Bus messages. Available since Emacs 23 |
| 144 | ;; on some system types. | 144 | ;; on some system types. |
| 145 | (when (and (featurep 'dbusbind) | 145 | (when (and (featurep 'dbusbind) |
| 146 | (condition-case nil | ||
| 147 | (funcall 'dbus-get-unique-name :session) | ||
| 148 | (error nil)) | ||
| 146 | (tramp-compat-process-running-p "gvfs-fuse-daemon")) | 149 | (tramp-compat-process-running-p "gvfs-fuse-daemon")) |
| 147 | 'tramp-gvfs) | 150 | 'tramp-gvfs) |
| 148 | 151 | ||
| @@ -4213,9 +4216,8 @@ coding system might not be determined. This function repairs it." | |||
| 4213 | (barf-if-buffer-read-only) | 4216 | (barf-if-buffer-read-only) |
| 4214 | (setq filename (expand-file-name filename)) | 4217 | (setq filename (expand-file-name filename)) |
| 4215 | (let (coding-system-used result local-copy remote-copy) | 4218 | (let (coding-system-used result local-copy remote-copy) |
| 4216 | (unwind-protect | 4219 | (with-parsed-tramp-file-name filename nil |
| 4217 | (with-parsed-tramp-file-name filename nil | 4220 | (unwind-protect |
| 4218 | |||
| 4219 | (if (not (file-exists-p filename)) | 4221 | (if (not (file-exists-p filename)) |
| 4220 | ;; We don't raise a Tramp error, because it might be | 4222 | ;; We don't raise a Tramp error, because it might be |
| 4221 | ;; suppressed, like in `find-file-noselect-1'. | 4223 | ;; suppressed, like in `find-file-noselect-1'. |
| @@ -4286,20 +4288,20 @@ coding system might not be determined. This function repairs it." | |||
| 4286 | (tramp-message | 4288 | (tramp-message |
| 4287 | v 4 "Inserting local temp file `%s'...done" local-copy) | 4289 | v 4 "Inserting local temp file `%s'...done" local-copy) |
| 4288 | (when (boundp 'last-coding-system-used) | 4290 | (when (boundp 'last-coding-system-used) |
| 4289 | (set 'last-coding-system-used coding-system-used))))) | 4291 | (set 'last-coding-system-used coding-system-used)))) |
| 4290 | 4292 | ||
| 4291 | ;; Save exit. | 4293 | ;; Save exit. |
| 4292 | (progn | 4294 | (progn |
| 4293 | (when visit | 4295 | (when visit |
| 4294 | (setq buffer-file-name filename) | 4296 | (setq buffer-file-name filename) |
| 4295 | (setq buffer-read-only (not (file-writable-p filename))) | 4297 | (setq buffer-read-only (not (file-writable-p filename))) |
| 4296 | (set-visited-file-modtime) | 4298 | (set-visited-file-modtime) |
| 4297 | (set-buffer-modified-p nil)) | 4299 | (set-buffer-modified-p nil)) |
| 4298 | (when (stringp local-copy) | 4300 | (when (stringp local-copy) |
| 4299 | (delete-file local-copy)) | 4301 | (delete-file local-copy)) |
| 4300 | (when (stringp remote-copy) | 4302 | (when (stringp remote-copy) |
| 4301 | (delete-file | 4303 | (delete-file |
| 4302 | (tramp-make-tramp-file-name method user host remote-copy))))) | 4304 | (tramp-make-tramp-file-name method user host remote-copy)))))) |
| 4303 | 4305 | ||
| 4304 | ;; Result. | 4306 | ;; Result. |
| 4305 | (list (expand-file-name filename) | 4307 | (list (expand-file-name filename) |
| @@ -4919,7 +4921,7 @@ Falls back to normal file name handler if no Tramp file name handler exists." | |||
| 4919 | (cons jka (delete jka file-name-handler-alist)))))) | 4921 | (cons jka (delete jka file-name-handler-alist)))))) |
| 4920 | 4922 | ||
| 4921 | ;; During autoload, it shall be checked whether | 4923 | ;; During autoload, it shall be checked whether |
| 4922 | ;; `partial-completion-mode' is active. Therefore registering of | 4924 | ;; `partial-completion-mode' is active. Therefore, registering of |
| 4923 | ;; `tramp-completion-file-name-handler' will be delayed. | 4925 | ;; `tramp-completion-file-name-handler' will be delayed. |
| 4924 | ;;;###autoload(add-hook | 4926 | ;;;###autoload(add-hook |
| 4925 | ;;;###autoload 'after-init-hook | 4927 | ;;;###autoload 'after-init-hook |