@@ -75,12 +75,12 @@ Elisp function from within an evalator session that uses a different
75
75
evaluation context. This action does not transform the candidates."
76
76
(interactive )
77
77
(let* ((spec-arg-elisp (evalator-context-get-special-arg evalator-context-elisp))
78
- (spec-arg-curr (evalator-context-get-special-arg (plist-get evalator-state : context )))
78
+ (spec-arg-curr (evalator-context-get-special-arg (evalator-state- context)))
79
79
(expr-str (if (equal spec-arg-elisp spec-arg-curr)
80
80
helm-pattern
81
81
(replace-regexp-in-string spec-arg-curr spec-arg-elisp helm-pattern))))
82
82
(condition-case err
83
- (message
83
+ (message
84
84
(prin1-to-string
85
85
(evalator-context-elisp-transform-candidates (evalator-get-candidates) expr-str nil )))
86
86
(error
@@ -109,15 +109,15 @@ to the entire candidate selection. Second, the current expression is
109
109
evaluated only once to produce a single candidate. This action is
110
110
used for when you need to produce an aggregate result."
111
111
(interactive )
112
- (let* ((f (slot-value (plist-get evalator-state : context ) :transform-candidates ))
112
+ (let* ((f (slot-value (evalator-state- context) :transform-candidates ))
113
113
(expr-str helm-pattern)
114
114
(args (list (evalator-get-candidates) expr-str t )))
115
115
(evalator-action-confirm-make-or-transform (list f args))))
116
116
117
117
(defun evalator-action-insert-special-arg ()
118
118
" Insert the evalator special arg into the expression prompt."
119
119
(interactive )
120
- (insert (evalator-context-get-special-arg (plist-get evalator-state : context ))))
120
+ (insert (evalator-context-get-special-arg (evalator-state- context))))
121
121
122
122
(defun evalator-message (msg )
123
123
" Output MSG and append a newline and an instruction to continue."
@@ -192,8 +192,8 @@ accept's an optional ERR-HANDLER to pass to `evalator-try-context-f'."
192
192
(with-helm-current-buffer
193
193
(if f-and-args
194
194
(apply 'evalator-try-context-f (append f-and-args (list err-handler)))
195
- (let* ((make-f (slot-value (plist-get evalator-state : context ) :make-candidates ))
196
- (transform-f (slot-value (plist-get evalator-state : context ) :transform-candidates ))
195
+ (let* ((make-f (slot-value (evalator-state- context) :make-candidates ))
196
+ (transform-f (slot-value (evalator-state- context) :transform-candidates ))
197
197
(expr-str helm-pattern)
198
198
(mode (plist-get evalator-state :mode ))
199
199
(f-and-args (if (equal 0 (evalator-history-index))
@@ -227,7 +227,7 @@ accept's an optional ERR-HANDLER to pass to `evalator-try-context-f'."
227
227
(interactive )
228
228
(if (equal :explicit (plist-get evalator-state :mode ))
229
229
(insert (funcall
230
- (slot-value (plist-get evalator-state : context ) :make-equiv-expr )
230
+ (slot-value (evalator-state- context) :make-equiv-expr )
231
231
(evalator-history-expression-chain)))
232
232
(message " Error: This command is only allowed when the last evalator session was started with `evalator-explicit' . " )))
233
233
0 commit comments