From: Pascal J.B. <pj...@in...> - 2004-09-24 12:09:26
|
Damien Elmes writes: > "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))))) Thank you. This works well. > 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 -- __Pascal Bourguignon__ http://www.informatimago.com/ Our enemies are innovative and resourceful, and so are we. They never stop thinking about new ways to harm our country and our people, and neither do we. |