emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Patch] to correctly sort the items with emphasis marks in a list


From: Maxim Nikulin
Subject: Re: [Patch] to correctly sort the items with emphasis marks in a list
Date: Wed, 14 Apr 2021 00:31:53 +0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1

On 10/04/2021 18:41, Juan Manuel Macías wrote:
Nicolas Goaziou writes:

Do you have a simple test case to reproduce the problem? Currently
sorting the following trivial lists causes no issue:

     - b
     - *a*

and

     - *b*
     - a

The current result is wrong:

- /a/
- /v/
- a
- b

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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]