Re: [BUG]: unexpected behavior related to org-indent-block

2024-01-12 Thread Ihor Radchenko
Ihor Radchenko writes: >> --- >> #+begin_src emacs-lisp >> >> #+end_src >> --- > ... > I cannot reproduce. "---" turned out to be important. This is not a bug. After (insert (org-element-interpret-data copy)) The point ends up at --- line, which is not recognized as a source block. So, (org

Re: [BUG]: unexpected behavior related to org-indent-block

2024-01-11 Thread Ihor Radchenko
gerard.vermeu...@posteo.net writes: >> This means that your Org mode git folder is not on main branch. >> You can try >> git checkout main >> >> or re-clone the Org repository: >> >> git clone https://git.savannah.gnu.org/cgit/emacs/org-mode.git/ >> > > This is the output of "git checkout"

Re: [BUG]: unexpected behavior related to org-indent-block

2024-01-11 Thread gerard . vermeulen
On 11.01.2024 18:28, Ihor Radchenko wrote: gerard.vermeu...@posteo.net writes: You can also try cd /path/to/org/git make repro I get: Debugger entered--Lisp error: (void-function org-element-begin) (org-element-begin copy) This means that your Org mode git folder is not on main branc

Re: [BUG]: unexpected behavior related to org-indent-block

2024-01-11 Thread Ihor Radchenko
gerard.vermeu...@posteo.net writes: >> You can also try >> cd /path/to/org/git >> make repro >> > I get: > > Debugger entered--Lisp error: (void-function org-element-begin) >(org-element-begin copy) This means that your Org mode git folder is not on main branch. You can try git checkout ma

Re: [BUG]: unexpected behavior related to org-indent-block

2024-01-11 Thread gerard . vermeulen
On 11.01.2024 17:01, Ihor Radchenko wrote: gerard.vermeu...@posteo.net writes: Try using released Emacs version. Emacs master builds are a subject of unexpected bugs sometimes. I get exactly the same results on Emacs-29.1 as on Emacs master. For Emacs-29.1 (tar.xy) and Emacs master I hav

Re: [BUG]: unexpected behavior related to org-indent-block

2024-01-11 Thread Ihor Radchenko
gerard.vermeu...@posteo.net writes: >> Try using released Emacs version. Emacs master builds are a subject of >> unexpected bugs sometimes. > > I get exactly the same results on Emacs-29.1 as on Emacs master. > > For Emacs-29.1 (tar.xy) and Emacs master I have done (nothing special): > LIBRARY_PAT

Re: [BUG]: unexpected behavior related to org-indent-block

2024-01-11 Thread gerard . vermeulen
On 11.01.2024 16:04, Ihor Radchenko wrote: gerard.vermeu...@posteo.net writes: I cannot reproduce. ... This is strange: I pulled the latest main and created a clean org-emacs directory where I put a minimal init.el reading: ... I have no idea what I can do now. My Emacs is also recent main

Re: [BUG]: unexpected behavior related to org-indent-block

2024-01-11 Thread Ihor Radchenko
gerard.vermeu...@posteo.net writes: >> I cannot reproduce. > ... > This is strange: > I pulled the latest main and created a clean org-emacs directory > where I put a minimal init.el reading: >... > I have no idea what I can do now. > My Emacs is also recent main and built by me with minimal confi

Re: [BUG]: unexpected behavior related to org-indent-block

2024-01-11 Thread gerard . vermeulen
On 11.01.2024 13:37, Ihor Radchenko wrote: gerard.vermeu...@posteo.net writes: Below, I show 2 commands to be run with point on a source block. I expect that those commands modify an Org file identically, but they do not. It fails when `org-indent-block' is called in a loop after each `(ins

Re: [BUG]: unexpected behavior related to org-indent-block

2024-01-11 Thread Ihor Radchenko
gerard.vermeu...@posteo.net writes: > Below, I show 2 commands to be run with point on a source block. > I expect that those commands modify an Org file identically, but > they do not. It fails when `org-indent-block' is called in a > loop after each `(insert (org-element-interpret-data copy))' a

[BUG]: unexpected behavior related to org-indent-block

2024-01-11 Thread gerard . vermeulen
Below, I show 2 commands to be run with point on a source block. I expect that those commands modify an Org file identically, but they do not. It fails when `org-indent-block' is called in a loop after each `(insert (org-element-interpret-data copy))' and it works when `org-indent-block' is calle