erc-discuss
[Top][All Lists]
Advanced

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

[Erc-discuss] Re: erc and emacsclient


From: Michael Olson
Subject: [Erc-discuss] Re: erc and emacsclient
Date: Wed, 10 Jan 2007 20:14:12 -0500
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.92 (gnu/linux)

"David Glasser" <address@hidden> writes:

> On 1/9/07, David Glasser <address@hidden> wrote:
>> On 1/9/07, David Glasser <address@hidden> wrote:
>> > On 1/9/07, Michael Olson <address@hidden> wrote:
>> > > (setq url-irc-function 'erc-handle-irc-url)
>> > >
>> > > And then call emacsclient with -e '(url-irc %s)'.
>> >
>> > Aha, thanks.
>> >
>> > Looks like this isn't in my ERC; time to upgrade I guess.
>>
>> Upgraded and found it.  Though my Mozex doesn't have %s for IRC, huh.
>
> It looks like url-irc wants to take some sort of URL object -- how do
> I construct one?

Oops.  That should have been:

(url-irc (url-generic-parse-url "%s"))

Although, it looks like the preferred way to do this is actually the
following, which allows url.el to automatically pick the right handler
(irc, in this case).

(url-retrieve-synchronously "%s")

IRC URLs can look like:

 - irc://server/nick,isnick
 - irc://server/#channel

-- 
Michael Olson -- FSF Associate Member #652 -- http://www.mwolson.org/
Interests: Lisp, text markup, protocols -- Jabber: mwolson_at_hcoop.net
  /` |\ | | | Projects: Emacs, Muse, ERC, EMMS, Planner, ErBot, DVC
 |_] | \| |_| Reclaim your digital rights by eliminating DRM.
      See http://www.defectivebydesign.org/what_is_drm for details.

Attachment: pgpfz0eF8lKVi.pgp
Description: PGP signature


reply via email to

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