HCoop
/
bpt
/
guile.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8ab29a
)
length's argument is a sequence
author
BT Templeton
<bpt@hcoop.net>
Sun, 1 Apr 2012 19:59:42 +0000
(15:59 -0400)
committer
BT Templeton
<bpt@hcoop.net>
Sun, 1 Apr 2012 19:59:42 +0000
(15:59 -0400)
* module/language/elisp/boot.el (length): Use `length' if the argument
is a list or `generalized-vector-length' otherwise.
module/language/elisp/boot.el
patch
|
blob
|
blame
|
history
diff --git
a/module/language/elisp/boot.el
b/module/language/elisp/boot.el
index
53711e1
..
f55722a
100644
(file)
--- a/
module/language/elisp/boot.el
+++ b/
module/language/elisp/boot.el
@@
-447,7
+447,11
@@
;;; Sequences
-(fset 'length (@ (guile) length))
+(defun length (sequence)
+ (funcall (if (listp sequence)
+ (@ (guile) length)
+ (@ (guile) generalized-vector-length))
+ sequence))
(defun mapcar (function sequence)
(funcall (@ (guile) map) function sequence))