Skip to content

Commit 17bbdcc

Browse files
committed
Fix compatibility with newer versions of Emacs
1 parent a84dc24 commit 17bbdcc

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

scripts/license-to-rtf.el

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
;;
66
;; This file is not part of GNU Emacs.
77

8-
(require 'cl)
8+
(require 'cl-lib)
9+
(require 'cl-extra)
910
(require 'subr-x) ; string-trim
1011

1112
(defun read-lines (filename)
@@ -34,13 +35,13 @@
3435
(dolist (l lines)
3536
(let ((text (cleanup-string-for-rtf l)))
3637
(cond
37-
((and (plusp (length text))
38+
((and (cl-plusp (length text))
3839
(null pars))
3940
(push text pars))
40-
((and (plusp (length text))
41+
((and (cl-plusp (length text))
4142
(car pars))
42-
(setcar pars (concatenate 'string (car pars) " " text)))
43-
((plusp (length text))
43+
(setcar pars (cl-concatenate 'string (car pars) " " text)))
44+
((cl-plusp (length text))
4445
(setcar pars text))
4546
(t (when (car pars)
4647
(push nil pars))))))

0 commit comments

Comments
 (0)