Mercurial > emacs
comparison lisp/emulation/mlsupport.el @ 11093:278c796d9d7e
(ml-concat): New function.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Wed, 22 Mar 1995 20:39:17 +0000 |
parents | 626086713f36 |
children | 187735b53d52 |
comparison
equal
deleted
inserted
replaced
11092:c20013843cb1 | 11093:278c796d9d7e |
---|---|
417 (let ((length (length string))) | 417 (let ((length (length string))) |
418 (if (< from 0) (setq from (+ from length))) | 418 (if (< from 0) (setq from (+ from length))) |
419 (if (< to 0) (setq to (+ to length))) | 419 (if (< to 0) (setq to (+ to length))) |
420 (substring string from (+ from to)))) | 420 (substring string from (+ from to)))) |
421 | 421 |
422 (defun ml-concat (&rest args) | |
423 (let ((newargs nil) this) | |
424 (while args | |
425 (setq this (car args)) | |
426 (if (numberp this) | |
427 (setq this (number-to-string this))) | |
428 (setq newargs (cons this newargs) | |
429 args (cdr args))) | |
430 (apply 'concat (nreverse newargs)))) | |
431 | |
422 (provide 'mlsupport) | 432 (provide 'mlsupport) |
423 | 433 |
424 ;;; mlsupport.el ends here | 434 ;;; mlsupport.el ends here |