[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/relint 3cb19ed 2/5: Avoid byte-compilation warning in E
From: |
Mattias Engdegård |
Subject: |
[elpa] externals/relint 3cb19ed 2/5: Avoid byte-compilation warning in Emacs 26 |
Date: |
Sun, 10 May 2020 10:37:57 -0400 (EDT) |
branch: externals/relint
commit 3cb19ed8966f5ab7a4577865def0ddba62d157e4
Author: Mattias Engdegård <address@hidden>
Commit: Mattias Engdegård <address@hidden>
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)