Created
October 9, 2014 00:37
-
-
Save yonta/6ca31b96e233c3579b84 to your computer and use it in GitHub Desktop.
twittering-mode patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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