diff options
author | Eli Zaretskii <eliz@gnu.org> | 2006-08-18 12:07:38 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2006-08-18 12:07:38 +0000 |
commit | a8bcc348b132a018956ca661db45d72b26225b0e (patch) | |
tree | e62c0a99a5b287ccaa1670f8563379df501ad0ea /lisp/rect.el | |
parent | 017e297ea90933bfde94de5f90f9f9260ff032e8 (diff) | |
download | emacs-a8bcc348b132a018956ca661db45d72b26225b0e.tar.gz |
(spaces-string): Simplify and add doc string.
Diffstat (limited to 'lisp/rect.el')
-rw-r--r-- | lisp/rect.el | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lisp/rect.el b/lisp/rect.el index be3a65ccd6a..9515733ef2b 100644 --- a/lisp/rect.el +++ b/lisp/rect.el @@ -181,12 +181,9 @@ the function is called." ;; this one is untouched --dv (defun spaces-string (n) + "Returns a string with N spaces." (if (<= n 8) (aref spaces-strings n) - (let ((val "")) - (while (> n 8) - (setq val (concat " " val) - n (- n 8))) - (concat val (aref spaces-strings n))))) + (make-string n ? ))) ;;;###autoload (defun delete-rectangle (start end &optional fill) |