Make string-pad take an optional START parameter

* lisp/emacs-lisp/subr-x.el (string-pad): Alter the calling
convention.
This commit is contained in:
Lars Ingebrigtsen 2020-12-22 06:59:25 +01:00
parent 9480169f1b
commit 051d8f7535
4 changed files with 14 additions and 12 deletions

View file

@ -613,7 +613,7 @@
(ert-deftest subr-string-pad ()
(should (equal (string-pad "foo" 5) "foo "))
(should (equal (string-pad "foo" 5 ?-) "foo--"))
(should (equal (string-pad "foo" -5 ?-) "--foo"))
(should (equal (string-pad "foo" 5 ?- t) "--foo"))
(should (equal (string-pad "foo" 2 ?-) "foo")))
(ert-deftest subr-string-chop-newline ()