From e5695faec4a43f10be3b56fa7fd436d5f54a5761 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mattias=20Engdeg=C3=A5rd?= Date: Fri, 19 Aug 2022 13:27:53 +0200 Subject: [PATCH] * lisp/edmacro.el (edmacro-sanitize-for-string): Fix condition. This is of little consequence in practice since the input is always a vector of keys representing a prefix, where bit 7 isn't likely to be set when higher bits are set, but it silences a (justified) warning. --- lisp/edmacro.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/edmacro.el b/lisp/edmacro.el index efffab9b30b..26a5d2347f0 100644 --- a/lisp/edmacro.el +++ b/lisp/edmacro.el @@ -626,7 +626,7 @@ The string represents the same events; Meta is indicated by bit 7. This function assumes that the events can be stored in a string." (setq seq (copy-sequence seq)) (cl-loop for i below (length seq) do - (when (logand (aref seq i) 128) + (when (/= (logand (aref seq i) 128) 0) (setf (aref seq i) (logand (aref seq i) 127)))) seq) -- 2.39.2