changeset 111765:202eb704e80b

* net/tramp.el (tramp-default-method-alist) (tramp-default-user-alist, tramp-default-proxies-alist): Adapt custom options type. (Bug#7445)
author Michael Albinus <michael.albinus@gmx.de>
date Tue, 23 Nov 2010 20:52:25 +0100
parents c757f4efde4e
children 7bd5c179aeff
files lisp/ChangeLog lisp/net/tramp.el
diffstat 2 files changed, 13 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Tue Nov 23 10:16:21 2010 -0800
+++ b/lisp/ChangeLog	Tue Nov 23 20:52:25 2010 +0100
@@ -1,3 +1,9 @@
+2010-11-23  Michael Albinus  <michael.albinus@gmx.de>
+
+	* net/tramp.el (tramp-default-method-alist)
+	(tramp-default-user-alist, tramp-default-proxies-alist): Adapt
+	custom options type.  (Bug#7445)
+
 2010-11-21  Chong Yidong  <cyd@stupidchicken.com>
 
 	* progmodes/python.el: Add Ipython support (Bug#5390).
--- a/lisp/net/tramp.el	Tue Nov 23 10:16:21 2010 -0800
+++ b/lisp/net/tramp.el	Tue Nov 23 20:52:25 2010 +0100
@@ -814,9 +814,9 @@
 
 See `tramp-methods' for a list of possibilities for METHOD."
   :group 'tramp
-  :type '(repeat (list (regexp :tag "Host regexp")
-		       (regexp :tag "User regexp")
-		       (string :tag "Method"))))
+  :type '(repeat (list (choice :tag "Host regexp" regexp sexp)
+		       (choice :tag "User regexp" regexp sexp)
+		       (choice :tag "Method name" string (const nil)))))
 
 (defcustom tramp-default-user
   nil
@@ -842,9 +842,9 @@
 If the file name does not specify the method, lookup is done using the
 empty string for the method name."
   :group 'tramp
-  :type '(repeat (list (regexp :tag "Method regexp")
-		       (regexp :tag "Host regexp")
-		       (string :tag "User"))))
+  :type '(repeat (list (choice :tag "Method regexp" regexp sexp)
+		       (choice :tag "  Host regexp" regexp sexp)
+		       (choice :tag "    User name" string (const nil)))))
 
 (defcustom tramp-default-host
   (system-name)
@@ -870,7 +870,7 @@
   :group 'tramp
   :type '(repeat (list (choice :tag "Host regexp" regexp sexp)
 		       (choice :tag "User regexp" regexp sexp)
-		       (choice :tag "Proxy remote name" string (const nil)))))
+		       (choice :tag " Proxy name" string (const nil)))))
 
 (defconst tramp-local-host-regexp
   (concat