|
From: Jeremy Maitin-S. <jb...@at...> - 2004-03-07 07:44:05
|
Hello, I have replaced the existing rather limited private NOTICE output configuration system (namely, `erc-echo-notices-in-minibuffer-flag' and `erc-echo-notices-in-current-buffer') with a much more flexible hook system. Specifically, I have added two hooks, `erc-echo-notice-hook' and `erc-echo-notice-always-hook'. Both hooks are run when a NOTICE should be echoed to the user; the former is run using `run-hook-with-args-until-success', while the second is run using `run-hook-with-args'. I have also added a number of functions which can be used with this hook: `erc-echo-notice-in-default-buffer', `erc-echo-notice-in-target-buffer', `erc-echo-notice-in-minibuffer', `erc-echo-notice-in-server-buffer', `erc-echo-notice-in-active-non-server-buffer', `erc-echo-notice-in-active-buffer', `erc-echo-notice-in-user-buffers', `erc-echo-notice-in-user-and-target-buffers', `erc-echo-notice-in-first-user-buffer' These changes are available at: http://dev.gentoo.org/~jbms/erc-new-notice-handling.patch I will commit them if no one protests or suggests changes. -- Jeremy Maitin-Shepard |