[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Erc-discuss] erc-hide-list as buffer local variable?
From: |
Giorgos Keramidas |
Subject: |
[Erc-discuss] erc-hide-list as buffer local variable? |
Date: |
Thu, 06 Nov 2008 15:55:40 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) |
Hi all,
I've been using the following in my ERC setup for a while:
(make-variable-buffer-local 'erc-hide-list)
This was quite useful to hide join/part traffic from my &bitlbee control
channel, but keep seeing it in other channels, by also adding:
(add-hook 'erc-join-hook 'bitlbee-hide-join-part-messages)
(defun bitlbee-hide-join-part-messages ()
"Hide JOIN and PART messages if we just joined the &bitlbee
control channel."
(when (and (string= "localhost" erc-session-server)
(string= "&bitlbee" (buffer-name)))
(mapcar '(lambda (message-type)
(add-to-list 'erc-hide-list message-type))
(list "join" "part"))))
A couple of questions I have are:
* Do you think making `erc-hide-list' a buffer-local variable makes
sense?
* Does making it buffer-local have any unwanted side-effects that I
have missed?
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Erc-discuss] erc-hide-list as buffer local variable?,
Giorgos Keramidas <=