From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id ANniOcOoWWDqXwAA0tVLHw (envelope-from ) for ; Tue, 23 Mar 2021 08:37:23 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id mGquNcOoWWA9dQAAB5/wlQ (envelope-from ) for ; Tue, 23 Mar 2021 08:37:23 +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 D2A1E2B754 for ; Tue, 23 Mar 2021 09:37:22 +0100 (CET) Received: from localhost ([::1]:41020 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lOcXP-0001lA-Ks for larch@yhetil.org; Tue, 23 Mar 2021 04:37:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43482) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lOcX2-0001l0-1V for emacs-orgmode@gnu.org; Tue, 23 Mar 2021 04:36:56 -0400 Received: from mout01.posteo.de ([185.67.36.65]:56585) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lOcWx-0006JQ-It for emacs-orgmode@gnu.org; Tue, 23 Mar 2021 04:36:55 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id D2AC116005C for ; Tue, 23 Mar 2021 09:36:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1616488608; bh=A0JpN+iLOHMXFogM+7016v4LzU1KAq+Qypvo0Pnzdgk=; h=From:To:Subject:Date:From; b=N6XNrvoUN0PxJt90Ku1D5obkNYv38iUYdagE4zOjm+wP8gJ45qS5/2glL7yIJ6t5E i4qjx9xB1JXRD6jDzWj2+JXmNwy5TDKbd7DzAzhNPfDVPRiqAYTuxMHPOwIBlCPG1M 2hcXzw8FpTpsPtrOQJ1YH77uVlV1o725zQOyD4hG6lIrT/Wh7DeO7MTZq4+Sn2W6hA F0AS0l5GaEjYrvsBh9IinyNVyMupctKj/v77FFCVWvt20vr4Ga6MRblBHV3KD7sCdo H64ezWLDgm4QMJh4U+F68fVet2/qdaVAGJB6XOvql+tEatnIpKTlyEHhVaIZxwoCir 3oDyPnhAt6Wuw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4F4PqM6W48z9rxN for ; Tue, 23 Mar 2021 09:36:47 +0100 (CET) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: orgmode Subject: Re: Items with emphasis marks are not sorted properly in a list References: <87blbac0k0.fsf@posteo.net> Date: Tue, 23 Mar 2021 09:36:46 +0100 In-Reply-To: <87blbac0k0.fsf@posteo.net> ("Juan Manuel =?utf-8?Q?Mac=C3=AD?= =?utf-8?Q?as=22's?= message of "Mon, 22 Mar 2021 22:59:11 +0100") Message-ID: <87tup2xo4h.fsf@posteo.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=maciaschain@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, 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: , 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=1616488643; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=8lIMBGqA3czimVH+UmYTi83y5TCez+Sma7zVvKwHJzA=; b=IOERba2InHcgYzxOIV7M2ixI99T6bPW1zRhJfojzfG+ReDWWmILLaU4SLoLfAmt0ji6+9c sNPJ2PS79ruH/d0WXmT0xe7jgx//AOrFUo7qq7SO0nH4aO5srawZ3DbTw53Dpn6UNt1vhi RE2M3KllLln3VKpg5IDdOQfQJ4jmSaUn6V6amWmuh1pnjkYrPyAdhAHoAt9b1qQhNBgHG4 9wxBGpYEzcodPuwRhSjKAvQW6kz7ZU0Tvbjrwz/HYnPjPrfNh4pDp9jkwwaOzNdfjhNu9z /J4yOJpdRbNPgwev3prV1+xtJ5xZW23KBJTKUyXhz0ktaJxBxJsiDn2oqLPTFQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1616488643; a=rsa-sha256; cv=none; b=AV40NqZAtMLSKPtv6BjRAfVc3Sv6Vna3f8i6Ss6SM4Mm0OJpUf/envAKIWOiRVphz1O28g BVK2NmJTCWxDI3GgOO9EhI9bFflfWa33fTvcOzZByMlm9wU/HzFmvGbmm0CyTyQqmnzMso nSssOzDqNMhE9aXfkQEj7iaitPsCjaC4m3/4neewX2uzq2naZYgpYybaaLzyUTdM30KZdb dvDMBqM0YZ8RkdMVN7V7XHw6IZXy8ijySISTbG9aXS2hpgpR0/XdcmqdaZv9TC8kWkQEN5 BfMBlwSpFssugefRsaU89UAcLsF8n9pga9JeFPLzEHYd89pHkTlpOXOMAPO6ZA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=N6XNrvoU; 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-Spam-Score: -3.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=N6XNrvoU; 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: D2A1E2B754 X-Spam-Score: -3.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: BYUQHQYvFUyi Hello again: I think I have found where the problem is. On line 7 of `org-sort-remove-invisible' there are two spurious spaces (in the `format' expression): 7 org-emph-re (lambda (m) (format " %s " (match-string 4 m))) When the spaces are removed, then the items with emphasis marks are sorted correctly in the list: 7 org-emph-re (lambda (m) (format "%s" (match-string 4 m))) Can this be a fix? Or were those spaces there for any other reason? Best regards, Juan Manuel=20 Juan Manuel Mac=C3=ADas writes: > Hi, > > Consider this list: > > - vol. > - adj. > - /circa/ > - /vid./ > > If I evaluate `(org-sort-list t ?a)', it seems that `org-sort-list' > doesn't sort correctly items that contain an emphasis mark: > > - /circa/ > - /vid./ > - adj. > - vol. > > I don't know if there is any solution to this, or if I'm doing something = wrong... > > Best regards, > > Juan Manuel=20 >