Re: nondeterministic org-test-with-temp-text?

2020-06-04 Thread Nicolas Goaziou
Hello, Kevin Liu writes: > Yes, I should have mentioned that you need to start in overview view. > The idea is to selectively reveal only two subtrees, leaving the > middle A2 hidden. OK. I think I fixed it. Thank you. Regards, -- Nicolas Goaziou

Re: nondeterministic org-test-with-temp-text?

2020-06-03 Thread Kevin Liu
On 3 June 2020 15:26, Nicolas Goaziou wrote: > You only need the last `org-id-goto' call right? Is the call to this > function meaningful, or can point be left at the beginning of "A1" > headline instead? Yes, I should have mentioned that you need to start in overview view. The idea is to

Re: nondeterministic org-test-with-temp-text?

2020-06-03 Thread Nicolas Goaziou
Hello, Kevin Liu writes: > Try these commands with the following org file; it appears to fail to land on > a heading: > > (org-id-goto "105dfe8b-8507-400c-862f-a25882448051") > (org-id-goto "4a3206fc-b2f1-47d6-9876-ea30c24ecbeb") You only need the last `org-id-goto' call right? Is the call to

Re: nondeterministic org-test-with-temp-text?

2020-06-03 Thread Kevin Liu
On 31 May 2020 04:09, Nicolas Goaziou wrote: > I just fixed it, IIUC. Thank you. It works indeed. However, I believe I have found another bug :) Try these commands with the following org file; it appears to fail to land on a heading: (org-id-goto "105dfe8b-8507-400c-862f-a25882448051")

Re: nondeterministic org-test-with-temp-text?

2020-06-03 Thread Kevin Liu
On 3 June 2020 09:27, Kevin Liu wrote: > (org-next-previous-heading) Typo; this should be (org-previous-visible-heading)

Re: nondeterministic org-test-with-temp-text?

2020-05-31 Thread Nicolas Goaziou
Hello, Kevin Liu writes: > Relatedly, would you be willing to take a look at the bug at hand with > (org-next-visible-headline)? I just fixed it, IIUC. Thank you. Regards, -- Nicolas Goaziou

Re: nondeterministic org-test-with-temp-text?

2020-05-30 Thread Kevin Liu
On 30 May 2020 09:09, Nicolas Goaziou wrote: > You cannot call `org-cycle' consecutively without care, because it > checks `last-command' and `this-command'. You need to fake their values > before calling `org-cycle' again. Good to know, thanks. Relatedly, would you be willing to take a look

Re: nondeterministic org-test-with-temp-text?

2020-05-30 Thread Nicolas Goaziou
Hello, Kevin Liu writes: > I’m trying to add a test (which should fail at the moment, representing > an org-mode bug), but it seems like each ‘should’ form is actually > nondeterministic. The first form returns nil on the first eval and t on > subsequent evals, its behavior resetting upon any

nondeterministic org-test-with-temp-text?

2020-05-30 Thread Kevin Liu
I’m trying to add a test (which should fail at the moment, representing an org-mode bug), but it seems like each ‘should’ form is actually nondeterministic. The first form returns nil on the first eval and t on subsequent evals, its behavior resetting upon any command, and the second form does