guile-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Guile-commits] GNU Guile branch, master, updated. v2.1.0-203-gebc30e3


From: BT Templeton
Subject: [Guile-commits] GNU Guile branch, master, updated. v2.1.0-203-gebc30e3
Date: Sun, 01 Apr 2012 20:00:52 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Guile".

http://git.savannah.gnu.org/cgit/guile.git/commit/?id=ebc30e3fde43e6330b0e9290c15c212844e12675

The branch, master has been updated
       via  ebc30e3fde43e6330b0e9290c15c212844e12675 (commit)
      from  c8ab29ac8e32f3f68efe1652e27d4a4cb2d90f4e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit ebc30e3fde43e6330b0e9290c15c212844e12675
Author: BT Templeton <address@hidden>
Date:   Sun Apr 1 15:59:42 2012 -0400

    length's argument is a sequence
    
    * module/language/elisp/boot.el (length): Use `length' if the argument
      is a list or `generalized-vector-length' otherwise.

-----------------------------------------------------------------------

Summary of changes:
 module/language/elisp/boot.el |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/module/language/elisp/boot.el b/module/language/elisp/boot.el
index 53711e1..f55722a 100644
--- 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))


hooks/post-receive
-- 
GNU Guile



reply via email to

[Prev in Thread] Current Thread [Next in Thread]