Skip to content

Commit

Permalink
Fix mode-line to display the rate limit.
Browse files Browse the repository at this point in the history
* twittering-mode.el: Fix mode-line to display the rate limit.
(twittering-mode-line-buffer-identification): add the remaining
number of API requests if `twittering-display-remaining' is
non-nil.
  • Loading branch information
cvmat committed Apr 24, 2010
1 parent e561249 commit b9bc397
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ChangeLog
@@ -1,3 +1,10 @@
2010-04-25 Tadashi MATSUO <tad@mymail.twin.jp>

* twittering-mode.el: Fix mode-line to display the rate limit.
(twittering-mode-line-buffer-identification): add the remaining
number of API requests if `twittering-display-remaining' is
non-nil.

2010-04-24 Tadashi MATSUO <tad@mymail.twin.jp>

* twittering-mode.el: Reimplement indicators.
Expand Down
4 changes: 4 additions & 0 deletions twittering-mode.el
Expand Up @@ -494,6 +494,10 @@ and its contents (BUFFER)"
,@(when twittering-scroll-mode '("scroll"))
,@(when twittering-proxy-use '("proxy")))))
(concat active-mode-indicator
(when twittering-display-remaining
(format " %d/%d"
(twittering-get-ratelimit-remaining)
(twittering-get-ratelimit-limit)))
(when enabled-options
(concat "[" (mapconcat 'identity enabled-options " ") "]")))))

Expand Down

0 comments on commit b9bc397

Please sign in to comment.