[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/annotate d19834f627 031/372: fix compile warnings
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/annotate d19834f627 031/372: fix compile warnings |
Date: |
Fri, 4 Feb 2022 16:58:16 -0500 (EST) |
branch: elpa/annotate
commit d19834f627717b39d93ff47a2def70a331a2ec88
Author: Bastian <basti@bastibe.de>
Commit: Bastian <basti@bastibe.de>
fix compile warnings
---
annotate.el | 17 ++++++++---------
1 file changed, 8 insertions(+), 9 deletions(-)
diff --git a/annotate.el b/annotate.el
index 21cd0a5f6e..a370cecddf 100644
--- a/annotate.el
+++ b/annotate.el
@@ -5,7 +5,7 @@
;; Maintainer: Bastian Bechtold
;; URL: https://github.com/bastibe/annotate.el
;; Created: 2015-06-10
-;; Version: 0.2.0
+;; Version: 0.2.1
;; This file is NOT part of GNU Emacs.
@@ -41,12 +41,11 @@
;; the right margin. Annotations are saved whenever the file is saved.
;;; Code:
-(require 'cl)
;;;###autoload
(defgroup annotate nil
"Annotate files without changing them."
- :version "0.2.0"
+ :version "0.2.1"
:group 'text)
;;;###autoload
@@ -108,10 +107,10 @@
(interactive)
(let ((overlay (car (overlays-at (point)))))
(cond ((and (overlayp overlay) (overlay-get overlay 'annotation))
- (annotate-change-annotation (point)))
- (t
- (destructuring-bind (start end) (annotate-bounds)
- (annotate-create-annotation start end))))))
+ (annotate-change-annotation (point)))
+ (t
+ (let ((bounds (annotate-bounds)))
+ (annotate-create-annotation (car bounds) (cadr bounds)))))))
;;;###autoload
(defun annotate-save-annotations ()
@@ -392,9 +391,9 @@ annotation, and can be conveniently viewed in diff-mode."
(with-temp-buffer
(when (file-exists-p annotate-file)
(insert-file-contents annotate-file))
- (end-of-buffer)
+ (goto-char (point-max))
(cond ((= (point) 1) nil)
- (t (beginning-of-buffer)
+ (t (goto-char (point-min))
(read (current-buffer))))))
(defun annotate-dump-annotation-data (data)
- [nongnu] elpa/annotate 8471cdaa7c 328/372: - updated Changelog., (continued)
- [nongnu] elpa/annotate 8471cdaa7c 328/372: - updated Changelog., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 0e5ccfdb4e 326/372: - replaced 'if' with 'when' when no 'else' branch exists., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 7871adfbd8 320/372: - skipped file left with no annotations when saving., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 42587e0623 327/372: - added checks for 'annotate-use-messages' value when trying to print a message., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate d52ee5dec0 359/372: Merge pull request #113 from cage2/master, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate de990d8adf 348/372: - added command to delete an annotation under point;, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 6fbd8aa985 357/372: - used variable 'annotate-annotation-confirm-deletion' when asking for deleting an annotation., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 47136434a3 343/372: - cleaned up style using checkdoc;, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate f0e4850ef4 356/372: - updated README.org added missing reference to 'annotate-y-or-n-prompt-function'., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate f21146ec7a 014/372: add documentation and autoload cookies, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate d19834f627 031/372: fix compile warnings,
ELPA Syncer <=
- [nongnu] elpa/annotate e04e0ebc0c 045/372: deactivate mark after creating annotation, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 960b01db30 033/372: add variable for disabling minibuffer messages, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 426201f246 076/372: - update contributors according to the original author., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 3a062310d0 080/372: - do not checks for fingerprints if annotations file has old format., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 22ae42cb3d 153/372: - removed wrong 'push'., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate cc2d32dcbb 165/372: - added a reference of project's homepage in a doc string that is used, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate d10b915857 169/372: Merge pull request #56 from cage2/master, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate fccf7a5b51 178/372: Merge branch 'master' into org-mode-fix, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate ca86e4a511 187/372: - removed org-mode from blacklist., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 822ed91a87 206/372: - fixed exporting and integrations of annotations;, ELPA Syncer, 2022/02/04