Send notifications for incoming messages.
authorSteve Youngs <steve@emchat.org>
Sat, 4 Feb 2012 03:02:53 +0000 (13:02 +1000)
committerSteve Youngs <steve@emchat.org>
Sat, 4 Feb 2012 03:06:15 +0000 (13:06 +1000)
commit0ceabd814bbf0f68f2c2332c8090e4e77e5e1b06
tree751473e5bfe3b68884bd61043e4b1276a142850b
parentf76c7ce619419ff80076fc36e8e3e58ea608ce21
Send notifications for incoming messages.

With this changeset EMchat will send notifications via libnotify's
`notify-send' for incoming messages.  It will only send the notification
if either the log buffer isn't the current buffer, or `emchat-frame' does
not have the window system focus.

* emchat-log.el (emchat-notify-flag): New.  Send notifications
when non-nil.

* emchat-log.el (emchat-notify-command): Shell command used to
send notifications.

* emchat-log.el (emchat-notify): New.  Send notifications via
notify-send from libnotify for incoming messages.

* emchat-log.el (emchat-log): Send a notification if either the
log buffer isn't the current buffer or the EMchat frame doesn't
have focus.

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