Skip to content

Instantly share code, notes, and snippets.

@yonta
Created October 9, 2014 00:37
Show Gist options
  • Save yonta/6ca31b96e233c3579b84 to your computer and use it in GitHub Desktop.
Save yonta/6ca31b96e233c3579b84 to your computer and use it in GitHub Desktop.
twittering-mode patch
diff --git a/twittering-mode.el b/twittering-mode.el
index d345b0a..13bd792 100644
--- a/twittering-mode.el
+++ b/twittering-mode.el
@@ -639,6 +639,9 @@ An interval for a timeline is determined as follows;
(defvar twittering-relative-retrieval-count-alist '()
"An alist for counting retrieval of primary timelines.")
+(defvar twittering-suffix-space-size 0
+ "Width of a non using area before end-of-line in twittering-mode windows, when using a `%FOLD' fomat.")
+
;;;;
;;;; Macro and small utility function
;;;;
@@ -8906,7 +8909,9 @@ rendered at POS, return nil."
(min-width
(apply 'min
(or
- (mapcar 'window-width
+ (mapcar
+ (lambda (w)
+ (- (window-width w) twittering-suffix-space-size))
(get-buffer-window-list (current-buffer) nil t))
;; Use `(frame-width)' if no windows display
;; the current buffer.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment