From 6169c8a54fb09cbb25e4a91d5f45f8c5a89bba67 Mon Sep 17 00:00:00 2001 From: Ori Date: Tue, 6 Jul 2021 17:41:43 -0400 Subject: [PATCH] Use custom `inserter` if applicable Previously the inserter was only called in the default case, which is not reached if the point is in a string or comment. The `inserter` can be string- or comment-sensitive as needed, and this change allows it to be called in all insert cases. --- lispy.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lispy.el b/lispy.el index 5a209047..90da0d52 100644 --- a/lispy.el +++ b/lispy.el @@ -8725,7 +8725,10 @@ PLIST currently accepts: ((lispy--in-string-or-comment-p) (setq this-command 'self-insert-command) - (call-interactively 'self-insert-command)) + (call-interactively + (quote + ,(or inserter + 'self-insert-command)))) ((or (lispy-left-p) (lispy-right-p)