Skip to content

Commit

Permalink
Fix `twittering-set-window-end' for Emacs21.
Browse files Browse the repository at this point in the history
* twittering-mode.el (twittering-set-window-end): use
`window-text-height' instead of `window-body-height' for Emacs21.
  • Loading branch information
cvmat committed Feb 19, 2010
1 parent ed4b7bd commit f295b0e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
@@ -1,3 +1,8 @@
2010-02-19 Tadashi MATSUO <tad@mymail.twin.jp>

* twittering-mode.el (twittering-set-window-end): use
`window-text-height' instead of `window-body-height' for Emacs21.

2010-02-18 Satoshi Yatagawa <yata_github@y.hauN.org>

* twittering-mode.el (twittering-native-retweet): Add a margin for
Expand Down
2 changes: 1 addition & 1 deletion twittering-mode.el
Expand Up @@ -504,7 +504,7 @@ and its contents (BUFFER)"
(buffer-substring (point-min) (point-max))))))

(defun twittering-set-window-end (window pos)
(let* ((height (window-body-height window))
(let* ((height (window-text-height window))
(n (- (- height 1))))
(while (progn (setq n (1+ n))
(set-window-start
Expand Down

0 comments on commit f295b0e

Please sign in to comment.