Skip to content

Commit

Permalink
Confirm an available connection method before visiting a timeline.
Browse files Browse the repository at this point in the history
* twittering-mode.el: Confirm an available connection method
before visiting a timeline.
(twittering-visit-timeline): confirm connection method.
  • Loading branch information
cvmat committed May 22, 2010
1 parent ac8b45e commit 94ab409
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Expand Up @@ -29,6 +29,10 @@
(twittering-lookup-http-start-function): reimplemented.
(twittering-lookup-connection-type): new function.

* twittering-mode.el: Confirm an available connection method
before visiting a timeline.
(twittering-visit-timeline): confirm connection method.

2010-05-20 Tadashi MATSUO <tad@mymail.twin.jp>

* twittering-mode.el: The configuration of a proxy is referred via
Expand Down
19 changes: 10 additions & 9 deletions twittering-mode.el
Expand Up @@ -4953,15 +4953,16 @@ managed by `twittering-mode'."

(defun twittering-visit-timeline (&optional timeline-spec initial)
(interactive)
(twittering-initialize-global-variables-if-necessary)
(twittering-prepare-account-info)
(let ((timeline-spec
(or timeline-spec
(twittering-read-timeline-spec-with-completion
"timeline: " initial t))))
(when timeline-spec
(twittering-verify-credentials)
(switch-to-buffer (twittering-get-managed-buffer timeline-spec)))))
(when (twittering-lookup-http-start-function)
(twittering-initialize-global-variables-if-necessary)
(twittering-prepare-account-info)
(let ((timeline-spec
(or timeline-spec
(twittering-read-timeline-spec-with-completion
"timeline: " initial t))))
(when timeline-spec
(twittering-verify-credentials)
(switch-to-buffer (twittering-get-managed-buffer timeline-spec))))))

(defun twittering-other-user-timeline ()
(interactive)
Expand Down

0 comments on commit 94ab409

Please sign in to comment.