|
From: Damien E. <er...@re...> - 2004-09-23 13:01:01
|
"Pascal J.Bourguignon" <pj...@in...> writes:
> Hello,
>
> I'm a new user of erc, and I have a couple of questions:
>
> - how to erase (/clean) a channel buffer? erase-buffer complains for
> read-only text. For now, the only solution I have is /leave and
> /join #channel. (And I mean really removing all the buffer contents,
> not jumping down!)
Try this:
(defun erc-cmd-CLEAR ()
(interactive)
(save-buffer)
(save-excursion
(let ((inhibit-read-only t))
(beginning-of-line)
(delete-region 1 (point)))))
If you have logging enabled, it'll ensure it's saved in the log before
deleting it from the screen. Remove the save-buffer line if you don't
want that.
> - the answers to /msg commands given in a #channel buffer go to the
> server buffer. How can one get them in the #channel buffer where
> the /msg command was given?
I don't think erc supports this by default. but you can make messages
pop up in a separate buffer easily. c-h v erc-auto-query
Cheers,
Damien
|