* riece-rdcc.el (riece-rdcc-server-port): New user option.
authorueno <ueno>
Mon, 16 Apr 2007 03:26:53 +0000 (03:26 +0000)
committerueno <ueno>
Mon, 16 Apr 2007 03:26:53 +0000 (03:26 +0000)
(riece-rdcc-send-program): Bind `port'.

lisp/ChangeLog
lisp/riece-rdcc.el

index 0bbd3a3..e094a27 100644 (file)
@@ -1,9 +1,7 @@
 2007-04-16  Daiki Ueno  <ueno@unixuser.org>
 
-       * riece-rdcc.el (riece-rdcc-server-address): Accept a cons cell to
-       specify the sending port.
+       * riece-rdcc.el (riece-rdcc-server-port): New user option.
        (riece-rdcc-send-program): Bind `port'.
-       (riece-command-dcc-send): Extract port from riece-rdcc-server-address.
 
 2007-02-12  Daiki Ueno  <ueno@unixuser.org>
 
index 7c0d86d..09950b8 100644 (file)
 (defcustom riece-rdcc-server-address nil
   "Local address of the DCC server.
 Only used for sending files."
-  :type '(choice (string :tag "Address")
-                (cons (string :tag "Address") (integer :tag "Port")))
+  :type 'string
+  :group 'riece-rdcc)
+
+(defcustom riece-rdcc-server-port nil
+  "Local address of the DCC server.
+Only used for sending files."
+  :type 'integer
   :group 'riece-rdcc)
 
 (defcustom riece-rdcc-send-program
@@ -148,17 +153,12 @@ end
                riece-rdcc-send-program
                (list (cons 'address
                            (if riece-rdcc-server-address
-                               (if (consp riece-rdcc-server-address)
-                                   (concat "'" (car riece-rdcc-server-address)
-                                           "'")
-                                 (concat "'" riece-rdcc-server-address
-                                         "'"))
+                               (concat "'" riece-rdcc-server-address
+                                         "'")
                              "nil"))
                      (cons 'port
-                           (if (and riece-rdcc-server-address
-                                    (consp riece-rdcc-server-address))
-                               (number-to-string
-                                (cdr riece-rdcc-server-address))
+                           (if riece-rdcc-server-port
+                               (number-to-string riece-rdcc-server-port)
                              "0"))
                      (cons 'file
                            (concat "'" file "'"))