Skip to content

Commit

Permalink
Merge pull request #317 from sheepduke/master
Browse files Browse the repository at this point in the history
Fix cl library deprecation warning
  • Loading branch information
AltGr authored Oct 19, 2021
2 parents c7a9da8 + d0b21f3 commit 7c4d434
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tools/ocp-indent.el
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
;; Eval this file to automatically use ocp-indent on caml/tuareg buffers.

;;; Code:

(require 'cl)
(require 'cl-lib)

(defgroup ocp-indent nil
"ocp-indent OCaml indenter binding configuration"
Expand Down Expand Up @@ -76,8 +75,8 @@ are blanks."
(list "--numeric"
"--lines" (format "%d-%d" start-line end-line))
(if ocp-indent-config (list "--config" ocp-indent-config) nil)
(reduce (lambda (acc syn) (list* "--syntax" syn acc))
ocp-indent-syntax :initial-value nil)))
(cl-reduce (lambda (acc syn) (list* "--syntax" syn acc))
ocp-indent-syntax :initial-value nil)))

(defun ocp-indent-file-to-string (file)
(replace-regexp-in-string
Expand Down Expand Up @@ -126,7 +125,7 @@ buffer."
(delete-file errfile))
(save-excursion
(goto-char start)
(mapcar
(mapc
#'(lambda (indent) (indent-line-to indent) (forward-line))
indents))
(when (ocp-in-indentation-p) (back-to-indentation))))
Expand Down

0 comments on commit 7c4d434

Please sign in to comment.