unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* type of port of url
@ 2004-10-27  5:18 Masatake YAMATO
  2004-10-28  6:25 ` Richard Stallman
  2004-11-11 18:09 ` running mm-destroy-parts when (mm-display-part handle) returns inline Masatake YAMATO
  0 siblings, 2 replies; 4+ messages in thread
From: Masatake YAMATO @ 2004-10-27  5:18 UTC (permalink / raw)
  Cc: emacs-devel

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)))

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-11-11 18:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-27  5:18 type of port of url Masatake YAMATO
2004-10-28  6:25 ` Richard Stallman
2004-11-01 17:40   ` Masatake YAMATO
2004-11-11 18:09 ` running mm-destroy-parts when (mm-display-part handle) returns inline Masatake YAMATO

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).