From b8ab65a70a9d4900b54cce807981d8fdcb6b38dc Mon Sep 17 00:00:00 2001 From: sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> Date: Sat, 4 Sep 2021 14:55:28 +0200 Subject: 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. --- editors/emacs/bqn-input.el | 5 +++-- 1 file 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 -- cgit v1.2.3