From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +DR7B03sdWCUewEAgWs5BA (envelope-from ) for ; Tue, 13 Apr 2021 21:09:01 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id eLQsAU3sdWDOWAAAbx9fmQ (envelope-from ) for ; Tue, 13 Apr 2021 19:09:01 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id CACDC198CB for ; Tue, 13 Apr 2021 21:08:59 +0200 (CEST) Received: from localhost ([::1]:37530 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lWOPC-0006RY-55 for larch@yhetil.org; Tue, 13 Apr 2021 15:08:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54870) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lWOOa-0006RS-8V for emacs-orgmode@gnu.org; Tue, 13 Apr 2021 15:08:20 -0400 Received: from mout02.posteo.de ([185.67.36.66]:39801) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lWOOX-0001lA-He for emacs-orgmode@gnu.org; Tue, 13 Apr 2021 15:08:20 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 872CE2400FC for ; Tue, 13 Apr 2021 21:08:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1618340890; bh=BUfVRs0EqnTPCCkV07Re8PdzW+pxoGo8FfKpr6WCYJY=; h=From:To:Cc:Subject:Date:From; b=EjpS7dWaK+i7Ge3JCM1ACpRGfI1A9CFIDAvTiedemnNl8ypLoxeWlFu6azonNECjh 6+WrH7BXhpiwkhy03xsW2lwW+tqX32ziCnQdJkMlMmWV7iA4RSvmgH+0+5lwHEJnTU Grt7LRvB8uFCVIYgILoTc5vTOYN8wh4isDEh6dVqepA/lbcAL11/BYDxJvh98jPSXG V9YDFYZ5eTEhIbFJS6ijS5oUn3TXCSplsC5FmdcJOPq+NrmoIJhs5bSY4ga2m8VdqI 5NdQtrm1BzKhItxjsBDlAUGq+C7N4oDdEvXDxC3C0szsdtAo9CbjGk7QoolkxM8udX MPrft6Q8Yosrg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FKZr96D6Kz6tmc; Tue, 13 Apr 2021 21:08:09 +0200 (CEST) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Maxim Nikulin Subject: Re: [Patch] to correctly sort the items with emphasis marks in a list References: <87a6qg1rjx.fsf@posteo.net> <874kgft7n1.fsf@nicolasgoaziou.fr> <87blanxb1z.fsf@posteo.net> <87v98usaqt.fsf@nicolasgoaziou.fr> <87pmz29xjf.fsf@posteo.net> Date: Tue, 13 Apr 2021 21:08:08 +0200 In-Reply-To: (Maxim Nikulin's message of "Wed, 14 Apr 2021 00:31:53 +0700") Message-ID: <877dl6atpj.fsf@posteo.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=maciaschain@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1618340940; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=jjHhXWQ95iKa2QuzA5jQRz3mBR+IzBoX3lBzDhefr54=; b=UxYaM8p9WBR6rReGML0tLGTAvS3HMpIVHuegVKC4I7ZxT3lyFHVIVXJ9g9U0TVg/Pc4mql NWdFG9kfdIgEt7T90vhz1lfqPfRsn7Qgj5qx5C4syAmD/bnoRuITzrFDOfZLFSygPUBUJw kiig4NNJm56WBwJocRc2mDBeN+LkdaDbNAOo7taJ/2jtIQ3vOyXPmFPBK07JnQqeYXWSky /ACCgSpsrUYeUjO6bjK43CuWHUR8OlclUcQQcFIei2jkso2jhebIGMmhgEmyOHhHF3NMYs NcD7QKSktgL5Zs276XyE9mjjQyrCT+GBod7OmLr+nE1JXo9QS6ExKKSr7SlCDw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618340940; a=rsa-sha256; cv=none; b=CzxrizQoj1sxqU1jGSx6zK1BfZr5lkDBESExMLzvBQ6j05qzOU83Gm/Aw7Vv6Myh+O+3JJ mbCAEMRZc5IEiteTxp8VT4qjJ5OPK1CPbW5cXmQg04mY7wdeXD0wXbh//XM+auW8/AtcuI qLNs0+r6yUZ+8O9W0OYqK+lCuavOvjshhu0IAnOy/wc6DGzFzvqlFuicXWBf1RP3r4FuFP tHngT4wVNbSHei++K9j7cO+1AOvjWhXqJep2MjcJ4xKRqV8ghHtsM6dI+JqOjh0IuYRwHX cOVfvbr4NAKfpnTZQpsQ7JFYbQUS3tXnCxy+cDBGCje80Q12ezRy1ecyIE+isA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=EjpS7dWa; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.14 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=EjpS7dWa; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: CACDC198CB X-Spam-Score: -3.14 X-Migadu-Scanner: scn0.migadu.com X-TUID: 91RetmRHibzH Hi, Maxim, Thanks for clearing things up. So it seems obvious that the root of the problem is in the locales and the collation rules. The situation is that with locales configured for Spanish from Spain (en_ES.UTF-8) the list is not ordered correctly, unless those three spaces from org-sort-remove-invisible are removed. But I couldn't say why or if that would be appropriate as a patch... Regarding the collation rule of forms with emphasis, at least in Spanish these should come after the non-emphasized forms. I don't know if this is a general rule also for other languages (at least it seems more natural that the forms without emphasis are placed before). Best regards, Juan Manuel Maxim Nikulin writes: > I could reproduce such result but I am in doubt if it is a reason to > merge the patch. I believe, the following behavior is almost expected > > list.org: > - v > - /v/ > - /a/ > - a > > LC_COLLATE=C.UTF-8 LC_ALL= LANGUAGE= \ > emacs -Q -L ~/src/org-mode/lisp/ -L ~/src/org-mode/contrib/lisp/ \ > list.org > > (org-sort-list t ?a) > > - /a/ > - /v/ > - a > - v > > LC_COLLATE=en_US.UTF-8 LC_ALL= LANGUAGE= \ > emacs -Q -L ~/src/org-mode/lisp/ -L ~/src/org-mode/contrib/lisp/ \ > list.org > > (org-sort-list t ?a) > > - /a/ > - a > - /v/ > - v > > Collation rules depend on language. The question is if emphasized > variant should be sorted first. > > P.S. The thread is broken. Some new messages do not have proper > In-Reply-To header. Original question was not referenced in the > message with patch as well: > https://orgmode.org/list/87blbac0k0.fsf@posteo.net/