branch: elpa/isl
commit a7b322028b863f29518f5c55bc0336824b9c85dc
Author: Thierry Volpiatto <[email protected]>
Commit: Thierry Volpiatto <[email protected]>
Prevent errors when executing kbd macros
---
isl.el | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/isl.el b/isl.el
index 38358a8573a..9a029abb3b0 100644
--- a/isl.el
+++ b/isl.el
@@ -905,7 +905,14 @@ appended at end."
(defun isl-read-from-minibuffer (prompt &optional initial-input)
"Read input from minibuffer with prompt PROMPT."
- (let (timer)
+ ;; Bind kbd macro vars to at least avoid errors.
+ ;; FIXME: When executing-kbd-macro we should not be prompted in
+ ;; minibuffer but directly finding next match from point with same
+ ;; regexp or input string used when defining macro (i.e. RET should
+ ;; be automatized).
+ (let ((executing-kbd-macro nil)
+ (defining-kbd-macro nil)
+ timer)
(unwind-protect
(minibuffer-with-setup-hook
(lambda ()