koldfront

Timestamping presence notifications from jabber.el #emacs

Sometimes it is nice to know when a presence change alert from jabber.el happened, "X is now Online", "X is now Offline" - sure, but when was that?

defadvice to the rescue:

    (defadvice jabber-presence-default-message (after add-timestamp-to-message last activate)
      (when ad-return-value
          (setq ad-return-value (concat "[" (current-time-string) "] " ad-return-value))))

Now the *Messages* contains information like: "[Wed Aug 5 14:25:02 2015] X is now Offline" - nice!

Add comment?

Title:

Name:

Email (won't be displayed online):

Text:

0.0270 s
webcustodian@koldfront.dk