From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Masatake YAMATO Newsgroups: gmane.emacs.devel Subject: type of port of url Date: Wed, 27 Oct 2004 14:18:08 +0900 (JST) Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: <20041027.141808.202854715.jet@gyve.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1098854492 20334 80.91.229.6 (27 Oct 2004 05:21:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 27 Oct 2004 05:21:32 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 27 07:21:18 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CMgFJ-0006Ih-00 for ; Wed, 27 Oct 2004 07:21:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CMgN3-0003C3-4s for ged-emacs-devel@m.gmane.org; Wed, 27 Oct 2004 01:29:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CMgMu-0003Bm-Dd for emacs-devel@gnu.org; Wed, 27 Oct 2004 01:29:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CMgMu-0003Ba-0m for emacs-devel@gnu.org; Wed, 27 Oct 2004 01:29:08 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CMgMt-0003BX-TO for emacs-devel@gnu.org; Wed, 27 Oct 2004 01:29:07 -0400 Original-Received: from [210.130.136.40] (helo=r-maa.spacetown.ne.jp) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CMgF1-0000rG-UP; Wed, 27 Oct 2004 01:21:00 -0400 Original-Received: from localhost (h219-110-074-068.catv01.itscom.jp [219.110.74.68]) by r-maa.spacetown.ne.jp (8.11.6) with ESMTP id i9R5Ks008783; Wed, 27 Oct 2004 14:20:55 +0900 (JST) Original-To: Bill Perry X-Mailer: Mew version 4.0.62 on Emacs 21.3.50 / Mule 5.0 (SAKAKI) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:29019 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:29019 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)))