erc-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Erc-discuss] Re: default value of `url-irc-function'


From: Michael Olson
Subject: [Erc-discuss] Re: default value of `url-irc-function'
Date: Tue, 04 Jul 2006 18:04:39 -0400
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)

Romain Francoise <address@hidden> writes:

> Well, I tried your function and it's better since it doesn't open a
> new IRC connection each time as mine does...

That looks like a win.

> but it calls
> `erc-buffer-filter' which isn't autoloaded: if the user customizes
> `url-irc-function' to point to ERC but doesn't actually require erc
> in the startup files, browsing doesn't work.  My function uses
> `erc-select', so it doesn't have that problem.

> I'm not a big fan of having require calls in functions...

Would something like this work?

url-irc.el:

(defun url-irc-erc (host port channel user password)
  (erc-handle-irc-url host port channel user password))

erc.el (function moved here from erc-goodies.el):

;;;###autoload
(defun erc-handle-irc-url (host port channel user password)
  "Use ERC to IRC on HOST:PORT in CHANNEL as USER with PASSWORD. ..."
  ... [rest of function])

-- 
Michael Olson -- FSF Associate Member #652 -- http://www.mwolson.org/
Interests: Emacs Lisp, text markup, protocols -- Jabber: mwolson_at_hcoop.net
  /` |\ | | | IRC: freenode.net/mwolson: #emacs, #hcoop, #muse, #PurdueLUG
 |_] | \| |_| Projects: Emacs, Muse, ERC, EMMS, Planner, ErBot, DVC

Attachment: pgpb_1mm1s_n_.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]