Better notification handling.
authorSteve Youngs <steve@emchat.org>
Mon, 25 Feb 2013 10:38:57 +0000 (20:38 +1000)
committerSteve Youngs <steve@emchat.org>
Mon, 25 Feb 2013 10:38:57 +0000 (20:38 +1000)
commitcc0cef711ff032116502f13930f7ab3c2502eb99
treecd66c9bd593c17f48334e3015146fb38626bfff8
parenta7678f10275e39673d85cb313223abc3f4b53d59
Better notification handling.

With this changeset you can now control which messages get notifications.
See `emchat-notify-events-type'.  Notifications still only happen if the
emchat-frame is not the current selected frame. No point in getting
notifications when it's right there in front of you.

* emchat-log.el (emchat-notify): Rewrite using finer grained
tuning of which events to send notifications for.

* emchat-log.el (emchat-notify-events-type): New.

* emchat-log.el (emchat-log): Maybe send notification after log
has been written.  Test off of emchat-notify-flag.

Signed-off-by: Steve Youngs <steve@emchat.org>
emchat-log.el