From: Stefan Monnier Date: Mon, 6 May 2024 15:19:11 +0000 (-0400) Subject: (Fkey_description): Fix corner (bug#59305) X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2a04e58617464853fd68a388094a7612d4b261aa;p=emacs.git (Fkey_description): Fix corner (bug#59305) * src/keymap.c (Fkey_description): Don't mistake latin-1 chars for ASCII-chars-with-meta. (cherry picked from commit 5522cc7879a17cab28383c4b1cce611c78c28995) --- diff --git a/src/keymap.c b/src/keymap.c index 10378767c65..b9d8d18931d 100644 --- a/src/keymap.c +++ b/src/keymap.c @@ -2125,7 +2125,7 @@ For an approximate inverse of this, see `kbd'. */) if (STRINGP (list)) { int c = fetch_string_char_advance (list, &i, &i_byte); - if (SINGLE_BYTE_CHAR_P (c) && (c & 0200)) + if (!STRING_MULTIBYTE (list) && (c & 0200)) c ^= 0200 | meta_modifier; key = make_fixnum (c); }