Skip to content

Commit 459f47e

Browse files
committed
Use more cl- functions
1 parent 4b36f09 commit 459f47e

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

dime.el

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -665,8 +665,9 @@ corresponding values in the CDR of VALUE."
665665
,(mapcar (lambda (slot)
666666
(cl-etypecase slot
667667
(symbol `(,slot (,(reader slot) ,struct-var)))
668-
(cons `(,(first slot) (,(reader (cl-second slot))
669-
,struct-var)))))
668+
(cons `(,(cl-first slot)
669+
(,(reader (cl-second slot))
670+
,struct-var)))))
670671
slots)
671672
. ,body)))))
672673

@@ -1057,8 +1058,8 @@ The rules for selecting the arguments are rather complicated:
10571058
(unless arguments
10581059
(error "Could not find dylan implementation with the name '%S'" name))
10591060
(when (and (= (length arguments) 1)
1060-
(functionp (first arguments)))
1061-
(setf arguments (funcall (first arguments))))
1061+
(functionp (cl-first arguments)))
1062+
(setf arguments (funcall (cl-first arguments))))
10621063
(cl-destructuring-bind ((prog &rest args) &rest keys) arguments
10631064
(cl-list* :name name :program prog :program-args args keys))))
10641065

@@ -1105,10 +1106,10 @@ DIRECTORY change to this directory before starting the process.
11051106
(defun dime-connect (host port &optional coding-system)
11061107
"Connect to a running Swank server. Return the connection."
11071108
(interactive (list (read-from-minibuffer
1108-
"Host: " (first dime-connect-host-history)
1109+
"Host: " (cl-first dime-connect-host-history)
11091110
nil nil '(dime-connect-host-history . 1))
11101111
(string-to-number (read-from-minibuffer
1111-
"Port: " (first dime-connect-port-history)
1112+
"Port: " (cl-first dime-connect-port-history)
11121113
nil nil '(dime-connect-port-history . 1)))))
11131114
(when (and (called-interactively-p 'any) dime-net-processes
11141115
(y-or-n-p "Close old connections first? "))
@@ -2651,12 +2652,12 @@ Each newlines and following indentation is replaced by a single space."
26512652
(insert (format "cd %s\n%d compiler notes:\n\n"
26522653
default-directory (length notes)))
26532654
(dolist (notes grouped-notes)
2654-
(let ((loc (gethash (first notes) canonicalized-locs-table))
2655+
(let ((loc (gethash (cl-first notes) canonicalized-locs-table))
26552656
(start (point)))
26562657
(insert (dime-canonicalized-location-to-string loc) ":")
26572658
(dime-insert-note-group notes)
26582659
(insert "\n")
2659-
(dime-make-note-overlay (first notes) start (1- (point))))))
2660+
(dime-make-note-overlay (cl-first notes) start (1- (point))))))
26602661
(set (make-local-variable 'compilation-skip-threshold) 0)
26612662
(setq next-error-last-buffer (current-buffer)))))
26622663

@@ -3648,7 +3649,7 @@ function name is prompted."
36483649
(message "No xref information found for %s." symbol))
36493650
((and (dime-length= xrefs 1) ; one group
36503651
(dime-length= (cdar xrefs) 1)) ; one ref in group
3651-
(cl-destructuring-bind (_ (_ loc)) (first xrefs)
3652+
(cl-destructuring-bind (_ (_ loc)) (cl-first xrefs)
36523653
(dime-push-definition-stack)
36533654
(dime-pop-to-location loc)))
36543655
(t
@@ -5221,7 +5222,7 @@ If MORE is non-nil, more frames are on the Dylan stack."
52215222
(dime-insert-propertized
52225223
`(,@nil dime-debug-default-action dime-debug-fetch-more-frames
52235224
dime-debug-previous-frame-number
5224-
,(dime-debug-frame.number (first (last frames)))
5225+
,(dime-debug-frame.number (cl-first (last frames)))
52255226
point-entered dime-debug-fetch-more-frames
52265227
start-open t
52275228
face dime-debug-section-face
@@ -6946,7 +6947,7 @@ Only considers buffers that are not already visible."
69466947
descriptions)
69476948
(let ((all-bindings (where-is-internal (if (symbolp func)
69486949
func
6949-
(first func))
6950+
(cl-first func))
69506951
(symbol-value mode-map)))
69516952
(key-bindings '()))
69526953
(dolist (binding all-bindings)
@@ -7150,8 +7151,8 @@ and skips comments."
71507151
((and (consp e) (symbolp (car e)))
71517152
(funcall (let ((head (dime-keywordify (car e))))
71527153
(cl-case head
7153-
(:and #'every)
7154-
(:or #'some)
7154+
(:and #'cl-every)
7155+
(:or #'cl-some)
71557156
(:not
71567157
(let ((feature-expression e))
71577158
(lambda (f l)

0 commit comments

Comments
 (0)