|
From: Hugo M <ha...@gm...> - 2015-11-10 16:30:18
|
I'm trying to display *last* tweet text on notification (Xubuntu 14).
I modified the code given as example in the wiki page:
(defun notify-tweets ()
(let ((n twittering-new-tweets-count)
(statuses twittering-new-tweets-statuses))
(progn
;; (debug)
(start-process "twittering-notify" nil "notify-send"
"-i" "/usr/share/pixmaps/gnome-emacs.png"
"New tweets"
(assq 'text (nth (car statuses) 1))
;;(format "You have %d new tweet%s"
;; n (if (> n 1) "s" "")))
)
)
)
)
(add-hook 'twittering-new-tweets-hook 'notify-tweets)
But this doesn't work, it gives me an error:
Debugger entered--Lisp error: (wrong-type-argument integerp ((source-spec
home) (text . "tweet text, bla bla bla" ...
What I'm doing wrong?
Thanks!
Hugo
|