]> git.eshelyaron.com Git - emacs.git/commit
Make string-limit with encoding return complete glyphs
authorLars Ingebrigtsen <larsi@gnus.org>
Sun, 3 Jul 2022 12:05:01 +0000 (14:05 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 3 Jul 2022 12:08:14 +0000 (14:08 +0200)
commitb72e4b149329797b8f2c947953251f92615ee73e
tree3232e47d9ff3c7e682b0bb086de36b73dae4cbb8
parentcfee07d4dd6317bc235046b99542fa76dc676dde
Make string-limit with encoding return complete glyphs

* lisp/emacs-lisp/subr-x.el (string-limit): Return more correct
results in the CODING-SYSTEM case for coding systems with BOM and
charset designations (bug#48324).  Also amend the algorithm to
return complete glyphs, not just complete code points.
lisp/emacs-lisp/subr-x.el
test/lisp/emacs-lisp/subr-x-tests.el