Skip to content

Commit

Permalink
The account information is initialized before starting timers.
Browse files Browse the repository at this point in the history
* twittering-mode.el (twittering-mode-init-variables): initialize
account information explicitly.
(twittering-get-username): simplified.
(twittering-get-password): simplified.
  • Loading branch information
cvmat committed Mar 11, 2010
1 parent 59c648f commit 19f7be7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Expand Up @@ -3,6 +3,11 @@
* twittering-mode.el (twittering-update-status-format): kill
newly generated `*Compile-Log*' buffer if it is empty.

* twittering-mode.el (twittering-mode-init-variables): initialize
account information explicitly.
(twittering-get-username): simplified.
(twittering-get-password): simplified.

2010-03-11 Satoshi Yatagawa <yata_github@y.hauN.org>

* twittering-mode.el (twittering-render-timeline): Call
Expand Down
12 changes: 6 additions & 6 deletions twittering-mode.el
Expand Up @@ -1384,8 +1384,10 @@ The alist consists of pairs of field-name and field-value, such as
(twittering-update-status-format)
(twittering-set-current-timeline-spec-string
twittering-initial-timeline-spec-string)
(setq twittering-username-active twittering-username)
(setq twittering-password-active twittering-password)
(setq twittering-username-active
(or twittering-username (read-string "your twitter username: ")))
(setq twittering-password-active
(or twittering-password (read-passwd "your twitter password: ")))
(when twittering-use-convert
(if (null twittering-convert-program)
(setq twittering-use-convert nil)
Expand Down Expand Up @@ -3765,12 +3767,10 @@ variable `twittering-status-format'."
nil))))

(defun twittering-get-username ()
(or twittering-username-active
(setq twittering-username-active (read-string "your twitter username: "))))
twittering-username-active)

(defun twittering-get-password ()
(or twittering-password-active
(setq twittering-password-active (read-passwd "your twitter password: "))))
twittering-password-active)

(defun twittering-get-id-at (&optional pos)
"Return ID of the status at POS. If a separator is rendered at POS, return
Expand Down

0 comments on commit 19f7be7

Please sign in to comment.