Re: BUG: org-cycle does not unfold some subtrees

2023-08-09 Thread Ihor Radchenko
Michael Dauer writes: > Maybe it helps to share you other fix there? Feel free to share it. Basically, it should be enough to ask testing using Org dev branch. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at

Re: BUG: org-cycle does not unfold some subtrees

2023-08-09 Thread Michael Dauer
Maybe it helps to share you other fix there? Am Mi., 9. Aug. 2023 um 11:14 Uhr schrieb Michael Dauer < mick.da...@gmail.com>: > I don't know how to get swiper activated in a "clean" manner from there. > In my operational set-up everything is based on straight. > > But anyhow it seems to be a

Re: BUG: org-cycle does not unfold some subtrees

2023-08-09 Thread Michael Dauer
I don't know how to get swiper activated in a "clean" manner from there. In my operational set-up everything is based on straight. But anyhow it seems to be a known issue in the swiper community: https://github.com/abo-abo/swiper/issues/3015 Am Di., 8. Aug. 2023 um 19:09 Uhr schrieb Ihor

Re: BUG: org-cycle does not unfold some subtrees

2023-08-08 Thread Ihor Radchenko
Michael Dauer writes: > The issue is still easy to reproduce: > * h1 > a > * h2 > b > * h3 > b > * h4 > c > <<< > Fold all. On * h1 call swiper-isearch, enter bbb and select the first > match. -> h2 cannot be unfold anymore. > If you repeat it and select the second match

Re: BUG: org-cycle does not unfold some subtrees

2023-08-08 Thread Michael Dauer
The issue is still easy to reproduce: >>> * h1 a * h2 b * h3 b * h4 c <<< Fold all. On * h1 call swiper-isearch, enter bbb and select the first match. -> h2 cannot be unfold anymore. If you repeat it and select the second match then h3 cannot be unfold anymore, but h2 works again.

Re: BUG: org-cycle does not unfold some subtrees

2023-08-04 Thread William Denton
On 4 August 2023, Michael Dauer wrote: I'm on main (Org mode version 9.7-pre (release_9.6.7-594-gf03b83), and it's not fixed. Am I missing something? The fix did fix it for me, and the problem went away. It did seem to introduce a new problem with searching in a buffer with Swiper, where

Re: BUG: org-cycle does not unfold some subtrees

2023-08-04 Thread Ihor Radchenko
Michael Dauer writes: > I'm on main (Org mode version 9.7-pre (release_9.6.7-594-gf03b83), and it's > not fixed. Am I missing something? If I try to follow the recipe described in https://list.orgmode.org/orgmode/CAP7OBx+L11ck3Ni6rv94HGU3otdj6C4rG-rMDzkwR1LTj=b...@mail.gmail.com/ using the

Re: BUG: org-cycle does not unfold some subtrees

2023-08-04 Thread Michael Dauer
I'm on main (Org mode version 9.7-pre (release_9.6.7-594-gf03b83), and it's not fixed. Am I missing something? Am Do., 1. Juni 2023 um 13:33 Uhr schrieb Ihor Radchenko < yanta...@posteo.net>: > Michael Dauer writes: > > > I think I found a way to consistently reproduce the issue: > > ... > >

Re: BUG: org-cycle does not unfold some subtrees

2023-06-01 Thread Ihor Radchenko
Michael Dauer writes: > I think I found a way to consistently reproduce the issue: > ... Thanks! I now came up with another, more reliable, workaround. Since `query-replace', evil, and swiper all arrange the call of `isearch-clean-overlays', I can advice it to make sure that we clean everything

Re: BUG: org-cycle does not unfold some subtrees

2023-05-14 Thread Gregor Zattler
Hi Michael, Ihor, ... * Michael Dauer [2023-05-14; 12:56 +02]: > I think I found a way to consistently reproduce the issue: > * h1 > a > * h2 > b > * h3 > b > * h4 > c > <<< > Collapse all. All is fine at this time. > At pos-min call (query-replace) bbb -> zzz: Already when

Re: BUG: org-cycle does not unfold some subtrees

2023-05-14 Thread Michael Dauer
I think I found a way to consistently reproduce the issue: >>> * h1 a * h2 b * h3 b * h4 c <<< Collapse all. All is fine at this time. At pos-min call (query-replace) bbb -> zzz: Already when asking whether to replace it cannot expand. h2 and h3 are expansion is broken.

Re: BUG: org-cycle does not unfold some subtrees

2023-05-12 Thread Thomas Dye
Apologies. This message sent from my phone. Yes, I use swiper. My folding problems went away when I set org-fold-core-style to ‘overlay. Limited testing. Tom > On May 13, 2023, at 6:14 AM, Ihor Radchenko wrote: > > William Denton writes: > >> No and no, but now that I'm thinking about

Re: BUG: org-cycle does not unfold some subtrees

2023-05-12 Thread Ihor Radchenko
William Denton writes: > No and no, but now that I'm thinking about searching, I remember I use Swiper > (and Ivy and Counsel).¹ C-s runs =swiper=, which is =isearch-forward= "with > an overview," as it > describes itself. > > If we've narrowed it down to searching, could it be connected to

Re: BUG: org-cycle does not unfold some subtrees

2023-05-12 Thread William Denton
On 12 May 2023, Ihor Radchenko wrote: What is the value of `isearch-mode-end-hook' in your Org buffers? (anzu--reset-mode-line org-fold-core--clear-isearch-overlays t) Local in buffer conforguration.org; global value is nil I checked in a few buffers, and it always says it's local in that

Re: BUG: org-cycle does not unfold some subtrees

2023-05-12 Thread Ihor Radchenko
William Denton writes: >> What is the value of `isearch-mode-end-hook' in your Org buffers? > > (anzu--reset-mode-line org-fold-core--clear-isearch-overlays t) > Local in buffer conforguration.org; global value is nil > > I checked in a few buffers, and it always says it's local in that buffer,

Re: BUG: org-cycle does not unfold some subtrees

2023-05-11 Thread William Denton
On 11 May 2023, Ihor Radchenko wrote: William Denton writes: Do you use evil-mode? Definitely not. Curious. This function is supposed to be run upon finishing or aborting isearch. What is the value of `isearch-mode-end-hook' in your Org buffers? (anzu--reset-mode-line

Re: BUG: org-cycle does not unfold some subtrees

2023-05-11 Thread Ihor Radchenko
William Denton writes: >> Do you use evil-mode? > > Definitely not. Curious. This function is supposed to be run upon finishing or aborting isearch. What is the value of `isearch-mode-end-hook' in your Org buffers? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode

Re: BUG: org-cycle does not unfold some subtrees

2023-05-11 Thread William Denton
On 11 May 2023, Ihor Radchenko wrote: William Denton writes: Does it also help if you run M-: (org-fold-core--clear-isearch-overlays)? That worked! I just had the problem. I ran that, and the tree popped open! Do you use evil-mode? Definitely not. Bill -- William Denton

Re: BUG: org-cycle does not unfold some subtrees

2023-05-11 Thread Ihor Radchenko
William Denton writes: >> Does it also help if you run M-: (org-fold-core--clear-isearch-overlays)? > > That worked! I just had the problem. I ran that, and the tree popped open! Do you use evil-mode? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at

Re: BUG: org-cycle does not unfold some subtrees

2023-05-10 Thread William Denton
On 10 May 2023, Ihor Radchenko wrote: "Fraga, Eric" writes: And if it helps further, I have had this problem for some time now. The solution, for me, is to search for some text I know is present in the folded section and it unfolds! But the situation is sporadic and I cannot reproduce it

Re: BUG: org-cycle does not unfold some subtrees

2023-05-10 Thread Fraga, Eric
On Wednesday, 10 May 2023 at 08:19, Ihor Radchenko wrote: > "Fraga, Eric" writes: > >> And if it helps further, I have had this problem for some time now. The >> solution, for me, is to search for some text I know is present in the >> folded section and it unfolds! But the situation is sporadic

Re: BUG: org-cycle does not unfold some subtrees

2023-05-10 Thread Ihor Radchenko
"Fraga, Eric" writes: > And if it helps further, I have had this problem for some time now. The > solution, for me, is to search for some text I know is present in the > folded section and it unfolds! But the situation is sporadic and I > cannot reproduce it at will. Does it also help if you

Re: BUG: org-cycle does not unfold some subtrees

2023-05-10 Thread Fraga, Eric
On Saturday, 6 May 2023 at 07:46, Thomas S. Dye wrote: > If it helps, I get this bug using the Spacemacs Org mode layer and > Emacs 27. And if it helps further, I have had this problem for some time now. The solution, for me, is to search for some text I know is present in the folded section

Re: BUG: org-cycle does not unfold some subtrees

2023-05-09 Thread William Denton
On 8 May 2023, Thomas S. Dye wrote: Would it be useful for me to search for calls to the folding functions from outline.el in the source code of the Org packages that Spacemacs and I load? This problems happens to me regularly, and I don't use Spacemacs. Wherever it is, I don't think it's

Re: BUG: org-cycle does not unfold some subtrees

2023-05-09 Thread Ihor Radchenko
"Thomas S. Dye" writes: >> Which likely means that something is calling folding functions >> from >> outline.el instead of Org-native folding. > > Excellent! > > Would it be useful for me to search for calls to the folding > functions from outline.el in the source code of the Org packages >

Re: BUG: org-cycle does not unfold some subtrees

2023-05-09 Thread Michael Dauer
Just another check on my side for any appearance of "org-fold-": Nothing in my code, only org related packages use it. $ grep -r -l org-fold- . ./org/.git/index ./org/doc/org-manual.org ./org/etc/ORG-NEWS ./org/lisp/ob-core.el ./org/lisp/ob-exp.el ./org/lisp/ob-lilypond.el ./org/lisp/ob-ref.el

Re: BUG: org-cycle does not unfold some subtrees

2023-05-09 Thread Thomas S. Dye
Ihor Radchenko writes: "Thomas S. Dye" writes: You can try M-x debug-on-variable-change org-fold-core-style In case it's helpful, I set debug-on-variable-change as you suggested but was bitten by the bug without triggering the debugger. Which likely means that something is calling

Re: BUG: org-cycle does not unfold some subtrees

2023-05-09 Thread Ihor Radchenko
Michael Dauer writes: > What could be called. It's not org-fold-core-style. I am not really sure. In order to avoid these situations Org advices `outline-flag-region'. But something may apply outline overlays bypassing that function, in theory. > Can I be just a data corruption of the text

Re: BUG: org-cycle does not unfold some subtrees

2023-05-09 Thread Michael Dauer
What could be called. It's not org-fold-core-style. Can I be just a data corruption of the text properties? I've no idea what they are exactly, and what other parts use them. Maybe a conflicting key, or failed optimization, or side effect on the regions they apply to. I just want to give ideas

Re: BUG: org-cycle does not unfold some subtrees

2023-05-09 Thread Ihor Radchenko
"Thomas S. Dye" writes: >> You can try >> M-x debug-on-variable-change org-fold-core-style > > In case it's helpful, I set debug-on-variable-change as you > suggested but was bitten by the bug without triggering the > debugger. Which likely means that something is calling folding functions

Re: BUG: org-cycle does not unfold some subtrees

2023-05-08 Thread Thomas S. Dye
Ihor Radchenko writes: "Thomas S. Dye" writes: For me, the bug bites intermittently. I often run an Emacs instance for more than a week before I'm bitten, so it will likely be a long process to work through the packages loaded on top of what Spacemacs loads to make a reproducer. Others

Re: BUG: org-cycle does not unfold some subtrees

2023-05-06 Thread Thomas S. Dye
Ihor Radchenko writes: "Thomas S. Dye" writes: For me, the bug bites intermittently. I often run an Emacs instance for more than a week before I'm bitten, so it will likely be a long process to work through the packages loaded on top of what Spacemacs loads to make a reproducer.

Re: BUG: org-cycle does not unfold some subtrees

2023-05-06 Thread Ihor Radchenko
"Thomas S. Dye" writes: > For me, the bug bites intermittently. I often run an Emacs > instance for more than a week before I'm bitten, so it will likely > be a long process to work through the packages loaded on top of > what Spacemacs loads to make a reproducer. Others in this thread

Re: BUG: org-cycle does not unfold some subtrees

2023-05-06 Thread Thomas S. Dye
Ihor Radchenko writes: "Thomas S. Dye" writes: But some third-party package might be. May you try disabling various extra packages and see if the problem persists? If it helps, I get this bug using the Spacemacs Org mode layer and Emacs 27. Sorry, but it does not help. Without

Re: BUG: org-cycle does not unfold some subtrees

2023-05-06 Thread Ihor Radchenko
"Thomas S. Dye" writes: >> But some third-party package might be. >> May you try disabling various extra packages and see if the >> problem persists? > > If it helps, I get this bug using the Spacemacs Org mode layer and > Emacs 27. Sorry, but it does not help. Without reproducer, I can only

Re: BUG: org-cycle does not unfold some subtrees

2023-05-06 Thread Thomas S. Dye
Ihor Radchenko writes: Michael Dauer writes: I'm not doing anything with org-fold-core-style directly. The only maybe relevant thing I do after (org-mode) is: (straight-use-package 'org-modern) I do not think that org-modern can be a culprit. But some third-party package might be. May

Re: BUG: org-cycle does not unfold some subtrees

2023-05-06 Thread Christopher M. Miles
I got similar result: #+begin_example Text content at position 33755: There is an overlay here: From 33755 to 36387 evaporatet invisibleorg-fold-outline isearch-open-invisible delete-overlay org-invisibleorg-fold-outline priority 5

Re: BUG: org-cycle does not unfold some subtrees

2023-05-06 Thread Ihor Radchenko
Michael Dauer writes: > I'm not doing anything with org-fold-core-style directly. The only maybe > relevant thing I do after (org-mode) is: > (straight-use-package 'org-modern) I do not think that org-modern can be a culprit. But some third-party package might be. May you try disabling various

Re: BUG: org-cycle does not unfold some subtrees

2023-05-06 Thread Michael Dauer
I'm not doing anything with org-fold-core-style directly. The only maybe relevant thing I do after (org-mode) is: (straight-use-package 'org-modern) (global-org-modern-mode) (setq org-pretty-entities t) (setq org-pretty-entities-include-sub-superscripts nil) (setq org-ellipsis "…") (setq

Re: BUG: org-cycle does not unfold some subtrees

2023-05-06 Thread Ihor Radchenko
Michael Dauer writes: > This sibling branch works: > Text content at position 27007: > > > There are text properties here: > fontifiedt > isearch-open-invisible org-fold-core--isearch-show > isearch-open-invisible-temporary org-fold-core--isearch-show-temporary >

Re: BUG: org-cycle does not unfold some subtrees

2023-05-06 Thread Michael Dauer
This sibling branch works: Text content at position 27007: There are text properties here: fontifiedt isearch-open-invisible org-fold-core--isearch-show isearch-open-invisible-temporary org-fold-core--isearch-show-temporary org-fold--spec-org-fold-outline-1035805047878762682

Re: BUG: org-cycle does not unfold some subtrees

2023-05-06 Thread Michael Dauer
Got another observation: Text content at position 30248: There is an overlay here: From 30248 to 30442 evaporatet invisibleorg-fold-outline isearch-open-invisible delete-overlay org-invisibleorg-fold-outline priority 5 There are text

Re: BUG: org-cycle does not unfold some subtrees

2023-05-06 Thread Christopher M. Miles
"Christopher M. Miles" writes: > [[PGP Signed Part:Undecided]] > > I meet an unfold-able headline now. Then I record a video to show this > unfold-able headline. I executed command "describe-text-properties". > Afterwards, I closed the buffer, then re-open the file to show the > headline can be

Re: BUG: org-cycle does not unfold some subtrees

2023-05-06 Thread Ihor Radchenko
"Christopher M. Miles" writes: > I meet an unfold-able headline now. Then I record a video to show this > unfold-able headline. I executed command "describe-text-properties". Please put the cursor right before the fold ("..."), execute M-x describe-text-properties and share the properties

Re: BUG: org-cycle does not unfold some subtrees

2023-05-05 Thread Christopher M. Miles
I meet an unfold-able headline now. Then I record a video to show this unfold-able headline. I executed command "describe-text-properties". Afterwards, I closed the buffer, then re-open the file to show the headline can be expanded normally, and show the subtree content. Here is the uploaded

Re: BUG: org-cycle does not unfold some subtrees

2023-05-05 Thread Christopher M. Miles
Michael Dauer writes: > Maybe I missed a known bug when doing the research. But all the other reports > describe different and > reproducible behaviour. > > Sometimes (often) I cannot unfold a subtree. It then affects only one or more > subtrees while others in the > same buffer or even the

Re: BUG: org-cycle does not unfold some subtrees

2023-05-05 Thread Ihor Radchenko
Michael Dauer writes: > This is with the cursor on the first asterisk: > Text content at position 299: > > > There are text properties here: > display [Show] > face org-level-1 > fontifiedt Well. This shows nothing. I am more interested in text

Re: BUG: org-cycle does not unfold some subtrees

2023-05-05 Thread Michael Dauer
This is with the cursor on the first asterisk: Text content at position 299: There are text properties here: display [Show] face org-level-1 fontifiedt I could not test more positions because I accidentally cut it, and even an undo fixed it. I

Re: BUG: org-cycle does not unfold some subtrees

2023-05-05 Thread Ihor Radchenko
Michael Dauer writes: > Based on my analyses it's not the cycle functions, but must come from > broken text attributes. Even (org-fold-core-region (point-min) (point-max) > nil) does not unfold the affected subtrees then. Assuming that > (org-fold-core-region) is the only place where the folding

BUG: org-cycle does not unfold some subtrees

2023-05-05 Thread Michael Dauer
Maybe I missed a known bug when doing the research. But all the other reports describe different and reproducible behaviour. Sometimes (often) I cannot unfold a subtree. It then affects only one or more subtrees while others in the same buffer or even the same branch still work. The only fix then