]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fkey_description): Fix corner (bug#59305)
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 6 May 2024 15:19:11 +0000 (11:19 -0400)
committerEshel Yaron <me@eshelyaron.com>
Mon, 6 May 2024 16:57:02 +0000 (18:57 +0200)
* src/keymap.c (Fkey_description): Don't mistake latin-1 chars for
ASCII-chars-with-meta.

(cherry picked from commit 5522cc7879a17cab28383c4b1cce611c78c28995)

src/keymap.c

index 10378767c65fe0bc3183cd5f7aa748e8cf8bb7dc..b9d8d18931d7f8a50614f890bca8477ccad36058 100644 (file)
@@ -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);
            }