From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Artur Malabarba Newsgroups: gmane.emacs.devel Subject: Re: On language-dependent defaults for character-folding Date: Tue, 09 Feb 2016 17:10:47 +0000 Message-ID: <87a8n9izc8.fsf@gmail.com> References: <83si11bwat.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1455045070 28922 80.91.229.3 (9 Feb 2016 19:11:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Feb 2016 19:11:10 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 09 20:11:10 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aTDgr-0007Av-Q7 for ged-emacs-devel@m.gmane.org; Tue, 09 Feb 2016 20:11:09 +0100 Original-Received: from localhost ([::1]:59740 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTDgr-0006FO-3q for ged-emacs-devel@m.gmane.org; Tue, 09 Feb 2016 14:11:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37390) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTDgm-0006FC-Lg for emacs-devel@gnu.org; Tue, 09 Feb 2016 14:11:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aTDgh-0000VD-Id for emacs-devel@gnu.org; Tue, 09 Feb 2016 14:11:04 -0500 Original-Received: from mail-qg0-x234.google.com ([2607:f8b0:400d:c04::234]:34899) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTDgh-0000V9-EI; Tue, 09 Feb 2016 14:10:59 -0500 Original-Received: by mail-qg0-x234.google.com with SMTP id y89so73779464qge.2; Tue, 09 Feb 2016 11:10:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type:content-transfer-encoding; bh=w1Bbbfs9OJnik6w23Ti0d/5zMSZHqnh/vRC0oiimSak=; b=N/vaKAns69WpaV87rkMWg5Jj1XTSRsqJ1RvRpvJdmh39R+E8EMQ/mUN4Ped6hQ/eRM KGyqhYuHI2ayYOu7rCsjwYZuE7dqRzbN6e+fnZbAzQwh6xhjXeAH9TgoIOjXIhC3aE3C DbtH19KdNB9ctOXtf+f7OORZgukX4YCKRawX3bQhit0objq3h9xelGAL/hbgt8dyf5ro RQGPOOitwmL1zjKLsnNjeM8+5eNUYDLbLmXNiK5Thxl4taBIlxBy7tfEnSwxV2vbXLzW y9MgFtOd9haWzLjEtgix3IPwuWDiEZZiZn0r7DNyWwp7TvIptO6z6N2I9IddPYR9IzRJ eFyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version:content-type :content-transfer-encoding; bh=w1Bbbfs9OJnik6w23Ti0d/5zMSZHqnh/vRC0oiimSak=; b=fpWSnXVOZV7FXN3+JeJM7ALb+Qkkph+cAdxqEOan0X3b6Fbu25/ZLyTt90ZjFc8jb3 LFEWlJKxua/XkuVpFK2WxIkr2111WGRbZfkCPX/YoxeW0G8gl2F8PeU3lTesGS7gwGIR oMp4lg7rvAYwbvi+h2g/kNwRrxmcXCSSU/3fT+i4yL1NbkANcHS+Tw8e+FHw+bY8BMqu VB9UePLlHxX9rG+YeZpPTiUHXAbNfm/CvkHdf2kl1Kv3iXqgJ3bu0kjgOoUrcCe4Krzx tQuQUzkYvMMAu5/Tee44E4ro742fuGk8ElDKcEj6KTmXr1wRb/MDmko7lEJq7H+6dWeO LH0A== X-Gm-Message-State: AG10YOTLIUNOfTw0WhzRbPsAayc4Vp6uXPi/jMRApLQODgAzmFQ0NxV+sYijMGWh6LeTWA== X-Received: by 10.140.21.232 with SMTP id 95mr29177952qgl.12.1455045059139; Tue, 09 Feb 2016 11:10:59 -0800 (PST) Original-Received: from Gandalf-Linux.gmail.com ([201.37.160.34]) by smtp.gmail.com with ESMTPSA id v78sm16272720qge.25.2016.02.09.11.10.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Feb 2016 11:10:58 -0800 (PST) In-Reply-To: <83si11bwat.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 09 Feb 2016 19:58:18 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400d:c04::234 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:199628 Archived-At: Eli Zaretskii writes: >> I don't know if it's possible to figure out the language of the user's >> keyboard layout. > > It's possible on some systems (maybe on all of them). But it isn't > TRT, IMO, because one can use input methods external to Emacs, which > makes this problem unsolvable, AFAIU. > > I think our energy will be much better spent by preparing a data base > of preferences by various groups of users, including (but not limited > to) something that can be vaguely called "typical user of language X", > for several values of X. I disagree that it's not TRT. Most problems are technically unsolvable if you take into account the infinity of ways that the user could have customized Emacs or their OS, that doesn't prevent us from solving the =E2=80=9Ctypical=E2=80=9D case. But I'm also fine with your proposed alternative. Having a separate setting that governs multiple features and might allow us to identify a user's =E2=80=9Cmain=E2=80=9D language (or something like = that), sounds useful too. While I'd prefer to rely on =E2=80=9Cthe language that the user types in=E2=80=9D, relying on =E2=80=9Cthe user's language=E2=80=9D is a fi= ne compromise. As long as =E2=80=9Cthe buffer's language=E2=80=9D doesn't factor in.