diff options
| author | Michael Albinus | 2016-05-12 13:01:11 +0200 |
|---|---|---|
| committer | Michael Albinus | 2016-05-12 13:01:11 +0200 |
| commit | 9872736ab7ada8132ebeafa8a699faf93772d7b4 (patch) | |
| tree | c2b0314120963d65846a6dd9e2bb5a1fa60acca6 | |
| parent | a8be7c1ec40c9fab3407a0bc59e20141364e231f (diff) | |
| download | emacs-9872736ab7ada8132ebeafa8a699faf93772d7b4.tar.gz emacs-9872736ab7ada8132ebeafa8a699faf93772d7b4.zip | |
Do not autoload some functions of tramp.el
* lisp/net/tramp.el (tramp-completion-file-name-handler):
Autoload a shortened version of this function, avoid recursive load.
(tramp-completion-file-name-handler-alist)
(tramp-completion-mode-p)
(tramp-completion-handle-expand-file-name)
(tramp-completion-handle-file-name-all-completions)
(tramp-completion-handle-file-name-completion): Do not autoload.
| -rw-r--r-- | lisp/net/tramp.el | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 41d67d4c79a..d6911def5f2 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el | |||
| @@ -1008,7 +1008,6 @@ means to use always cached values for the directory contents." | |||
| 1008 | (defvar tramp-current-connection nil | 1008 | (defvar tramp-current-connection nil |
| 1009 | "Last connection timestamp.") | 1009 | "Last connection timestamp.") |
| 1010 | 1010 | ||
| 1011 | ;;;###autoload | ||
| 1012 | (defconst tramp-completion-file-name-handler-alist | 1011 | (defconst tramp-completion-file-name-handler-alist |
| 1013 | '((expand-file-name . tramp-completion-handle-expand-file-name) | 1012 | '((expand-file-name . tramp-completion-handle-expand-file-name) |
| 1014 | (file-name-all-completions | 1013 | (file-name-all-completions |
| @@ -2241,8 +2240,7 @@ should never be set globally, the intention is to let-bind it.") | |||
| 2241 | ;; Tramp file name syntax. Maybe another variable should be introduced | 2240 | ;; Tramp file name syntax. Maybe another variable should be introduced |
| 2242 | ;; overwriting this check in such cases. Or we change Tramp file name | 2241 | ;; overwriting this check in such cases. Or we change Tramp file name |
| 2243 | ;; syntax in order to avoid ambiguities. | 2242 | ;; syntax in order to avoid ambiguities. |
| 2244 | ;;;###autoload | 2243 | (defun tramp-completion-mode-p () |
| 2245 | (progn (defun tramp-completion-mode-p () | ||
| 2246 | "Check, whether method / user name / host name completion is active." | 2244 | "Check, whether method / user name / host name completion is active." |
| 2247 | (or | 2245 | (or |
| 2248 | ;; Signal from outside. `non-essential' has been introduced in Emacs 24. | 2246 | ;; Signal from outside. `non-essential' has been introduced in Emacs 24. |
| @@ -2255,7 +2253,7 @@ should never be set globally, the intention is to let-bind it.") | |||
| 2255 | (equal last-input-event ?\t) | 2253 | (equal last-input-event ?\t) |
| 2256 | (and (not (event-modifiers last-input-event)) | 2254 | (and (not (event-modifiers last-input-event)) |
| 2257 | (or (equal last-input-event ?\?) | 2255 | (or (equal last-input-event ?\?) |
| 2258 | (equal last-input-event ?\ )))))))) | 2256 | (equal last-input-event ?\ ))))))) |
| 2259 | 2257 | ||
| 2260 | (defun tramp-connectable-p (filename) | 2258 | (defun tramp-connectable-p (filename) |
| 2261 | "Check, whether it is possible to connect the remote host w/o side-effects. | 2259 | "Check, whether it is possible to connect the remote host w/o side-effects. |
| @@ -2268,7 +2266,6 @@ not in completion mode." | |||
| 2268 | (p (tramp-get-connection-process v))) | 2266 | (p (tramp-get-connection-process v))) |
| 2269 | (and p (processp p) (memq (process-status p) '(run open)))))))) | 2267 | (and p (processp p) (memq (process-status p) '(run open)))))))) |
| 2270 | 2268 | ||
| 2271 | ;;;###autoload | ||
| 2272 | (defun tramp-completion-handle-expand-file-name | 2269 | (defun tramp-completion-handle-expand-file-name |
| 2273 | (name &optional dir) | 2270 | (name &optional dir) |
| 2274 | "Like `expand-file-name' for Tramp files." | 2271 | "Like `expand-file-name' for Tramp files." |
| @@ -2288,7 +2285,6 @@ not in completion mode." | |||
| 2288 | ;; Method, host name and user name completion. | 2285 | ;; Method, host name and user name completion. |
| 2289 | ;; `tramp-completion-dissect-file-name' returns a list of | 2286 | ;; `tramp-completion-dissect-file-name' returns a list of |
| 2290 | ;; tramp-file-name structures. For all of them we return possible completions. | 2287 | ;; tramp-file-name structures. For all of them we return possible completions. |
| 2291 | ;;;###autoload | ||
| 2292 | (defun tramp-completion-handle-file-name-all-completions (filename directory) | 2288 | (defun tramp-completion-handle-file-name-all-completions (filename directory) |
| 2293 | "Like `file-name-all-completions' for partial Tramp files." | 2289 | "Like `file-name-all-completions' for partial Tramp files." |
| 2294 | 2290 | ||
| @@ -2361,7 +2357,6 @@ not in completion mode." | |||
| 2361 | 'file-name-all-completions (list (list filename directory))))))) | 2357 | 'file-name-all-completions (list (list filename directory))))))) |
| 2362 | 2358 | ||
| 2363 | ;; Method, host name and user name completion for a file. | 2359 | ;; Method, host name and user name completion for a file. |
| 2364 | ;;;###autoload | ||
| 2365 | (defun tramp-completion-handle-file-name-completion | 2360 | (defun tramp-completion-handle-file-name-completion |
| 2366 | (filename directory &optional predicate) | 2361 | (filename directory &optional predicate) |
| 2367 | "Like `file-name-completion' for Tramp files." | 2362 | "Like `file-name-completion' for Tramp files." |