@@ -204,7 +204,7 @@ If NOPROMPT is non-nil, omit prompt."
204
204
205
205
(defun dime-repl-output-filter (process string )
206
206
(with-current-buffer (process-buffer process)
207
- (when (and (plusp (length string))
207
+ (when (and (cl- plusp (length string))
208
208
(eq (process-status dime-buffer-connection) 'open ))
209
209
(dime-write-string string))))
210
210
@@ -669,7 +669,7 @@ If NEWLINE is true then add a newline at the end of the input."
669
669
(add-text-properties dime-repl-input-start-mark
670
670
(point )
671
671
`(dime-repl-old-input
672
- ,(incf dime-repl-old-input-counter))))
672
+ ,(cl- incf dime-repl-old-input-counter))))
673
673
(let ((overlay (make-overlay dime-repl-input-start-mark end)))
674
674
; ; These properties are on an overlay so that they won't be taken
675
675
; ; by kill/yank.
@@ -686,7 +686,8 @@ If NEWLINE is true then add a newline at the end of the input."
686
686
If replace is non-nil the current input is replaced with the old
687
687
input; otherwise the new input is appended. The old input has the
688
688
text property `dime-repl-old-input' ."
689
- (multiple-value-bind (beg end) (dime-property-bounds 'dime-repl-old-input )
689
+ (cl-multiple-value-bind (beg end)
690
+ (dime-property-bounds 'dime-repl-old-input )
690
691
(let ((old-input (buffer-substring beg end)) ; ;preserve
691
692
; ;properties, they will be removed later
692
693
(offset (- (point ) beg)))
@@ -785,7 +786,7 @@ earlier in the buffer."
785
786
(setf (dime-dylan-project-prompt-string) prompt-string)
786
787
(setf dime-buffer-project name)
787
788
(dime-repl-insert-prompt)
788
- (when (plusp previous-point)
789
+ (when (cl- plusp previous-point)
789
790
(goto-char (+ previous-point dime-repl-input-start-mark)))))))
790
791
791
792
; ;;;; History
@@ -890,13 +891,13 @@ If EXCLUDE-STRING is specified then it's excluded from the search."
890
891
(backward 1 )))
891
892
(history dime-repl-input-history)
892
893
(len (length history)))
893
- (loop for pos = (+ start-pos step) then (+ pos step)
894
- if (< pos 0 ) return -1
895
- if (<= len pos) return len
896
- for history-item = (nth pos history)
897
- if (and (string-match regexp history-item)
898
- (not (equal history-item exclude-string)))
899
- return pos)))
894
+ (cl- loop for pos = (+ start-pos step) then (+ pos step)
895
+ if (< pos 0 ) return -1
896
+ if (<= len pos) return len
897
+ for history-item = (nth pos history)
898
+ if (and (string-match regexp history-item)
899
+ (not (equal history-item exclude-string)))
900
+ return pos)))
900
901
901
902
(defun dime-repl-previous-input ()
902
903
" Cycle backwards through input history.
@@ -939,7 +940,7 @@ See `dime-repl-previous-input'."
939
940
(cond ((dime-repl-history-search-in-progress-p)
940
941
dime-repl-history-pattern)
941
942
(use-current-input
942
- (assert (<= dime-repl-input-start-mark (point )))
943
+ (cl- assert (<= dime-repl-input-start-mark (point )))
943
944
(let ((str (dime-repl-current-input t )))
944
945
(cond ((string-match " ^[ \t\n ]*$" str) nil )
945
946
(t (concat " ^" (regexp-quote str))))))
@@ -1137,8 +1138,8 @@ The handler will use qeuery to ask the use if the error should be ingored."
1137
1138
(call-interactively handler))))))
1138
1139
1139
1140
(defun dime-repl-list-all-shortcuts ()
1140
- (loop for shortcut in dime-repl-shortcut-table
1141
- append (dime-repl-shortcut.names shortcut)))
1141
+ (cl- loop for shortcut in dime-repl-shortcut-table
1142
+ append (dime-repl-shortcut.names shortcut)))
1142
1143
1143
1144
(defun dime-repl-lookup-shortcut (name )
1144
1145
(cl-find-if (lambda (s ) (member name (dime-repl-shortcut.names s)))
@@ -1157,7 +1158,7 @@ of the shortcut \(`:handler'\), and a help text \(`:one-liner'\)."
1157
1158
,(when edylan-name
1158
1159
`(defun , edylan-name ()
1159
1160
(interactive )
1160
- (call-interactively ,(second (assoc :handler options)))))
1161
+ (call-interactively ,(cl- second (assoc :handler options)))))
1161
1162
(let ((new-shortcut (make-dime-repl-shortcut
1162
1163
:symbol ', edylan-name
1163
1164
:names (list ,@names )
@@ -1459,7 +1460,7 @@ expansion will be added to the REPL's history.)"
1459
1460
(dime-write-string output target)
1460
1461
t )
1461
1462
((:read-string thread tag)
1462
- (assert thread)
1463
+ (cl- assert thread)
1463
1464
(dime-repl-read-string thread tag)
1464
1465
t )
1465
1466
((:read-aborted thread tag)
0 commit comments