Giter Site home page Giter Site logo

Comments (12)

TheBB avatar TheBB commented on May 18, 2024

Original comment by York Zhao (Bitbucket: york, GitHub: york):


9f7dbc finally fixed the issue, working beautifully now. Good job Vegard.

Thanks a lot

from evil.

TheBB avatar TheBB commented on May 18, 2024

Original comment by Vegard Øye (Bitbucket: epsil, GitHub: epsil):


If this second bug is in any way related to the first (which was addressed by commit 8dd67aa), then commit 9f7dbc2 //might// fix it. But as I said, I'm not exactly sure what we're dealing with here.

from evil.

TheBB avatar TheBB commented on May 18, 2024

Original comment by Vegard Øye (Bitbucket: epsil, GitHub: epsil):


I upgraded to version 7.8.03. Still nothing.

I don't even understand what kind of bug this is supposed to be. The only way I can get something similar is if I insert newlines in between. That is,

** foo

** bar

** something else

instead of

** foo
** bar
** something else

Then, if I select foo + newline + bar, I get bar + foo + newline after sorting (the "newline layout" is not retained). If I select foo + newline + bar + newline, then I get bar + newline + foo + newline after sorting (the "newline layout" //is// retained).

from evil.

TheBB avatar TheBB commented on May 18, 2024

Original comment by York Zhao (Bitbucket: york, GitHub: york):


I'm using the latest org-version from git, v7.8.03, but the problem has been there for awhile, back to the time while using v7.7.

from evil.

TheBB avatar TheBB commented on May 18, 2024

Original comment by Vegard Øye (Bitbucket: epsil, GitHub: epsil):


I'm still not able to reproduce this. What is your version of Org-mode (M-x org-version)? Mine is 7.6, installed with sudo apt-get install org-mode.

from evil.

TheBB avatar TheBB commented on May 18, 2024

Original comment by York Zhao (Bitbucket: york, GitHub: york):


Should be "Vj" to select only the first two lines not "Vjj".

from evil.

TheBB avatar TheBB commented on May 18, 2024

Original comment by Vegard Øye (Bitbucket: epsil, GitHub: epsil):


I'm still unable to reproduce it. Here are my steps:

  1. Start a fresh Evil instance with make emacs.

  2. Create an empty buffer with :b test.

  3. Insert the following text:

    ** foo
    ** bar
    ** something else

  4. Go to the beginning of the buffer.

  5. Select the text with Vjj.

  6. Sort the lines with M-x org-sort ([a]lpha).

  7. Result:

    ** bar
    ** foo
    ** something else

from evil.

TheBB avatar TheBB commented on May 18, 2024

Original comment by Anonymous:


Could you wrap the example in ... so that BitBucket doesn't format it?

Sorry I didn't know how to stop BitBucket's auto format. So here is the org-mode buffer to start with:

** foo
** bar
** something else

Type "V", then "j" to select the first two lines, and M-x org-sort, choose 'a' and the buffer becomes:

** bar**
foo
<blank line>
** something else

which is incorrect, after the sort the buffer should be:

** bar
** foo
** something else

Thanks

from evil.

TheBB avatar TheBB commented on May 18, 2024

Original comment by Vegard Øye (Bitbucket: epsil, GitHub: epsil):


I'm not able to reproduce this. Could you wrap the example in ... so that BitBucket doesn't format it?

from evil.

TheBB avatar TheBB commented on May 18, 2024

Original comment by York Zhao (Bitbucket: york, GitHub: york):


Bump this one as I was confused by what "wontfix" means.

from evil.

TheBB avatar TheBB commented on May 18, 2024

Original comment by York Zhao (Bitbucket: york, GitHub: york):


This is still problematic, example:

== *** foo
== *** bar
== *** something else

After `org-sort', they become:

== *** bar***
== foo

== *** something else

from evil.

TheBB avatar TheBB commented on May 18, 2024

Original comment by Vegard Øye (Bitbucket: epsil, GitHub: epsil):


Fixed in commit 8dd67aa.

from evil.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.