You might want to look into what changed between org 9.5.5 and 9.6, because 
that is when this strange behavior started (for me anyway). I've been hanging onto 
9.5.5 for as long as I could until I upgraded to emacs 29. Then the above mentioned 
strange behavior resumed. My fix for it was to split up my large org files into 
smaller files, and so far no strange behavior. 



On Fri, Sep 8, 2023 at 12:51 PM Ihor Radchenko <yantar92@posteo.net> wrote:
Carlo Tambuatco <oraclmaster@gmail.com> writes:

> I noticed that an org file I was using for my capture templates was getting
> quite large
> and that my capture templates that were pasting TODO entries in that file
> were starting to exhibit
> strange behavior. Mostly just getting stuck at a mysterious "clipboard
> pasted to level 2 subtree"
> message, then it would just hang there until I hit ctrl g.

That could be a bug, but it is impossible to fix it without knowing more
details.

> Since this file was getting quite big and unwieldy, > 5000 lines, I
> decided ...

I am using 100x (yes, 100 times) larger org file right now. With 500k lines.


> So, I was wondering if there is hardcoded somewhere in org some kind of
> size limit to the
> files it has to deal with, or is this some limitation arising naturally
> from the size of
> the clipboard? I'm not sure how org handles large files when considering
> how to paste
> entries from capture templates.

There is no size limit on Org files. Although certain operations may
become slower when the file size reaches tens of megabytes.

Clipboard should normally not be a problem either.

If you can interrupt with C-g, there might be some infinite loop
somewhere in the code.

--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>