aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorsternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2021-09-04 14:55:28 +0200
committersternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2021-09-04 14:58:19 +0200
commitb8ab65a70a9d4900b54cce807981d8fdcb6b38dc (patch)
tree40f02099c254419c78609ed3ebadb009e74ba542 /editors
parente59d0ae5f3f6e339a8bcf131d6d68cf8c11e5ad1 (diff)
emacs/bqn-input.el: define bqn--make-key-command-sym at compile time
When byte compiling bqn--make-key-command-sym wouldn't be defined when it's used in make-insert-functions directly below. This can be fixed by forcing the defun to be evaluated at compile-time using eval-and-compile while still making sure it is also available when loaded normally.
Diffstat (limited to 'editors')
-rw-r--r--editors/emacs/bqn-input.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/editors/emacs/bqn-input.el b/editors/emacs/bqn-input.el
index 4e847094..8ec5c4f7 100644
--- a/editors/emacs/bqn-input.el
+++ b/editors/emacs/bqn-input.el
@@ -3,8 +3,9 @@
(require 'cl-lib)
(require 'bqn-symbols)
-(defun bqn--make-key-command-sym (n)
- (intern (concat "insert-sym-bqn-" n)))
+(eval-and-compile
+ (defun bqn--make-key-command-sym (n)
+ (intern (concat "insert-sym-bqn-" n))))
(cl-macrolet ((make-insert-functions ()
`(progn