[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 152/255: Revert "improved the setf method for aget"
From: |
Eric Schulte |
Subject: |
[elpa] 152/255: Revert "improved the setf method for aget" |
Date: |
Sun, 16 Mar 2014 01:02:38 +0000 |
eschulte pushed a commit to branch go
in repository elpa.
commit 39a822446aa6ef37151d9203fee785f509901e8a
Author: Eric Schulte <address@hidden>
Date: Sun Jun 3 11:35:14 2012 -0600
Revert "improved the setf method for aget"
This reverts commit de4ddf2419b9fc1b26814db6cbd3ddc9b0214232.
---
go-util.el | 14 ++++----------
1 files changed, 4 insertions(+), 10 deletions(-)
diff --git a/go-util.el b/go-util.el
index de1b178..1533f7d 100644
--- a/go-util.el
+++ b/go-util.el
@@ -50,16 +50,10 @@
(defun take (num list) (subseq list 0 num))
-(defmacro set-aget (place key new)
- "Set `aget' of KEY in the list stored in PLACE to NEW."
- (let ((sym (gensym)))
- (if (symbolp place)
- (if (aget (eval place) (eval key))
- `(setf (cdr (assoc ,key ,place)) ,new)
- `(callf setq ,place (cons (cons ,key ,new) ,place)))
- `(let ((,sym ,place))
- (setf (aget ,sym ,key) ,new)
- (setf ,place ,sym)))))
+(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)
- [elpa] 138/255: igs can track a current game and apply moves, (continued)
- [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
- [elpa] 145/255: periodically ping IGS server to prevent disconnect, Eric Schulte, 2014/03/15
- [elpa] 147/255: igs implements the go back-end API, Eric Schulte, 2014/03/15
- [elpa] 148/255: improved the setf method for aget, Eric Schulte, 2014/03/15
- [elpa] 150/255: more lenient regexp for matching game listing, Eric Schulte, 2014/03/15
- [elpa] 152/255: Revert "improved the setf method for aget",
Eric Schulte <=
- [elpa] 154/255: don't quit main back-end when quitting a board, Eric Schulte, 2014/03/15
- [elpa] 158/255: beginning to translate svg images into elisp, Eric Schulte, 2014/03/15
- [elpa] 149/255: push all buffer-local variables into an igs object, Eric Schulte, 2014/03/15
- [elpa] 162/255: painting a nice svg board, but more to do, Eric Schulte, 2014/03/15
- [elpa] 159/255: translated all svg stone images into elisp, Eric Schulte, 2014/03/15
- [elpa] 164/255: prompt before quitting, Eric Schulte, 2014/03/15
- [elpa] 153/255: safety measure when observing igs games, Eric Schulte, 2014/03/15
- [elpa] 163/255: sorted out different types of backgrounds, Eric Schulte, 2014/03/15
- [elpa] 168/255: adding option to play a sound during moves, Eric Schulte, 2014/03/15
- [elpa] 155/255: less permissive igs move regular expression, Eric Schulte, 2014/03/15