Avoid superfluous registering of signals. (Bug#10807)
authorMichael Albinus <michael.albinus@gmx.de>
Wed, 7 Mar 2012 07:48:16 +0000 (08:48 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Wed, 7 Mar 2012 07:48:16 +0000 (08:48 +0100)
commit6612a28444546783cacdd2a6a15bc7ed826d1eb3
treedc6490247de606f7de431e4f5459cc972be36581
parenta9685db74e15f9c6336850ffda8932ed208c76cd
Avoid superfluous registering of signals.  (Bug#10807)

* notifications.el (notifications-on-action-object)
(notifications-on-close-object): New defvars.
(notifications-on-action-signal, notifications-on-closed-signal):
Unregister the signal if not needed any longer.
(notifications-notify): Register `notifications-action-signal' or
`notifications-closed-signal', if :on-action or :on-close has been
passed as argument.
lisp/ChangeLog
lisp/notifications.el