Hi, I have custom block in test.org file:

#+begin_cui
Much of text here (2319 lines, 573 sentences, 15713 words, and 112229 
characters)
...
#+end_cui

I open file this way: `emacs --no-site-file -Q test.org`.

When I type characters anywhere near or inside this block, I experience some 
delay and 
 high CPU load. If there isn’t much text inside the block, there are no 
freezes. The same issue
 occurs when I enable support for this block in Org-mode as follows:
```
 (add-to-list 'org-protecting-blocks "cui")
 (add-to-list 'org-babel-tangle-lang-exts '("cui" . "cui"))
```

`(print system-configuration-options)` :
```n
 "--prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu 
--mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share 
--sysconfdir=/etc --localstatedir=/var/lib --datarootdir=/usr/share 
--disable-silent-rules --docdir=/usr/share/doc/emacs-31.1-r2 
--htmldir=/usr/share/doc/emacs-31.1-r2/html --libdir=/usr/lib64 
--program-suffix=-emacs-31 --includedir=/usr/include/emacs-31 
--infodir=/usr/share/info/emacs-31 --localstatedir=/var 
--enable-locallisppath=/etc/emacs:/usr/share/emacs/site-lisp 
--without-compress-install --without-pop --without-systemduserunitdir 
--with-file-notification=inotify --with-pdumper --enable-acl --enable-xattr 
--without-dbus --without-modules --without-gameuser --with-libgmp --without-gpm 
--without-native-compilation --without-lcms2 --with-xml2 --without-mailutils 
--without-selinux --without-sqlite3 --with-gnutls --without-libsystemd 
--with-threads --with-tree-sitter --without-wide-int --with-sound=no 
--with-zlib --with-pgtk --without-x --without-ns --with-toolkit-scroll-bars 
--without-gconf --without-gsettings --without-harfbuzz --without-libotf 
--without-m17n-flt --without-xwidgets --with-gif --with-jpeg --with-png 
--with-rsvg --without-tiff --with-webp --without-imagemagick 
--with-dumping=pdumper 'CFLAGS=-O2 -march=raptorlake -pipe -fno-fast-math 
-ffp-contract=off' 'CPPFLAGS= -DUSE_VALGRIND=no' 'LDFLAGS=-Wl,-O1 
-Wl,--as-needed -Wl,-z,pack-relative-relocs'" [2 times]
```

Please help find the reason for the high CPU load.
-- 
Best regards,
Python+Java+Bash+Lisp Data Scientist, AI Engineer without a job for 4 years.
PGP pub key: DB8A27FEDA7B4545603396FFC81251BC87659B81

Reply via email to