Skip to content

Commit

Permalink
Fix compatibility with newer versions of Emacs
Browse files Browse the repository at this point in the history
  • Loading branch information
arbv committed Apr 19, 2022
1 parent a84dc24 commit 17bbdcc
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions scripts/license-to-rtf.el
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
;;
;; This file is not part of GNU Emacs.

(require 'cl)
(require 'cl-lib)
(require 'cl-extra)
(require 'subr-x) ; string-trim

(defun read-lines (filename)
Expand Down Expand Up @@ -34,13 +35,13 @@
(dolist (l lines)
(let ((text (cleanup-string-for-rtf l)))
(cond
((and (plusp (length text))
((and (cl-plusp (length text))
(null pars))
(push text pars))
((and (plusp (length text))
((and (cl-plusp (length text))
(car pars))
(setcar pars (concatenate 'string (car pars) " " text)))
((plusp (length text))
(setcar pars (cl-concatenate 'string (car pars) " " text)))
((cl-plusp (length text))
(setcar pars text))
(t (when (car pars)
(push nil pars))))))
Expand Down

0 comments on commit 17bbdcc

Please sign in to comment.