added outline-cycle-all, bugfix#3
added outline-cycle-all, bugfix#3tj64 merged 1 commit intotj64:masterfrom guicho271828:outline-cycle-all
Conversation
|
Thanks for the patch, I cannot test this right now, except reading the code, so I trust you and apply the commit anyway. Are you aware of outshine.el? It includes all of outline-magic with bug fixes as well as much new functionality, and is accompagnied by outorg.el and navi-mode.el. But it does not replace outline-magic, since its focussed on offering 'org-mode outside org-mode'. |
|
I wasn't aware of outshine.el. As far as I recall, I found this outline-magic at emacswiki and at that time outshine did not come up in my mind. If it is maintained better than outline-cycle, .... maybe it's the time to switch, thanks to your advice, ironically. |
|
Almost everything about this is wrong. @tj64 could you please revert this and stop merging stuff without review and any testing? It is better to leave thinks unmerged than to later have to back paddle. I think I know what problem @guicho271828 tried to fix but don't have the time to fix this properly now either. But not fixing it is better than applying this supposed fix. Even if this actually was the proper fix, this commit should still not have been merged. It uses spaces for indentation when the rest of the file uses tabs. What should have been explained in the doc-strings instead was added as ugly comments. It uses I could probably find some more problems -- this should not have been merged. |
|
so... I made the points raised by @tarsius fixed. Thank you very much for the review on stylistic errors and the new bug. Previously, C-u outline-cycle hid every contents of the buffer when (1) the new cycle is the overview (2) the beginning of buffer does not contain the headline and (3) the first headline is not the level-1 headline. It is inconvenient when we define some headlines, e.g., \chapter,\part,\section ..., but not use all of them, because some latex files do not contain \chapter and \part. It should work whatever top level the file is using. This point could be related to #2, but my #3 was a further fix for it. This problem is reproducible, see the test repository I specifically made for it @ https://github.com/guicho271828/outline-magic-test . Clone the repo and open the file in that repo, specifically head2-cycleall.txt and head2-cycle.txt, assuming the load-path is already set up for outline-magit. (no need to set it up for outline-magit-test.) Note that this testing is just a hack. |
|
I think I was a bit rude, sorry about that. I haven't reviewed #4 yet, but will probably do so later today. |
|
I have dug a bit deeper and have come to the conclusion that So no review from me. |
|
I agree, and "maybe it's the time to switch" as mentioned earlier. hmm.. |
|
@tarsius I hope things will normalize over the year, and I can take care of these libraries again. @guicho271828 |
|
Enjoy your offline time! |
|
@tj64 no problem, I understand your situation. Thank you for spending the time responding to this. |
see comments in the commit