1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

Change the string-limit parameter semantics

* lisp/emacs-lisp/subr-x.el (string-limit): Alter the calling
convention.
This commit is contained in:
Lars Ingebrigtsen 2020-12-22 06:54:32 +01:00
parent d2b8611862
commit 9480169f1b
4 changed files with 22 additions and 19 deletions

View file

@ -145,7 +145,7 @@ There can be any number of :example/:result elements."
:eval (substring "foobar" 3))
(string-limit
:eval (string-limit "foobar" 3)
:eval (string-limit "foobar" -3)
:eval (string-limit "foobar" 3 t)
:eval (string-limit "foobar" 10))
(split-string
:eval (split-string "foo bar")