Skip to content

Commit

Permalink
`twittering-fill-string' loads "kinsoku.el" if necessary.
Browse files Browse the repository at this point in the history
* twittering-mode.el (twittering-fill-string): load "kinsoku.el"
in advance if necessary.
  • Loading branch information
cvmat committed Feb 11, 2010
1 parent 6a499df commit a304114
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
@@ -1,3 +1,8 @@
2010-02-11 Tadashi MATSUO <tad@mymail.twin.jp>

* twittering-mode.el (twittering-fill-string): load "kinsoku.el"
in advance if necessary.

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

* twittering-mode.el: No longer clear fetched timeline when
Expand Down
11 changes: 11 additions & 0 deletions twittering-mode.el
Expand Up @@ -459,6 +459,17 @@ and its contents (BUFFER)"
(equal id1 id2))

(defun twittering-fill-string (str &optional column)
(when (and (not (boundp 'kinsoku-limit))
enable-kinsoku)
;; `kinsoku-limit' is defined on loading "international/kinsoku.el".
;; Without preloading, "kinsoku.el" will be loaded by auto-loading
;; triggered by `fill-region-as-paragraph'.
;; In that case, the local binding of `kinsoku-limit' conflicts the
;; definition by `defvar' in "kinsoku.el".
;; The below warning is displayed;
;; "Warning: defvar ignored because kinsoku-limit is let-bound".
;; So, we load "kinsoku.el" in advance if necessary.
(load "international/kinsoku"))
(let* ((kinsoku-limit 1)
(adjustment (if enable-kinsoku
kinsoku-limit
Expand Down

0 comments on commit a304114

Please sign in to comment.