Skip to content

Commit

Permalink
`twittering-jojo-mode-p' confirms that the buffer is valid.
Browse files Browse the repository at this point in the history
* twittering-mode.el (twittering-jojo-mode-p): confirm that the
buffer has not been killed.
  • Loading branch information
cvmat committed May 7, 2010
1 parent a1ce7c5 commit 2653e2b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
@@ -1,3 +1,8 @@
2010-05-08 Tadashi MATSUO <tad@mymail.twin.jp>

* twittering-mode.el (twittering-jojo-mode-p): confirm that the
buffer has not been killed.

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

* twittering-mode.el: Fix the format specifier "%r" for direct
Expand Down
7 changes: 4 additions & 3 deletions twittering-mode.el
Expand Up @@ -4226,9 +4226,10 @@ variable `twittering-status-format'."
(twittering-update-mode-line))))

(defun twittering-jojo-mode-p (spec)
(with-current-buffer
(twittering-get-buffer-from-spec spec)
twittering-jojo-mode))
(let ((buffer (twittering-get-buffer-from-spec spec)))
(when (buffer-live-p buffer)
(with-current-buffer buffer
twittering-jojo-mode))))

(defun twittering-toggle-reverse-mode (&optional arg)
(interactive "P")
Expand Down

0 comments on commit 2653e2b

Please sign in to comment.