From c2fc51c8a4b8ff882cd8e1f46c9d581fb3d2dd45 Mon Sep 17 00:00:00 2001 From: Andy Stewart Date: Sat, 19 Sep 2020 17:34:09 +0800 Subject: [PATCH] Fix issue #399 check command with symbolp or char "-", othrwise use eaf--make-proxy-function --- eaf.el | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/eaf.el b/eaf.el index f099319..8bab923 100644 --- a/eaf.el +++ b/eaf.el @@ -1129,12 +1129,14 @@ to edit EAF keybindings!" fun fun))) ;; If command is normal symbol, just call it directly. ((symbolp fun) fun) - ;; If command is string and include _ , it's command in python side, build elisp proxy function to call it. - ((string-match "_" fun) - (eaf--make-proxy-function fun)) ;; If command is string and include - , it's elisp function, use `intern' build elisp function from function name. ((string-match "-" fun) - (intern fun)))) + (intern fun)) + ;; If command is not built-in function and not include char '-' + ;; it's command in python side, build elisp proxy function to call it. + (t + (eaf--make-proxy-function fun)) + )) finally return map))) )