[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/treesit-fold e7dd19b2d1 005/417: fix compile bug: add to e
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/treesit-fold e7dd19b2d1 005/417: fix compile bug: add to evil-fold-list only if it exist |
Date: |
Mon, 1 Jul 2024 10:02:04 -0400 (EDT) |
branch: elpa/treesit-fold
commit e7dd19b2d1c37575d8d8152c498709afedc1f265
Author: Junyi Hou <junyi.yi.hou@gmail.com>
Commit: Junyi Hou <junyi.yi.hou@gmail.com>
fix compile bug: add to evil-fold-list only if it exist
---
tree-sitter-fold.el | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/tree-sitter-fold.el b/tree-sitter-fold.el
index 9a18bda770..4f6b88d41f 100644
--- a/tree-sitter-fold.el
+++ b/tree-sitter-fold.el
@@ -74,13 +74,14 @@ the fold in a cons cell. See
`tree-sitter-fold-range-python' for an example."
;; ================
(eval-when-compile
- (add-to-list 'evil-fold-list
- '((tree-sitter-fold-mode)
- :open tree-sitter-fold-open
- :close tree-sitter-fold-close
- :open-rec tree-sitter-fold-open-recursively
- :open-all tree-sitter-fold-open-all
- :close-all tree-sitter-fold-close-all)))
+ (if (bound-and-true-p evil-fold-list)
+ (add-to-list 'evil-fold-list
+ '((tree-sitter-fold-mode)
+ :open tree-sitter-fold-open
+ :close tree-sitter-fold-close
+ :open-rec tree-sitter-fold-open-recursively
+ :open-all tree-sitter-fold-open-all
+ :close-all tree-sitter-fold-close-all))))
;; ============================================
;; using `tree-sitter' to determine fold range.
- [nongnu] branch elpa/treesit-fold created (now f66e2b8be9), ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold ce21a60d23 001/417: init commit, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 2f826374a8 007/417: add installation guide, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold e28c905a45 006/417: improve error message when no foldable node under point, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold d3665fd07a 013/417: update readme, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 26bcac9cfb 008/417: add contribution guide, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 510f3ff119 018/417: update readme, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 3a66cdeb1a 002/417: update readme, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold e7dd19b2d1 005/417: fix compile bug: add to evil-fold-list only if it exist,
ELPA Syncer <=
- [nongnu] elpa/treesit-fold 568085877e 014/417: better notes on how to install additional grammars, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 2ad70aae0d 023/417: Remove unused format function, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 88b0e6eab0 039/417: Update doc, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 557df0a4fe 045/417: Add replacement customization, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 6603e0ddbb 057/417: Split parser, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 7127f4bbcc 061/417: Add comment, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold c6f58d41d5 068/417: Fix, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold 445b209eb0 062/417: Fix compatible, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold f57a136cb8 075/417: Fix externals, ELPA Syncer, 2024/07/01
- [nongnu] elpa/treesit-fold b493772d32 080/417: Fix autoload, ELPA Syncer, 2024/07/01