summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Janík <Pavel@Janik.cz>2001-12-22 13:36:12 +0000
committerPavel Janík <Pavel@Janik.cz>2001-12-22 13:36:12 +0000
commit676927b7d8e597a75e23c26db9283d93ac0e882e (patch)
tree3024e012b9f9e2cd1abbc36e4646ac8df1783db3
parenta7323c295bf85c5693e5ca5104ba783d8d01289f (diff)
downloademacs-676927b7d8e597a75e23c26db9283d93ac0e882e.tar.gz
(insert-string): Moved from mocklisp.c, reimplemented in Lisp. Obsoleted.
-rw-r--r--lisp/subr.el9
1 files changed, 9 insertions, 0 deletions
diff --git a/lisp/subr.el b/lisp/subr.el
index f34db188a0f..c199bee05dc 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -652,6 +652,15 @@ as returned by the `event-start' and `event-end' functions."
(make-obsolete 'sref 'aref "20.4")
(make-obsolete 'char-bytes "Now this function always returns 1" "20.4")
+(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."
+ (dolist (el args)
+ (insert (if (integerp el) (number-to-string el) el))))
+
+(make-obsolete 'insert-string 'insert "21.3")
+
;; Some programs still use this as a function.
(defun baud-rate ()
"Obsolete function returning the value of the `baud-rate' variable.