[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 137/255: setf method for aget
From: |
Eric Schulte |
Subject: |
[elpa] 137/255: setf method for aget |
Date: |
Sun, 16 Mar 2014 01:02:35 +0000 |
eschulte pushed a commit to branch go
in repository elpa.
commit cfd856bdc3ebdf4eeae9a30d3e826758bf533b7d
Author: Eric Schulte <address@hidden>
Date: Sat Jun 2 17:48:04 2012 -0600
setf method for aget
---
go-util.el | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/go-util.el b/go-util.el
index 835cbf9..1533f7d 100644
--- a/go-util.el
+++ b/go-util.el
@@ -50,6 +50,13 @@
(defun take (num list) (subseq list 0 num))
+(defun set-aget (list key new)
+ (if (aget list key)
+ (setf (cdr (assoc key list)) new)
+ (setf (cdr (last list)) (list (cons key new)))))
+
+(defsetf aget set-aget)
+
(defmacro until (test &rest body)
(declare (indent 1))
`(while (not ,test) ,@body))
- [elpa] 129/255: igs message types from igs.c, (continued)
- [elpa] 129/255: igs message types from igs.c, Eric Schulte, 2014/03/15
- [elpa] 118/255: cleanup in go.el, Eric Schulte, 2014/03/15
- [elpa] 130/255: adding a file for tracking development notes, Eric Schulte, 2014/03/15
- [elpa] 128/255: starting to flesh out igs support, Eric Schulte, 2014/03/15
- [elpa] 119/255: test cleanup, Eric Schulte, 2014/03/15
- [elpa] 132/255: moving char-to-num and num-to-char to util, Eric Schulte, 2014/03/15
- [elpa] 115/255: uniform gnugo prefix, Eric Schulte, 2014/03/15
- [elpa] 134/255: notes, Eric Schulte, 2014/03/15
- [elpa] 131/255: transitioning IGS interface to use client mode, Eric Schulte, 2014/03/15
- [elpa] 140/255: board propagates setf'd moves to trackers, Eric Schulte, 2014/03/15
- [elpa] 137/255: setf method for aget,
Eric Schulte <=
- [elpa] 133/255: igs using a process filter for asynch processing, Eric Schulte, 2014/03/15
- [elpa] 136/255: two small fixes, Eric Schulte, 2014/03/15
- [elpa] 135/255: stubbed out API interface for go-board, Eric Schulte, 2014/03/15
- [elpa] 139/255: fixed off-by-one in igs moves & tracking last move, Eric Schulte, 2014/03/15
- [elpa] 138/255: igs can track a current game and apply moves, Eric Schulte, 2014/03/15
- [elpa] 142/255: TODO igs probably needs to periodically ping the server, Eric Schulte, 2014/03/15
- [elpa] 143/255: pass move through board to *back-end*, Eric Schulte, 2014/03/15
- [elpa] 144/255: tests require igs, Eric Schulte, 2014/03/15
- [elpa] 146/255: print igs kibitz strings, Eric Schulte, 2014/03/15
- [elpa] 141/255: beginning of infrastructure for player names & info, Eric Schulte, 2014/03/15