Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Verify the account in advance of retrieving statuses.
* twittering-mode.el: Verify the account in advance of retrieving statuses. (twittering-account-authorization): new variable. (twittering-account-authorized-p): new function. (twittering-account-authorization-queried-p): new function. (twittering-prepare-account-info): new function for completing username and password. (twittering-verify-credentials): new function. (twittering-http-get-verify-credentials-sentinel): new function. (twittering-get-managed-buffer): start the timer after authorization. (twittering-mode-init-global): initialize neither `twittering-username' nor `twittering-password'. (twittering-mode): call `twittering-prepare-account-info'. (twittering-get-and-render-timeline): ignore requests unless authorization is completed. (twittering-update-active-buffers): do not retrieve statuses unless authorization is completed. (twittering-visit-timeline): verify the account. (twittering-get-username): use `twittering-username' directly. (twittering-get-password): use `twittering-password' directly. (twittering-username-active): removed. (twittering-password-active): removed.
- Loading branch information
Showing
2 changed files
with
104 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters