[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/annotate 40bd336a96 037/372: fix cl-related errors
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/annotate 40bd336a96 037/372: fix cl-related errors |
Date: |
Fri, 4 Feb 2022 16:58:17 -0500 (EST) |
branch: elpa/annotate
commit 40bd336a96150dec497aa10d1468cd073b37d5e5
Author: Bastian Bechtold <basti@bastibe.de>
Commit: Bastian Bechtold <basti@bastibe.de>
fix cl-related errors
---
annotate.el | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/annotate.el b/annotate.el
index 768664585f..4db54b97f5 100644
--- a/annotate.el
+++ b/annotate.el
@@ -45,7 +45,7 @@
;; save annotations as a no-difference diff file.
;;; Code:
-(require 'cl)
+(require 'cl-lib)
;;;###autoload
(defgroup annotate nil
@@ -122,7 +122,7 @@
(cond ((and (overlayp overlay) (overlay-get overlay 'annotation))
(annotate-change-annotation (point)))
(t
- (destructuring-bind (start end) (annotate-bounds)
+ (cl-destructuring-bind (start end) (annotate-bounds)
(annotate-create-annotation start end))))))
;;;###autoload
@@ -133,7 +133,7 @@
(let ((overlays
(overlays-in (point) (buffer-size))))
;; skip overlays not created by annotate.el
- (setq overlays (remove-if
+ (setq overlays (cl-remove-if
(lambda (ov)
(eq nil (overlay-get ov 'annotation)))
overlays))
@@ -156,7 +156,7 @@
(let ((overlays
(overlays-in 0 (point))))
;; skip overlays not created by annotate.el
- (setq overlays (remove-if
+ (setq overlays (cl-remove-if
(lambda (ov)
(eq nil (overlay-get ov 'annotation)))
overlays))
@@ -253,8 +253,8 @@ annotation, and can be conveniently viewed in diff-mode."
(cond
;; annotation has only one line
((= (length annotation-line-list) 1)
- (insert (first annotation-line-list) "\n")
- (unless (string= (first annotation-line-list) "+")
+ (insert (car annotation-line-list) "\n")
+ (unless (string= (car annotation-line-list) "+")
(insert "#"
(make-string (- start bol) ? )
(make-string (- end start) ?~)
@@ -262,7 +262,7 @@ annotation, and can be conveniently viewed in diff-mode."
(insert "#" (make-string (- start bol) ? ) text "\n"))
;; annotation has more than one line
(t
- (let ((line (first annotation-line-list))) ; first line
+ (let ((line (car annotation-line-list))) ; first line
;; first diff line
(insert line "\n")
;; underline highlight (from start to eol)
@@ -313,7 +313,7 @@ annotation, and can be conveniently viewed in diff-mode."
(defun annotate-prefix-lines (prefix text)
"Prepend PREFIX to each line in TEXT."
(let ((lines (split-string text "\n")))
- (apply 'concat (map 'list (lambda (l) (concat prefix l "\n")) lines))))
+ (apply 'concat (mapcar (lambda (l) (concat prefix l "\n")) lines))))
(defun annotate-diff-line-range (start end)
"Calculate diff-like line range for annotation."
@@ -330,7 +330,7 @@ annotation, and can be conveniently viewed in diff-mode."
(annotate-load-annotation-data))))
(modified-p (buffer-modified-p)))
;; remove empty annotations created by earlier bug:
- (setq annotations (remove-if (lambda (ann) (eq (nth 2 ann) nil))
+ (setq annotations (cl-remove-if (lambda (ann) (eq (nth 2 ann) nil))
annotations))
(when (and (eq nil annotations) annotate-use-messages)
(message "No annotations found."))
@@ -363,7 +363,7 @@ annotation, and can be conveniently viewed in diff-mode."
(overlays-in 0 (buffer-size)))
(modified-p (buffer-modified-p)))
;; only remove annotations, not all overlays
- (setq overlays (remove-if
+ (setq overlays (cl-remove-if
(lambda (ov)
(eq nil (overlay-get ov 'annotation)))
overlays))
@@ -438,7 +438,7 @@ annotation, and can be conveniently viewed in diff-mode."
"Return a list of all annotations in the current buffer."
(let ((overlays (overlays-in 0 (buffer-size))))
(setq overlays
- (remove-if
+ (cl-remove-if
(lambda (ov)
(eq nil (overlay-get ov 'annotation)))
overlays))
- [nongnu] elpa/annotate 58525eb73a 307/372: - changed function calls from 'cl' package to the 'cl-lib' equivalents., (continued)
- [nongnu] elpa/annotate 58525eb73a 307/372: - changed function calls from 'cl' package to the 'cl-lib' equivalents., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 4abf492f05 297/372: - updated NEWS and CHANGELOG;, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate faa9245414 329/372: - increased version number and updated documentations., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 7eee85f7f9 070/372: - made the character under the annotated text (when exporting or integrating), ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 6d74f53074 015/372: improve documentation and add license, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 6b4b2b69d7 023/372: can now annotate long lines, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 39fc4bbda2 090/372: - added an annotation summary window, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate d84bfd56b8 103/372: Merge pull request #44 from cage2/master, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 253b5e2d7b 118/372: - try to elaborate a bit more the function goal., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate f806eff4cc 142/372: Merge pull request #49 from cage2/annotate-info-files, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 40bd336a96 037/372: fix cl-related errors,
ELPA Syncer <=
- [nongnu] elpa/annotate e199c77598 027/372: export format is now a valid unified diff, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate e8c9b33b4d 051/372: fix unicode annotations, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 676d9863f9 048/372: fix undo bug, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 4dc3e70920 059/372: fixes bug for too-wide characters, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate cb8de5081a 078/372: Merge pull request #42 from cage2/master, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 80e6b31c78 084/372: - fixed docstring., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 519aab08ba 100/372: - added a better handling of characters with width > 1., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate d07e406251 097/372: - changed prefix for annotation in summary window., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate cf76d79c00 074/372: - fixed docstring., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 3341c23e5f 038/372: don't annotate or save empty regions, ELPA Syncer, 2022/02/04