From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Disambiguate modeline character for UTF-8? Date: Tue, 25 Aug 2020 22:26:17 +0300 Message-ID: <83h7sq4jdy.fsf@gnu.org> References: <83wo1p73d2.fsf@gnu.org> <87tuwst23n.fsf@mail.linkov.net> <83o8mz6fh0.fsf@gnu.org> <87k0xmtv3r.fsf@mail.linkov.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4238"; mail-complaints-to="usenet@ciao.gmane.io" Cc: ulm@gentoo.org, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Aug 25 22:07:52 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kAfEW-0000z2-9o for ged-emacs-devel@m.gmane-mx.org; Tue, 25 Aug 2020 22:07:52 +0200 Original-Received: from localhost ([::1]:58724 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kAfEV-0004je-CX for ged-emacs-devel@m.gmane-mx.org; Tue, 25 Aug 2020 16:07:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42032) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kAeaZ-00005z-E3 for emacs-devel@gnu.org; Tue, 25 Aug 2020 15:26:36 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:44690) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kAeaY-0006uu-BX; Tue, 25 Aug 2020 15:26:34 -0400 Original-Received: from [176.228.60.248] (port=4331 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kAeaX-00043k-6a; Tue, 25 Aug 2020 15:26:33 -0400 In-Reply-To: <87k0xmtv3r.fsf@mail.linkov.net> (message from Juri Linkov on Tue, 25 Aug 2020 21:59:00 +0300) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:254226 Archived-At: > From: Juri Linkov > Cc: monnier@iro.umontreal.ca, ulm@gentoo.org, emacs-devel@gnu.org > Date: Tue, 25 Aug 2020 21:59:00 +0300 > > > So on a TTY, you can have "UTF-8UTF-8UTF-8", if all the 3 encodings > > are UTF-8? Or do you only handle buffer-file-coding-system and ignore > > the other 2 encodings? > > Currently the other 2 encodings are ignored on a TTY, but since > often all 3 encodings are the same, then maybe it would be enough They might be the same in your locale, but it isn't necessarily the situation for everyone. > > It's okay to customize the mode line to your personal needs, but are > > you really proposing this for a general-purpose feature in Emacs? > > Because then we'd need to start by deciding what is "non-standard" in > > this context. For example, assuming the "standard" encoding is the > > one determined by the locale, then if one lives in a non-UTF-8 locale, > > they will always see "non-standard" strings in each and every .el file > > they ever edit, which doesn't sound like a good idea to me. > > A list of "standard" codings could be customizable, so every user > could add more codings to it after learning their mnemonic characters. My point is that "standard" depends on several factors, so a fixed preferred value is probably not enough. So I don't think you suggestion is a good idea in general, sorry.