diff options
| -rw-r--r-- | lisp/net/tramp.el | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 87ccae12ca2..aa335d3ce02 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el | |||
| @@ -2110,7 +2110,7 @@ Falls back to normal file name handler if no Tramp file name handler exists." | |||
| 2110 | (let ((fn (assoc operation tramp-completion-file-name-handler-alist))) | 2110 | (let ((fn (assoc operation tramp-completion-file-name-handler-alist))) |
| 2111 | (if (and | 2111 | (if (and |
| 2112 | ;; When `tramp-mode' is not enabled, we don't do anything. | 2112 | ;; When `tramp-mode' is not enabled, we don't do anything. |
| 2113 | fn tramp-mode | 2113 | fn tramp-mode (tramp-completion-mode-p) |
| 2114 | ;; For other syntaxes than `sep', the regexp matches many common | 2114 | ;; For other syntaxes than `sep', the regexp matches many common |
| 2115 | ;; situations where the user doesn't actually want to use Tramp. | 2115 | ;; situations where the user doesn't actually want to use Tramp. |
| 2116 | ;; So to avoid autoloading Tramp after typing just "/s", we | 2116 | ;; So to avoid autoloading Tramp after typing just "/s", we |
| @@ -2217,6 +2217,7 @@ Falls back to normal file name handler if no Tramp file name handler exists." | |||
| 2217 | 2217 | ||
| 2218 | ;;; File name handler functions for completion mode: | 2218 | ;;; File name handler functions for completion mode: |
| 2219 | 2219 | ||
| 2220 | ;;;###autoload | ||
| 2220 | (defvar tramp-completion-mode nil | 2221 | (defvar tramp-completion-mode nil |
| 2221 | "If non-nil, external packages signal that they are in file name completion. | 2222 | "If non-nil, external packages signal that they are in file name completion. |
| 2222 | 2223 | ||
| @@ -2236,8 +2237,8 @@ should never be set globally, the intention is to let-bind it.") | |||
| 2236 | ;; Tramp file name syntax. Maybe another variable should be introduced | 2237 | ;; Tramp file name syntax. Maybe another variable should be introduced |
| 2237 | ;; overwriting this check in such cases. Or we change Tramp file name | 2238 | ;; overwriting this check in such cases. Or we change Tramp file name |
| 2238 | ;; syntax in order to avoid ambiguities. | 2239 | ;; syntax in order to avoid ambiguities. |
| 2239 | ;;;###tramp-autoload | 2240 | ;;;###autoload |
| 2240 | (defun tramp-completion-mode-p () | 2241 | (progn (defun tramp-completion-mode-p () |
| 2241 | "Check, whether method / user name / host name completion is active." | 2242 | "Check, whether method / user name / host name completion is active." |
| 2242 | (or | 2243 | (or |
| 2243 | ;; Signal from outside. `non-essential' has been introduced in Emacs 24. | 2244 | ;; Signal from outside. `non-essential' has been introduced in Emacs 24. |
| @@ -2250,7 +2251,7 @@ should never be set globally, the intention is to let-bind it.") | |||
| 2250 | (equal last-input-event ?\t) | 2251 | (equal last-input-event ?\t) |
| 2251 | (and (not (event-modifiers last-input-event)) | 2252 | (and (not (event-modifiers last-input-event)) |
| 2252 | (or (equal last-input-event ?\?) | 2253 | (or (equal last-input-event ?\?) |
| 2253 | (equal last-input-event ?\ ))))))) | 2254 | (equal last-input-event ?\ )))))))) |
| 2254 | 2255 | ||
| 2255 | (defun tramp-connectable-p (filename) | 2256 | (defun tramp-connectable-p (filename) |
| 2256 | "Check, whether it is possible to connect the remote host w/o side-effects. | 2257 | "Check, whether it is possible to connect the remote host w/o side-effects. |