Lee Mac Posted December 28, 2008 Posted December 28, 2008 Ok, This is probably kinda stupid, but I'm just trying to fill in the holes in my knowledge of LISP. But if I have a variable which contains a list, say: (setq a (list 1 2 3)) How would I show the contents of "a" as an alert? i.e. (alert a) I know its probably a pretty silly question, but I think my mind is going blank today... Quote
wizman Posted December 28, 2008 Posted December 28, 2008 (alert (vl-princ-to-string a)) to make it more general, you can have a subroutine (defun alert-i (wz) (alert (vl-princ-to-string wz))) also: (alert (apply 'strcat (mapcar '(lambda (x) (strcat "\n " (vl-princ-to-string x))) a))) Quote
Lee Mac Posted December 28, 2008 Author Posted December 28, 2008 Ahh thanks Wizman, much appreciated. Quote
wizman Posted December 29, 2008 Posted December 29, 2008 youre welcome, glad to help lee, happy new year too....:-) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.