From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id gOqxOPvqcGBxqQAAgWs5BA (envelope-from ) for ; Sat, 10 Apr 2021 02:02:03 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id yKyKMvvqcGBaLAAAbx9fmQ (envelope-from ) for ; Sat, 10 Apr 2021 00:02:03 +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 42832B887 for ; Sat, 10 Apr 2021 02:02:03 +0200 (CEST) Received: from localhost ([::1]:38690 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lV14b-0003oy-B5 for larch@yhetil.org; Fri, 09 Apr 2021 20:02:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39920) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lV140-0003on-2y for emacs-orgmode@gnu.org; Fri, 09 Apr 2021 20:01:24 -0400 Received: from mout01.posteo.de ([185.67.36.65]:34647) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lV13x-0003L6-I8 for emacs-orgmode@gnu.org; Fri, 09 Apr 2021 20:01:23 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 704621A022B for ; Sat, 10 Apr 2021 02:01:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1618012874; bh=g6e+Jmq0BcnhPg2IyqakU5e+PuDuVI587tE0OhBUWWI=; h=From:To:Cc:Subject:Date:From; b=pyvjWalbyhMwn2tMyML37t0f2caLxI4oJ60br9FlflivSELu2Spr+yL/7Eve1ggKV +jd20DCtu74KM71p9eAPmMvRTWSmJjBdOG6jTE+qgrDSEa/Lf7oEoc0Q0lm/OSvRBd dON/yRR3+8A6aaGIMaJg7WZ5o1Pyo8L8R1JXUnJU1+GY3fah6CKBD9tvo5PWn9nQd1 CId9hKP8uALiDaW2v5WtvswupA/f5zq/N+SAg8F8kHuahHPfzG0g8g8GS8dGTt8z45 +riDJ2xb5/PdXRvemKYA0dvXzFE6yrV061JBVLzSbe26vvqIjiPTfqNDLCeB8KpJHy oCm1YE+/AtEzA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FHFX93gxGz6tmB; Sat, 10 Apr 2021 02:01:13 +0200 (CEST) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Nicolas Goaziou Subject: Re: [Patch] to correctly sort the items with emphasis marks in a list References: <87a6qg1rjx.fsf@posteo.net> <874kgft7n1.fsf@nicolasgoaziou.fr> Date: Sat, 10 Apr 2021 02:01:12 +0200 In-Reply-To: <874kgft7n1.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Sat, 10 Apr 2021 00:28:34 +0200") Message-ID: <87blanxb1z.fsf@posteo.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=185.67.36.65; envelope-from=maciaschain@posteo.net; helo=mout01.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=1618012923; 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=iEcrr0Eb/r2bSJX01oSFdMVbnwqS+q2Oja7UvZmHuD0=; b=f73Jc9jqup4o7zaEAiOPpjdUpRBQpNK5ZcigmAY057Qv+T65MOI8NEsW39rH3s/IQX+0ty 8JxSViZKcklFM1131vL83rEPhKr2xgQkKJV+GZ/V532+Ov4mFBbR3S2xMLsCcnaMMYZP98 s2sel31vSUViART/NtcOom7n7EsQY6wguK7JO1MFKj5wgQVH4yiYyo20/xczdfsb9FVTnd kV8eof6R6vXA6CD0ERkw3lraf05MGdwNkPGDFEEJZHAHGeM7if+ZQhuD3B2ZZCOl8B8N9P EMObKNAx6PWExIfHYsMbSL5CCVTO1QkbeZJaga7FVXP9km46GfCRb8/E0vyKbA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618012923; a=rsa-sha256; cv=none; b=CqLQzczphW1Krwn1ZYlf3k+sU7Wlot4m6iDMQCEwZWfih8392rZt4aVMgEmkEcVAbgr9BK FILB6C4gEvSRq/NVHn0ervihF+XU29UjK9wGjwE5rdeXk7Wx7UeNBggZTCc3sAwHqzpvQQ djW70fwJdMYXk6W4t+5ESSJ2V8u9zEE/8QQ71egGp8T/UwtzTWln0JisQ3QCQYdmE3B7oM DgBKOh8l5z6WwSqvLehbmzg7SeSu+ANZauXXyRtm1cTzMZSDsv5HpbYi5/2zPe/aneFtGb 44b0sBi7EYxsDVyRjzSt5m0AJCvO8QIRMtdYmtddwsrQDARReMc+tNsr1KQUgg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=pyvjWalb; 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=pyvjWalb; 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: 42832B887 X-Spam-Score: -3.14 X-Migadu-Scanner: scn0.migadu.com X-TUID: xVOFHqRbAuz7 --=-=-= Content-Type: text/plain Hellow Nicolas: Nicolas Goaziou writes: > Thank you. > > Could you apply the same fix to the `org-verbatim-re' match above, and > provide an appropriate commit message? Done! I've attached the corrected patch. Sorry for the flaws in me previous patch: I'm a bit of a novice at submitting patches... Best regards, Juan Manuel --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Remove-spurious-spaces-in-org-sort-remove-invisible.patch >From ab104bb079e3e32d622a6ff53824b5047dc25c14 Mon Sep 17 00:00:00 2001 From: Juan Manuel Macias Date: Fri, 2 Apr 2021 21:20:17 +0200 Subject: [PATCH] Remove spurious spaces in org-sort-remove-invisible Some spurious spaces in org-sort-remove-invisible is causing org-sort-list not to sort correctly (alphabetically) the items that contain emphasis marks in a plain list --- lisp/org.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index 675a614e2..74e2afac9 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -8113,9 +8113,9 @@ Optional argument WITH-CASE means sort case-sensitively." "Remove invisible part of links and emphasis markers from string S." (remove-text-properties 0 (length s) org-rm-props s) (replace-regexp-in-string - org-verbatim-re (lambda (m) (format "%s " (match-string 4 m))) + org-verbatim-re (lambda (m) (format "%s" (match-string 4 m))) (replace-regexp-in-string - org-emph-re (lambda (m) (format " %s " (match-string 4 m))) + org-emph-re (lambda (m) (format "%s" (match-string 4 m))) (org-link-display-format s) t t) t t)) -- 2.26.0 --=-=-=--