[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
type of port of url
From: |
Masatake YAMATO |
Subject: |
type of port of url |
Date: |
Wed, 27 Oct 2004 14:18:08 +0900 (JST) |
Dear, Sir
I'm trying your url package.
I have a question about the port slot of url object passed to
url-protocol, e.g. url-irc.
Is the port a string or integer?
In the function, url-irc, it seems that url-port is expected to return a string.
However, it returns an integer. Attached patch is required to use url-irc.el.
string-to-int is also used in some other places in url packages to
convert the type of port.
Masatake YAMATO
Index: lisp/url/url-irc.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/url/url-irc.el,v
retrieving revision 1.5
diff -u -r1.5 url-irc.el
--- lisp/url/url-irc.el 19 Oct 2004 21:36:00 -0000 1.5
+++ lisp/url/url-irc.el 27 Oct 2004 05:14:04 -0000
@@ -61,7 +61,9 @@
;;;###autoload
(defun url-irc (url)
(let* ((host (url-host url))
- (port (string-to-int (url-port url)))
+ (port (if (stringp port)
+ (string-to-int (url-port url))
+ (url-port url)))
(pass (url-password url))
(user (url-user url))
(chan (url-filename url)))
- type of port of url,
Masatake YAMATO <=