diff --git a/ChangeLog b/ChangeLog index 456e58b7..14e50054 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-02-11 Tadashi MATSUO + + * twittering-mode.el (twittering-fill-string): load "kinsoku.el" + in advance if necessary. + 2010-02-11 Satoshi Yatagawa * twittering-mode.el: No longer clear fetched timeline when diff --git a/twittering-mode.el b/twittering-mode.el index 6a7259d8..629f39f8 100644 --- a/twittering-mode.el +++ b/twittering-mode.el @@ -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