@peccul is peccu

(love peccu '(emacs lisp cat outdoor bicycle mac linux coffee))

twit.elのタイマーがとまらない?

twit.elのタイマーがM-x twit-stop-following-tweetsでうまく止まっていないように感じる.

もしかしたら,twit-stop-following-tweetsせずにtwit-follow-recent-tweetsをすることでタイマーが上書きされてstop時に前のタイマーをcancel-timerできないのかもしれない.

てかそんな気がする.タイマーに登録されている関数ってどうしたら見るかいじれるんだろうか.

とりあえず,twit-timerって変数がtwit-stop-following-tweetsしても中身が残ってて気持ち悪いので,nilにするアドバイスを書いてみた.

未定義にする方法ってあるんだろうか.ちょっと調べた感じだと見つけられなかった.

(defadvice twit-stop-following-tweets (after delete-timer)
  (message "deleting twit-timer...")
  (setq twit-timer nil)
  (setq twit-rate-limit-timer nil)
  (message "deleting twit-timer...done"))
(ad-activate 'twit-stop-following-tweets)