[Ma-linux] Strange Emacs Lisp behavior
Alan McConnell
alan at patriot.net
Sun Dec 5 16:48:35 EST 2010
Assembles Wisdom!
In the course of my LISP-learning, I found that on my system -- Debian
etch, GNU Emacs 21.4.1 -- Emacs LISP doesn't recognize the DO
macro! I am informed by a LISP guru friend of mine on the West
Coast that the following test code runs on his xemacs system.
(start)--------------------------
;; run this with 'a' 4 or 5 or 6
(defun simple-do (a)
(do ( (i 1 (+ i 1))
(lst ())
) ; end of DO initialization
(
(equal (length lst) a )
lst
) ; end of END-TEST
;; What follows is the BODY of the DO-loop
(setq lst (cons i lst))
) ; end of do
) ; end of defun
------------------------(finish)
What experiences have you had? All comments, suggestions,
welcome.
Happy Holidays to all!
Alan
--
Alan McConnell : http://patriot.net/users/alan
Music is still the most important aspect
of good living. (Al Abrams)
More information about the Ma-linux
mailing list