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