org-invisible-p--text-properties error with ryo-modal and org-mode
zkbpkp opened this issue · comments
Hi, when I call ryo-modal-keys
in my config, I start to get weird errors in org-mode, even if I don't enter ryo-mode
at all. When I try to just enter text I get errors like Symbol's function definition is void: org-invisible-p--text-properties
(or another undefined symbol: org-find-text-property-region
). Here I removed everything from my init.el
except for what's required to reproduce this:
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
(when (file-exists-p custom-file)
(load custom-file))
(setq straight-use-package-by-default t)
(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/radian-software/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)
(use-package ryo-modal
:after (org)
:config (ryo-modal-keys ("x" ignore)))
(use-package org)
If I remove a ryo-modal-keys
call then there are no errors. If I remove (use-package org)
and just open an org file with out of the box org syntax support, then there are no errors as well. Probably not a problem with ryo but something I'm missing, I'd appreciate if someone could help me with this.
Ok the solution was very simple — instead of doing :after (org)
just put (use-package ryo-modal)
after (use-package ryo-modal)
.