diff options
| author | Eli Zaretskii | 2006-08-18 12:07:38 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2006-08-18 12:07:38 +0000 |
| commit | a8bcc348b132a018956ca661db45d72b26225b0e (patch) | |
| tree | e62c0a99a5b287ccaa1670f8563379df501ad0ea | |
| parent | 017e297ea90933bfde94de5f90f9f9260ff032e8 (diff) | |
| download | emacs-a8bcc348b132a018956ca661db45d72b26225b0e.tar.gz emacs-a8bcc348b132a018956ca661db45d72b26225b0e.zip | |
(spaces-string): Simplify and add doc string.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/rect.el | 7 |
2 files changed, 6 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 86ac55cd5dc..5ebd5bbb859 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2006-08-18 Gustav H,Ae(Bllberg <gustav@gmail.com> (tiny change) | ||
| 2 | |||
| 3 | * rect.el (spaces-string): Simplify and add doc string. | ||
| 4 | |||
| 1 | 2006-08-17 Romain Francoise <romain@orebokech.com> | 5 | 2006-08-17 Romain Francoise <romain@orebokech.com> |
| 2 | 6 | ||
| 3 | * progmodes/gdb-ui.el (gdb-edit-locals-value): Balance parens. | 7 | * progmodes/gdb-ui.el (gdb-edit-locals-value): Balance parens. |
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." | |||
| 181 | 181 | ||
| 182 | ;; this one is untouched --dv | 182 | ;; this one is untouched --dv |
| 183 | (defun spaces-string (n) | 183 | (defun spaces-string (n) |
| 184 | "Returns a string with N spaces." | ||
| 184 | (if (<= n 8) (aref spaces-strings n) | 185 | (if (<= n 8) (aref spaces-strings n) |
| 185 | (let ((val "")) | 186 | (make-string n ? ))) |
| 186 | (while (> n 8) | ||
| 187 | (setq val (concat " " val) | ||
| 188 | n (- n 8))) | ||
| 189 | (concat val (aref spaces-strings n))))) | ||
| 190 | 187 | ||
| 191 | ;;;###autoload | 188 | ;;;###autoload |
| 192 | (defun delete-rectangle (start end &optional fill) | 189 | (defun delete-rectangle (start end &optional fill) |