From: Mario L. <ml...@ho...> - 2001-11-05 18:34:49
|
sm...@wa... (Tijs van Bakel) writes: > Mario Lang <ml...@ho...> writes: > > > So, We'd need to handle updating erc-buffers (the global variable) > > in all places where a buffer is created or removed. Even > > a kill-buffer should remove it from erc-buffers (thats currently not > > implemented with erc-buffer-list either, and generates weird behaviour > > if the User kills a erc buffer and uses erc afterwards for something else. > > Currently, killing a erc buffer leaves a buffer in erc-buffer-list > > which is <Deleted buffer> and that confuses erc quite a bit.) > > I hope DEFADVICE'ing kill-buffer is sufficient? What about kill-buffer-hook? > > My main concern is the data structure we should use for a global > > erc-buffers variable. It should be possible to > > determine/destinguish process buffers from channel > > buffer. destinguishing channel buffers from info-buffers or query > > buffers would also be useful later on. Any ideas? > > I think a plain list of Emacs buffers would be best. One can then > always use local buffer variables to store extra information. Right, Terrible loop, but maybe most efficient code You will need some helper functions then, like erc-buffer-list-same-session-server and the like. -- CYa, Mario <ml...@de...> Homepage(s): http://delysid.org | http://piss.at/ I'm still waiting for the advent of the computer science groupie. |