[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: insert-string
From: |
Sam Steingold |
Subject: |
Re: insert-string |
Date: |
01 Dec 2001 15:59:44 -0500 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.1.50 |
> * In message <address@hidden>
> * On the subject of "Re: insert-string"
> * Sent on Sat, 01 Dec 2001 16:57:26 +0100
> * Honorable address@hidden (Pavel Janík) writes:
>
> (defun insert-string (&rest args)
> "Mocklisp-compatibility insert function.
> Like the function `insert' except that any argument that is a number
> is converted into a string by expressing it in decimal."
> (let ((temp args))
> (while temp
> (if (integerp (car temp))
> (insert (format "%d" (car temp)))
> (insert (car temp)))
> (setq temp (cdr temp)))))
(dolist (el args)
(if (integerp el)
(insert (format "%d" el))
(insert el)))
--
Sam Steingold (http://www.podval.org/~sds)
Keep Jerusalem united! <http://www.onejerusalem.org/Petition.asp>
Read, think and remember! <http://www.iris.org.il> <http://www.memri.org/>
In every non-trivial program there is at least one bug.