Always echoes notification in the echo area

This commit is contained in:
Renaud Casenave-Péré 2011-08-03 14:02:45 +09:00
parent d0e8c6491f
commit b17f0abbab

View file

@ -83,9 +83,9 @@ return at the end of a request.")
(defun empc-echo-notify (msg)
"Notify MSG using notification system if available, in echo area if not."
(if (eq window-system 'x)
(start-process "empc-notify" nil "notify-send" "Music Player Daemon" msg)
(message msg)))
(when (eq window-system 'x)
(start-process "empc-notify" nil "notify-send" "Music Player Daemon" msg))
(message (concat "empc: " msg)))
(defun empc-echo-song (song)
"Notify SONG."