Function: notifications-on-action-signal

notifications-on-action-signal is a byte-compiled function defined in notifications.el.gz.

Signature

(notifications-on-action-signal ID ACTION)

Documentation

Dispatch signals to callback functions from notifications-on-action-map.

Source Code

;; Defined in /usr/src/emacs/lisp/notifications.el.gz
(defun notifications-on-action-signal (id action)
  "Dispatch signals to callback functions from `notifications-on-action-map'."
  (let* ((bus (dbus-event-bus-name last-input-event))
	 (unique-name (dbus-event-service-name last-input-event))
	 (entry (assoc (list bus unique-name id) notifications-on-action-map)))
    (when entry
      (funcall (cadr entry) id action)
      (when (and (not (setq notifications-on-action-map
			    (remove entry notifications-on-action-map)))
		 notifications-on-action-object)
	(dbus-unregister-object notifications-on-action-object)
	(setq notifications-on-action-object nil)))))