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.bugs Subject: bug#46240: Sorting order of read-char-by-name Date: Mon, 01 Feb 2021 19:41:07 +0200 Message-ID: <83wnvr65zg.fsf@gnu.org> References: <87v9bb4tm2.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9259"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 46240@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 01 18:41:56 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1l6dD1-0002IK-8Z for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 01 Feb 2021 18:41:55 +0100 Original-Received: from localhost ([::1]:52968 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l6dD0-0005p2-7s for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 01 Feb 2021 12:41:54 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41466) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6dCA-0005Oj-Ag for bug-gnu-emacs@gnu.org; Mon, 01 Feb 2021 12:41:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49759) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l6dC9-0002XV-LF for bug-gnu-emacs@gnu.org; Mon, 01 Feb 2021 12:41:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l6dC9-0006PA-Jl for bug-gnu-emacs@gnu.org; Mon, 01 Feb 2021 12:41:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 01 Feb 2021 17:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46240 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 46240-submit@debbugs.gnu.org id=B46240.161220125424599 (code B ref 46240); Mon, 01 Feb 2021 17:41:01 +0000 Original-Received: (at 46240) by debbugs.gnu.org; 1 Feb 2021 17:40:54 +0000 Original-Received: from localhost ([127.0.0.1]:33072 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6dC0-0006Of-Bp for submit@debbugs.gnu.org; Mon, 01 Feb 2021 12:40:53 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51770) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6dBx-0006OS-3L for 46240@debbugs.gnu.org; Mon, 01 Feb 2021 12:40:51 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:57108) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l6dBq-0002P8-Pl; Mon, 01 Feb 2021 12:40:42 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1258 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1l6dBp-0008SB-39; Mon, 01 Feb 2021 12:40:42 -0500 In-Reply-To: <87v9bb4tm2.fsf@mail.linkov.net> (message from Juri Linkov on Mon, 01 Feb 2021 19:23:41 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:199099 Archived-At: > From: Juri Linkov > Date: Mon, 01 Feb 2021 19:23:41 +0200 > > After typing e.g. 'C-x 8 RET GREEK TAB' completions are sorted in an > non-alphabetical order: > > Ͳ GREEK CAPITAL LETTER ARCHAIC SAMPI > Β GREEK CAPITAL LETTER BETA > Χ GREEK CAPITAL LETTER CHI > Ϯ GREEK CAPITAL LETTER DEI > Δ GREEK CAPITAL LETTER DELTA > > where the 22nd letter of the Greek alphabet CHI is between BETA and DELTA. > This is because currently completions are sorted by English names. > > The following patch sorts them by their Unicode order that mostly follows > the alphabetical order, and at least makes more sense to be consistent > with Unicode tables where characters are grouped more logically. This has 2 disadvantages: . the user needs to know the order of characters within a script he/she doesn't necessarily read . the user needs to know the order _between_ scripts, if the candidates include characters from different Unicode blocks If the user doesn't know this order, he/she might be unable to find the required character quickly, if the list of candidates is long enough. The current order, while it doesn't follow the order of the characters within the script, makes it very easy to find the character for anyone who knows English (more generally, Latin) alphabet. So I'm not sure the proposed change is necessarily for the better, at least not in all the use cases.