From 251d8620d02f8dffe9af5cb933a51c249651c587 Mon Sep 17 00:00:00 2001 From: Gerard Vermeulen Date: Mon, 9 Jan 2023 12:34:45 +0100 Subject: [PATCH] Try fix a problem with Emacs-28.2 on Gentoo --- README.org | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.org b/README.org index e8c8d16..ac89aa8 100644 --- a/README.org +++ b/README.org @@ -403,7 +403,8 @@ the contents of packages and allows to update packages to the latest version. #+caption: Customize Emacs Tree-sitter. #+name: lst:customize-emacs-tree-sitter #+begin_src emacs-lisp -(when (require 'treesit nil t) +(when (fboundp 'treesit-install-language-grammar) + (require 'treesit nil 'noerror) ;; https://lists.gnu.org/archive/html/emacs-devel/2022-11/msg01372.html (let ((tselp (expand-file-name "~/VCS/tree-sitter-module/dist/"))) (when (file-exists-p tselp)