Mercurial > emacs
comparison lisp/url/url-irc.el @ 110307:5495085c9b6c
lisp/url tiny fixes.
* url-cache.el, url-gw.el, url-history.el, url-irc.el, url-util.el:
* url-vars.el: Remove leading `*' from defcustom docs.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Fri, 10 Sep 2010 18:58:42 -0700 |
parents | 1d1d5d9bd884 |
children | 417b1e4d63cd |
comparison
equal
deleted
inserted
replaced
110306:838fb634d1b0 | 110307:5495085c9b6c |
---|---|
1 ;;; url-irc.el --- IRC URL interface | 1 ;;; url-irc.el --- IRC URL interface |
2 | 2 |
3 ;; Copyright (C) 1996, 1997, 1998, 1999, 2004, | 3 ;; Copyright (C) 1996, 1997, 1998, 1999, 2004, 2005, 2006, 2007, 2008, |
4 ;; 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. | 4 ;; 2009, 2010 Free Software Foundation, Inc. |
5 | 5 |
6 ;; Keywords: comm, data, processes | 6 ;; Keywords: comm, data, processes |
7 | 7 |
8 ;; This file is part of GNU Emacs. | 8 ;; This file is part of GNU Emacs. |
9 | 9 |
20 ;; You should have received a copy of the GNU General Public License | 20 ;; You should have received a copy of the GNU General Public License |
21 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. | 21 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. |
22 | 22 |
23 ;;; Commentary: | 23 ;;; Commentary: |
24 | 24 |
25 ;; IRC URLs are defined in http://www.w3.org/Addressing/draft-mirashi-url-irc-01.txt | 25 ;; IRC URLs are defined in |
26 ;; http://www.w3.org/Addressing/draft-mirashi-url-irc-01.txt | |
26 | 27 |
27 ;;; Code: | 28 ;;; Code: |
28 | 29 |
29 (require 'url-vars) | 30 (require 'url-vars) |
30 (require 'url-parse) | 31 (require 'url-parse) |
31 | 32 |
32 (defconst url-irc-default-port 6667 "Default port for IRC connections.") | 33 (defconst url-irc-default-port 6667 "Default port for IRC connections.") |
33 | 34 |
34 (defcustom url-irc-function 'url-irc-rcirc | 35 (defcustom url-irc-function 'url-irc-rcirc |
35 "*Function to actually open an IRC connection. | 36 "Function to actually open an IRC connection. |
36 The function should take the following arguments: | 37 The function should take the following arguments: |
37 HOST - the hostname of the IRC server to contact | 38 HOST - the hostname of the IRC server to contact |
38 PORT - the port number of the IRC server to contact | 39 PORT - the port number of the IRC server to contact |
39 CHANNEL - What channel on the server to visit right away (can be nil) | 40 CHANNEL - What channel on the server to visit right away (can be nil) |
40 USER - What username to use | 41 USER - What username to use |