emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Disambiguate modeline character for UTF-8?


From: Basil Contovounesios
Subject: Re: Disambiguate modeline character for UTF-8?
Date: Sat, 08 Jul 2023 17:21:15 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Eli Zaretskii [2023-07-08 18:38 +0300] wrote:

>> From: Basil Contovounesios <contovob@tcd.ie>
>> Cc: Ulrich Müller <ulm@gentoo.org>,  eggert@cs.ucla.edu,
>>   emacs-devel@gnu.org
>> Date: Sat, 08 Jul 2023 16:27:43 +0100
>> 
>> Eli Zaretskii [2023-07-08 11:49 +0300] wrote:
>> 
>> Thanks, but I think it's too early in the build to use \N{name} syntax:
>
> Thanks, I've somehow missed that.  But why \uNNNN instead of just the
> character itself?

I just followed the example of characters.el and mule-conf.el, but...

> *.el files are always UTF-8 encoded, so there's no need to use only
> ASCII.

...I see cyrillic.el explicitly declares -*- coding: utf-8 -*-.
Is this what you had in mind?

diff --git a/lisp/language/cyrillic.el b/lisp/language/cyrillic.el
index 9ad65877140..cf3ee5a2b9d 100644
--- a/lisp/language/cyrillic.el
+++ b/lisp/language/cyrillic.el
@@ -127,7 +127,7 @@ 'koi8-u
   "KOI8-U 8-bit encoding for Cyrillic (MIME: KOI8-U)"
   :coding-type 'charset
   ;; This used to be ?U which collided with UTF-8.
-  :mnemonic ?\u0423                 ; ?\N{cyrillic capital letter u} У
+  :mnemonic ?У
   :charset-list '(koi8-u)
   :mime-charset 'koi8-u)
 
Thanks,

-- 
Basil

reply via email to

[Prev in Thread] Current Thread [Next in Thread]