I can not answer the part regarding replace-match
, but I found the underlying issue.
In my config I use use-package
and straight.el
to configure my packages. I had something along the following lines written there:
(use-package org
:straight t
:config
[...]
)
Since org
is built in, there's no need to pull it from straight. I could fix my problem by changing the configuration like that:
(use-package org
:straight (:type built-in)
:config
[...]
)
Pulling org
from straight fetches the latest version 9.5.4, whereas the built-in version is 9.5.2. Apparently some changes in 9.5.3 or 9.5.4 trigger the endless loop.
Digging a little deeper, this is a sample configuration that reproduces the problem:
;; ------ bootstrapping straight -------------
(defvar bootstrap-version)
(let ((bootstrap-file
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
(bootstrap-version 5))
(unless (file-exists-p bootstrap-file)
(with-current-buffer
(url-retrieve-synchronously
"https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"
'silent 'inhibit-cookies)
(goto-char (point-max))
(eval-print-last-sexp)))
(load bootstrap-file nil 'nomessage))
(straight-use-package 'use-package)
;; -------- bootstrapping ends here ------------
(use-package evil
:straight t
:config (evil-mode))
(use-package evil-leader
:straight t
:config (global-evil-leader-mode))
(use-package org
:straight t)
I could narrow it down to evil
, evil-leader
and org
v9.5.4. If you start emacs with this configuration, create or open an org file and try to add a new row in a table, your emacs should freeze.
debug-on-quit
and then reproduce the problem. When you are sure it is hung, pressC-g
. You should get a backtrace with the function that is causing the problem at the top. You might want to do it a few times, to make sure that it is the same function every time.> This provides a native GUI support for OS X 10.10 - macOS 12. Note that Emacs 23 and later already contain the official GUI support via the NS (Cocoa) port. So if it is good enough for you, then you don't need to try this.
- it is Carbon, expressed in other words. Try instead a Cocoa version, e.g this: github.com/d12frosted/homebrew-emacs-plus.