[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 213/255: include headers in width calculation
From: |
Eric Schulte |
Subject: |
[elpa] 213/255: include headers in width calculation |
Date: |
Sun, 16 Mar 2014 01:02:50 +0000 |
eschulte pushed a commit to branch go
in repository elpa.
commit 3f3a9a8f34e5db7469bbb1ea67ca8f014a3e3e9d
Author: Eric Schulte <address@hidden>
Date: Tue Aug 6 12:50:20 2013 -0600
include headers in width calculation
---
list-buffer.el | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/list-buffer.el b/list-buffer.el
index c9c2ff5..593b256 100644
--- a/list-buffer.el
+++ b/list-buffer.el
@@ -54,7 +54,10 @@
(defun list-buffer-refresh ()
(let* ((strings (mapcar (curry #'mapcar (curry #'format "%s"))
*buffer-list*))
- (lengths (mapcar (curry #'mapcar #'length) strings))
+ (lengths (mapcar (curry #'mapcar #'length)
+ (if *buffer-headers*
+ (cons *buffer-headers* strings)
+ strings)))
(widths (apply #'cl-mapcar (compose '1+ #'max) lengths))
;; scale widths by buffer width
(widths (mapcar (compose #'floor (curry #'* (/ (window-total-width)
- [elpa] 189/255: replace flet with cl-flet, (continued)
- [elpa] 189/255: replace flet with cl-flet, Eric Schulte, 2014/03/15
- [elpa] 190/255: set level (mainly for playing GNUGO), Eric Schulte, 2014/03/15
- [elpa] 204/255: prefix external names with package name, Eric Schulte, 2014/03/15
- [elpa] 165/255: working on placing backgrounds behind pieces, Eric Schulte, 2014/03/15
- [elpa] 202/255: added interface function to view an SGF file, Eric Schulte, 2014/03/15
- [elpa] 205/255: update the README, Eric Schulte, 2014/03/15
- [elpa] 206/255: ensure prisoners are 0 at the start of a new game, Eric Schulte, 2014/03/15
- [elpa] 208/255: support for viewing lists in a buffer, Eric Schulte, 2014/03/15
- [elpa] 207/255: robustly handle prematurely quitting process, Eric Schulte, 2014/03/15
- [elpa] 209/255: adding curry, rcurry and compose helpers, Eric Schulte, 2014/03/15
- [elpa] 213/255: include headers in width calculation,
Eric Schulte <=
- [elpa] 215/255: smaller ldots, Eric Schulte, 2014/03/15
- [elpa] 200/255: refresh the go board, Eric Schulte, 2014/03/15
- [elpa] 214/255: refresh list every time the buffer changes size, Eric Schulte, 2014/03/15
- [elpa] 212/255: bug fix, wrong function name, Eric Schulte, 2014/03/15
- [elpa] 225/255: quit observing IGS game w/o closing connection, Eric Schulte, 2014/03/15
- [elpa] 171/255: bigger stones, Eric Schulte, 2014/03/15
- [elpa] 219/255: updated igs backend, Eric Schulte, 2014/03/15
- [elpa] 222/255: asynchronous IGS game listing, Eric Schulte, 2014/03/15
- [elpa] 220/255: list buffer navigation, Eric Schulte, 2014/03/15
- [elpa] 217/255: sorting columns, Eric Schulte, 2014/03/15