branch: externals/relint commit 3cb19ed8966f5ab7a4577865def0ddba62d157e4 Author: Mattias Engdegård <matti...@acm.org> Commit: Mattias Engdegård <matti...@acm.org>
Avoid byte-compilation warning in Emacs 26 string-to-multibyte was marked obsolete in Emacs 26 (but no longer is). --- relint.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/relint.el b/relint.el index 0651d3b..b946bf4 100644 --- a/relint.el +++ b/relint.el @@ -1420,7 +1420,9 @@ than just to a surrounding or producing expression." (push (cons arg arg) ranges)) ((stringp arg) - (let* ((s (string-to-multibyte arg)) + ;; `string-to-multibyte' was marked obsolete in Emacs 26, + ;; but no longer is. + (let* ((s (with-no-warnings (string-to-multibyte arg))) (j 0) (len (length s))) (while (< j len)