|
From: Xavier M. <ze...@gn...> - 2004-05-06 10:31:40
|
On 6 May 2004, Lawrence Mitchell wrote:
> Xavier Maillard wrote:
>
> > Just a question, I am not really familiar with defadvice stuff even
> > after reading documentation on that topic.
>
> > I would like to advise few commands such as erc-cmd-WHOIS to display
> > the result in a x-tooltip window instead of the current buffer.
>
> You can't do this in WHOIS itself, since most ERC commands, WHOIS
Oops, actually it was erc-cmd-IGNORE, sorry :)
> included, work on a callback system. WHOIS sends a command,
> using `erc-send-command', and then returns t. The command is
> then sent, and ERC sits around waiting for the server's response.
> At this point, `erc-cmd-WHOIS' has nothing left to do. Rather,
> the server callback is handled by whatever sits on the
> `erc-server-foo-hook'. In this case, `erc-server-311-hook' is
> the one you're looking for (that being the numeric reply for
> WHOIS as specified by the RFC).
>
> Soooo, if you want to do more with the output, you have to hook
> into said hook, your function should accept two arguments, PROC
> (the process being received from), and PARSED (the actual
> response). Hope that sort of helps.
Thank you for your help. I will try it.
Regards,
--
"sometimes i feel like we're making emacs better and better because we don't
know what to do with emacs once it is finished."
-- AlexSchroeder on #emacs @OPN
|