jabber: Fix missing optional argument for the alert jabber-alert-echo function.
Jabber alert function should accept an optional second argument containing a title of the message. The function mimic the default implementation of jabber-alert-echo by showing the title if it is present and a message body otherwise. This commit fixes an error which is thrown when jabber receives a new notification: (wrong-number-of-arguments (lambda (msg) (if (minibuffer-prompt) nil (message "%s" msg))) 2)
This commit is contained in:
parent
e1ae3448e6
commit
e421377861
|
@ -15,6 +15,6 @@
|
||||||
;; Disable the minibuffer getting jabber messages when active
|
;; Disable the minibuffer getting jabber messages when active
|
||||||
;; See http://www.emacswiki.org/JabberEl
|
;; See http://www.emacswiki.org/JabberEl
|
||||||
(define-jabber-alert echo "Show a message in the echo area"
|
(define-jabber-alert echo "Show a message in the echo area"
|
||||||
(lambda (msg)
|
(lambda (msg &optional title)
|
||||||
(unless (minibuffer-prompt)
|
(unless (minibuffer-prompt)
|
||||||
(message "%s" msg)))))
|
(message "%s" (or title msg))))))
|
||||||
|
|
Loading…
Reference in a new issue