[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 216/255: small list buffer tweaks
From: |
Eric Schulte |
Subject: |
[elpa] 216/255: small list buffer tweaks |
Date: |
Sun, 16 Mar 2014 01:02:51 +0000 |
eschulte pushed a commit to branch go
in repository elpa.
commit 27204127de6274884f53cca2a2a2efd9423dbe43
Author: Eric Schulte <address@hidden>
Date: Tue Aug 6 13:03:08 2013 -0600
small list buffer tweaks
---
list-buffer.el | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/list-buffer.el b/list-buffer.el
index 4ef4340..7f9e762 100644
--- a/list-buffer.el
+++ b/list-buffer.el
@@ -72,12 +72,15 @@
(concat " " (list-format-row widths *buffer-headers*))))
;; write rows
(delete-region (point-min) (point-max))
- (insert (mapconcat (curry #'list-format-row widths) strings "\n"))))
+ (insert (mapconcat (curry #'list-format-row widths) strings "\n")))
+ (goto-char (point-min)))
-(defun list-buffer-sort (key predicate)
- (set *buffer-list* (cl-sort *buffer-list* predicate :key key)))
+(defun list-buffer-sort (col predicate)
+ (set *buffer-list* (cl-sort *buffer-list* predicate :key (curry #'nth col)))
+ (list-buffer-refresh))
-(defun list-buffer-filter (key filter)
- (set *buffer-list* (cl-remove-if-not *buffer-list* filter :key key)))
+(defun list-buffer-filter (col filter)
+ (set *buffer-list* (cl-remove-if-not *buffer-list* filter :key (curry #'nth
col)))
+ (list-buffer-refresh))
(provide 'list-buffer)
- [elpa] 215/255: smaller ldots, (continued)
- [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
- [elpa] 216/255: small list buffer tweaks,
Eric Schulte <=
- [elpa] 238/255: wrap go-re-cond in save-match-data, Eric Schulte, 2014/03/15
- [elpa] 223/255: use igs-re-cond to handle prompts, Eric Schulte, 2014/03/15
- [elpa] 224/255: handle IGS shouts, Eric Schulte, 2014/03/15
- [elpa] 226/255: remove shouts from comments, Eric Schulte, 2014/03/15
- [elpa] 151/255: Revert "push all buffer-local variables into an igs object", Eric Schulte, 2014/03/15
- [elpa] 237/255: thoughts about browser-based implementation, Eric Schulte, 2014/03/15
- [elpa] 236/255: factor general comint utils out of igs.el, Eric Schulte, 2014/03/15
- [elpa] 192/255: two consecutive passes ends the game, Eric Schulte, 2014/03/15
- [elpa] 210/255: using curry, rcurry and compose helpers, Eric Schulte, 2014/03/15
- [elpa] 203/255: adding GPL copyright file, Eric Schulte, 2014/03/15