diff options
| author | Michael Albinus | 2011-07-22 13:04:55 +0200 |
|---|---|---|
| committer | Michael Albinus | 2011-07-22 13:04:55 +0200 |
| commit | 11d074b2952909def6ab8e0f8313e84ec440cdc9 (patch) | |
| tree | f778d08b23076b6fb3251a63892c2ceea5a857a5 | |
| parent | 043604ee51e5b5e0d0f645b999a35a1609a16b24 (diff) | |
| download | emacs-11d074b2952909def6ab8e0f8313e84ec440cdc9.tar.gz emacs-11d074b2952909def6ab8e0f8313e84ec440cdc9.zip | |
* net/tramp.el (tramp-file-name-handler): Avoid recursive
loading. (Bug#9114)
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/net/tramp.el | 12 |
2 files changed, 16 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a2169898670..848d991feed 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-07-22 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | * net/tramp.el (tramp-file-name-handler): Avoid recursive | ||
| 4 | loading. (Bug#9114) | ||
| 5 | |||
| 1 | 2011-07-21 Martin Rudalics <rudalics@gmx.at> | 6 | 2011-07-21 Martin Rudalics <rudalics@gmx.at> |
| 2 | 7 | ||
| 3 | * window.el (display-buffer-pop-up-window) | 8 | * window.el (display-buffer-pop-up-window) |
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 82d878a6fa8..9b11ef58eab 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el | |||
| @@ -1876,7 +1876,17 @@ Falls back to normal file name handler if no Tramp file name handler exists." | |||
| 1876 | ;; Call the backend function. | 1876 | ;; Call the backend function. |
| 1877 | (if foreign | 1877 | (if foreign |
| 1878 | (condition-case err | 1878 | (condition-case err |
| 1879 | (apply foreign operation args) | 1879 | (let ((sf (symbol-function foreign))) |
| 1880 | ;; Some packages set the default directory to a | ||
| 1881 | ;; remote path, before respective Tramp packages | ||
| 1882 | ;; are already loaded. This results in | ||
| 1883 | ;; recursive loading. Therefore, we load the | ||
| 1884 | ;; Tramp packages locally. | ||
| 1885 | (when (and (listp sf) (eq (car sf) 'autoload)) | ||
| 1886 | (let ((default-directory | ||
| 1887 | (tramp-compat-temporary-file-directory))) | ||
| 1888 | (load (cadr sf) 'noerror))) | ||
| 1889 | (apply foreign operation args)) | ||
| 1880 | 1890 | ||
| 1881 | ;; Trace that somebody has interrupted the operation. | 1891 | ;; Trace that somebody has interrupted the operation. |
| 1882 | (quit | 1892 | (quit |