diff options
| author | Michael Albinus | 2010-12-30 10:04:15 +0100 |
|---|---|---|
| committer | Michael Albinus | 2010-12-30 10:04:15 +0100 |
| commit | b191c9d952321d72a39937847eabb8ff492cbde0 (patch) | |
| tree | ff02661c3117888faa971131bf015a9a525f5ac3 | |
| parent | f1aab3ff300e301744206b6828c9931f87e196d6 (diff) | |
| download | emacs-b191c9d952321d72a39937847eabb8ff492cbde0.tar.gz emacs-b191c9d952321d72a39937847eabb8ff492cbde0.zip | |
* net/tramp.el (tramp-default-method-alist)
(tramp-default-user-alist)
(tramp-local-host-regexp, tramp-prefix-domain-format)
(tramp-prefix-domain-regexp): Set tramp-autoload cookie.
* net/tramp-ftp.el:
* net/tramp-gvfs.el:
* net/tramp-gw.el:
* net/tramp-imap.el:
* net/tramp-sh.el:
* net/tramp-smb.el: Add tramp-autoload cookie for initialisation
code of `tramp-default-method-alist' and `tramp-default-user-alist'.
| -rw-r--r-- | lisp/ChangeLog | 15 | ||||
| -rw-r--r-- | lisp/net/tramp-ftp.el | 12 | ||||
| -rw-r--r-- | lisp/net/tramp-gvfs.el | 1 | ||||
| -rw-r--r-- | lisp/net/tramp-gw.el | 1 | ||||
| -rw-r--r-- | lisp/net/tramp-imap.el | 1 | ||||
| -rw-r--r-- | lisp/net/tramp-sh.el | 3 | ||||
| -rw-r--r-- | lisp/net/tramp-smb.el | 2 | ||||
| -rw-r--r-- | lisp/net/tramp.el | 5 |
8 files changed, 34 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 3e9a7d09647..85a2b2114ec 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,18 @@ | |||
| 1 | 2010-12-30 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | * net/tramp.el (tramp-default-method-alist) | ||
| 4 | (tramp-default-user-alist) | ||
| 5 | (tramp-local-host-regexp, tramp-prefix-domain-format) | ||
| 6 | (tramp-prefix-domain-regexp): Set tramp-autoload cookie. | ||
| 7 | |||
| 8 | * net/tramp-ftp.el: | ||
| 9 | * net/tramp-gvfs.el: | ||
| 10 | * net/tramp-gw.el: | ||
| 11 | * net/tramp-imap.el: | ||
| 12 | * net/tramp-sh.el: | ||
| 13 | * net/tramp-smb.el: Add tramp-autoload cookie for initialisation | ||
| 14 | code of `tramp-default-method-alist' and `tramp-default-user-alist'. | ||
| 15 | |||
| 1 | 2010-12-29 Karl Fogel <kfogel@red-bean.com> | 16 | 2010-12-29 Karl Fogel <kfogel@red-bean.com> |
| 2 | 17 | ||
| 3 | * saveplace.el (save-place-alist-to-file): Save list sorted and | 18 | * saveplace.el (save-place-alist-to-file): Save list sorted and |
diff --git a/lisp/net/tramp-ftp.el b/lisp/net/tramp-ftp.el index a0db0199412..b6a3cffa211 100644 --- a/lisp/net/tramp-ftp.el +++ b/lisp/net/tramp-ftp.el | |||
| @@ -105,13 +105,13 @@ present for backward compatibility." | |||
| 105 | ;; ... and add it to the method list. | 105 | ;; ... and add it to the method list. |
| 106 | ;;;###tramp-autoload | 106 | ;;;###tramp-autoload |
| 107 | (unless (featurep 'xemacs) | 107 | (unless (featurep 'xemacs) |
| 108 | (add-to-list 'tramp-methods (cons tramp-ftp-method nil))) | 108 | (add-to-list 'tramp-methods (cons tramp-ftp-method nil)) |
| 109 | 109 | ||
| 110 | ;; Add some defaults for `tramp-default-method-alist'. | 110 | ;; Add some defaults for `tramp-default-method-alist'. |
| 111 | (add-to-list 'tramp-default-method-alist | 111 | (add-to-list 'tramp-default-method-alist |
| 112 | (list "\\`ftp\\." nil tramp-ftp-method)) | 112 | (list "\\`ftp\\." nil tramp-ftp-method)) |
| 113 | (add-to-list 'tramp-default-method-alist | 113 | (add-to-list 'tramp-default-method-alist |
| 114 | (list nil "\\`\\(anonymous\\|ftp\\)\\'" tramp-ftp-method)) | 114 | (list nil "\\`\\(anonymous\\|ftp\\)\\'" tramp-ftp-method))) |
| 115 | 115 | ||
| 116 | ;; Add completion function for FTP method. | 116 | ;; Add completion function for FTP method. |
| 117 | (tramp-set-completion-function | 117 | (tramp-set-completion-function |
diff --git a/lisp/net/tramp-gvfs.el b/lisp/net/tramp-gvfs.el index a87b58a42c2..0fb14657f94 100644 --- a/lisp/net/tramp-gvfs.el +++ b/lisp/net/tramp-gvfs.el | |||
| @@ -124,6 +124,7 @@ | |||
| 124 | 124 | ||
| 125 | ;; Add a default for `tramp-default-user-alist'. Rule: For the SYNCE | 125 | ;; Add a default for `tramp-default-user-alist'. Rule: For the SYNCE |
| 126 | ;; method, no user is chosen. | 126 | ;; method, no user is chosen. |
| 127 | ;;;###tramp-autoload | ||
| 127 | (add-to-list 'tramp-default-user-alist '("\\`synce\\'" nil nil)) | 128 | (add-to-list 'tramp-default-user-alist '("\\`synce\\'" nil nil)) |
| 128 | 129 | ||
| 129 | (defcustom tramp-gvfs-zeroconf-domain "local" | 130 | (defcustom tramp-gvfs-zeroconf-domain "local" |
diff --git a/lisp/net/tramp-gw.el b/lisp/net/tramp-gw.el index 0fac3935d73..543e4277d06 100644 --- a/lisp/net/tramp-gw.el +++ b/lisp/net/tramp-gw.el | |||
| @@ -72,6 +72,7 @@ | |||
| 72 | (list "Default server" "socks" tramp-gw-default-socks-port 5)) | 72 | (list "Default server" "socks" tramp-gw-default-socks-port 5)) |
| 73 | 73 | ||
| 74 | ;; Add a default for `tramp-default-user-alist'. Default is the local user. | 74 | ;; Add a default for `tramp-default-user-alist'. Default is the local user. |
| 75 | ;;;###tramp-autoload | ||
| 75 | (add-to-list | 76 | (add-to-list |
| 76 | 'tramp-default-user-alist | 77 | 'tramp-default-user-alist |
| 77 | (list (concat "\\`" | 78 | (list (concat "\\`" |
diff --git a/lisp/net/tramp-imap.el b/lisp/net/tramp-imap.el index d71583bcd85..e4490019531 100644 --- a/lisp/net/tramp-imap.el +++ b/lisp/net/tramp-imap.el | |||
| @@ -96,6 +96,7 @@ | |||
| 96 | (list tramp-imaps-method '(tramp-default-port 993)))) | 96 | (list tramp-imaps-method '(tramp-default-port 993)))) |
| 97 | 97 | ||
| 98 | ;; Add a default for `tramp-default-user-alist'. Default is the local user. | 98 | ;; Add a default for `tramp-default-user-alist'. Default is the local user. |
| 99 | ;;;###tramp-autoload | ||
| 99 | (add-to-list | 100 | (add-to-list |
| 100 | 'tramp-default-user-alist | 101 | 'tramp-default-user-alist |
| 101 | (list (concat "\\`" | 102 | (list (concat "\\`" |
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el index d5fa4eb76e8..86948bbc69b 100644 --- a/lisp/net/tramp-sh.el +++ b/lisp/net/tramp-sh.el | |||
| @@ -380,13 +380,16 @@ detected as prompt when being sent on echoing hosts, therefore.") | |||
| 380 | (tramp-copy-args (("%k" "-p"))) | 380 | (tramp-copy-args (("%k" "-p"))) |
| 381 | (tramp-copy-keep-date t))) | 381 | (tramp-copy-keep-date t))) |
| 382 | 382 | ||
| 383 | ;;;###tramp-autoload | ||
| 383 | (add-to-list 'tramp-default-method-alist | 384 | (add-to-list 'tramp-default-method-alist |
| 384 | `(,tramp-local-host-regexp "\\`root\\'" "su")) | 385 | `(,tramp-local-host-regexp "\\`root\\'" "su")) |
| 385 | 386 | ||
| 387 | ;;;###tramp-autoload | ||
| 386 | (add-to-list 'tramp-default-user-alist | 388 | (add-to-list 'tramp-default-user-alist |
| 387 | `(,(concat "\\`" (regexp-opt '("su" "sudo" "ksu")) "\\'") | 389 | `(,(concat "\\`" (regexp-opt '("su" "sudo" "ksu")) "\\'") |
| 388 | nil "root")) | 390 | nil "root")) |
| 389 | ;; Do not add "ssh" based methods, otherwise ~/.ssh/config would be ignored. | 391 | ;; Do not add "ssh" based methods, otherwise ~/.ssh/config would be ignored. |
| 392 | ;;;###tramp-autoload | ||
| 390 | (add-to-list 'tramp-default-user-alist | 393 | (add-to-list 'tramp-default-user-alist |
| 391 | `(,(concat | 394 | `(,(concat |
| 392 | "\\`" | 395 | "\\`" |
diff --git a/lisp/net/tramp-smb.el b/lisp/net/tramp-smb.el index b54bbf1fa56..0c1a1f8dcf4 100644 --- a/lisp/net/tramp-smb.el +++ b/lisp/net/tramp-smb.el | |||
| @@ -43,11 +43,13 @@ | |||
| 43 | 43 | ||
| 44 | ;; Add a default for `tramp-default-method-alist'. Rule: If there is | 44 | ;; Add a default for `tramp-default-method-alist'. Rule: If there is |
| 45 | ;; a domain in USER, it must be the SMB method. | 45 | ;; a domain in USER, it must be the SMB method. |
| 46 | ;;;###tramp-autoload | ||
| 46 | (add-to-list 'tramp-default-method-alist | 47 | (add-to-list 'tramp-default-method-alist |
| 47 | `(nil ,tramp-prefix-domain-regexp ,tramp-smb-method)) | 48 | `(nil ,tramp-prefix-domain-regexp ,tramp-smb-method)) |
| 48 | 49 | ||
| 49 | ;; Add a default for `tramp-default-user-alist'. Rule: For the SMB method, | 50 | ;; Add a default for `tramp-default-user-alist'. Rule: For the SMB method, |
| 50 | ;; the anonymous user is chosen. | 51 | ;; the anonymous user is chosen. |
| 52 | ;;;###tramp-autoload | ||
| 51 | (add-to-list 'tramp-default-user-alist | 53 | (add-to-list 'tramp-default-user-alist |
| 52 | `(,(concat "\\`" tramp-smb-method "\\'") nil nil)) | 54 | `(,(concat "\\`" tramp-smb-method "\\'") nil nil)) |
| 53 | 55 | ||
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 79f184efc25..c198d9e082d 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el | |||
| @@ -318,6 +318,7 @@ Also see `tramp-default-method-alist'." | |||
| 318 | :group 'tramp | 318 | :group 'tramp |
| 319 | :type 'string) | 319 | :type 'string) |
| 320 | 320 | ||
| 321 | ;;;###tramp-autoload | ||
| 321 | (defcustom tramp-default-method-alist nil | 322 | (defcustom tramp-default-method-alist nil |
| 322 | "*Default method to use for specific host/user pairs. | 323 | "*Default method to use for specific host/user pairs. |
| 323 | This is an alist of items (HOST USER METHOD). The first matching item | 324 | This is an alist of items (HOST USER METHOD). The first matching item |
| @@ -344,6 +345,7 @@ This variable is regarded as obsolete, and will be removed soon." | |||
| 344 | :group 'tramp | 345 | :group 'tramp |
| 345 | :type '(choice (const nil) string)) | 346 | :type '(choice (const nil) string)) |
| 346 | 347 | ||
| 348 | ;;;###tramp-autoload | ||
| 347 | (defcustom tramp-default-user-alist nil | 349 | (defcustom tramp-default-user-alist nil |
| 348 | "*Default user to use for specific method/host pairs. | 350 | "*Default user to use for specific method/host pairs. |
| 349 | This is an alist of items (METHOD HOST USER). The first matching item | 351 | This is an alist of items (METHOD HOST USER). The first matching item |
| @@ -384,6 +386,7 @@ interpreted as a regular expression which always matches." | |||
| 384 | (choice :tag "User regexp" regexp sexp) | 386 | (choice :tag "User regexp" regexp sexp) |
| 385 | (choice :tag " Proxy name" string (const nil))))) | 387 | (choice :tag " Proxy name" string (const nil))))) |
| 386 | 388 | ||
| 389 | ;;;###tramp-autoload | ||
| 387 | (defconst tramp-local-host-regexp | 390 | (defconst tramp-local-host-regexp |
| 388 | (concat | 391 | (concat |
| 389 | "\\`" | 392 | "\\`" |
| @@ -666,9 +669,11 @@ Derived from `tramp-postfix-method-format'.") | |||
| 666 | (defconst tramp-user-regexp "[^:/ \t]+" | 669 | (defconst tramp-user-regexp "[^:/ \t]+" |
| 667 | "*Regexp matching user names.") | 670 | "*Regexp matching user names.") |
| 668 | 671 | ||
| 672 | ;;;###tramp-autoload | ||
| 669 | (defconst tramp-prefix-domain-format "%" | 673 | (defconst tramp-prefix-domain-format "%" |
| 670 | "*String matching delimeter between user and domain names.") | 674 | "*String matching delimeter between user and domain names.") |
| 671 | 675 | ||
| 676 | ;;;###tramp-autoload | ||
| 672 | (defconst tramp-prefix-domain-regexp | 677 | (defconst tramp-prefix-domain-regexp |
| 673 | (regexp-quote tramp-prefix-domain-format) | 678 | (regexp-quote tramp-prefix-domain-format) |
| 674 | "*Regexp matching delimeter between user and domain names. | 679 | "*Regexp matching delimeter between user and domain names. |