[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/annotate c42db2cdf9 034/372: don't mark buffer as modified
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/annotate c42db2cdf9 034/372: don't mark buffer as modified on load or clear |
Date: |
Fri, 4 Feb 2022 16:58:17 -0500 (EST) |
branch: elpa/annotate
commit c42db2cdf96152f7ab70e05b9c1066e571fe40d5
Author: Bastian Bechtold <basti@bastibe.de>
Commit: Bastian Bechtold <basti@bastibe.de>
don't mark buffer as modified on load or clear
---
annotate.el | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/annotate.el b/annotate.el
index e34ea72487..df761593d5 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.3
+;; Version: 0.2.4
;; This file is NOT part of GNU Emacs.
@@ -46,7 +46,7 @@
;;;###autoload
(defgroup annotate nil
"Annotate files without changing them."
- :version "0.2.3"
+ :version "0.2.4"
:group 'text)
;;;###autoload
@@ -278,7 +278,8 @@ annotation, and can be conveniently viewed in diff-mode."
"Load all annotations from disk."
(interactive)
(let ((annotations (cdr (assoc-string (buffer-file-name)
- (annotate-load-annotation-data)))))
+ (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))
annotations))
@@ -301,6 +302,7 @@ annotation, and can be conveniently viewed in diff-mode."
(1+ (point))
'display
(concat prefix text "\n"))))))
+ (set-buffer-modified-p modified-p)
(if annotate-use-messages
(message "Annotations loaded.")))))
@@ -309,7 +311,8 @@ annotation, and can be conveniently viewed in diff-mode."
"Clear all current annotations."
(interactive)
(let ((overlays
- (overlays-in 0 (buffer-size))))
+ (overlays-in 0 (buffer-size)))
+ (modified-p (buffer-modified-p)))
;; only remove annotations, not all overlays
(setq overlays (remove-if
(lambda (ov)
@@ -320,7 +323,8 @@ annotation, and can be conveniently viewed in diff-mode."
(goto-char (overlay-end ov))
(move-end-of-line nil)
(delete-overlay ov)
- (remove-text-properties (point) (1+ (point)) '(display nil))))))
+ (remove-text-properties (point) (1+ (point)) '(display nil))))
+ (set-buffer-modified-p modified-p)))
(defun annotate-create-annotation (start end)
"Create a new annotation for selected region."
- [nongnu] elpa/annotate 16f7202d7c 091/372: - fixed docstring., (continued)
- [nongnu] elpa/annotate 16f7202d7c 091/372: - fixed docstring., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 7c759ba9eb 082/372: - fixed english language error., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 47dba946e8 075/372: - removed spurious newline character at the end of annotation text;, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 91f1d49368 087/372: - squeezed contiguous spaces in docstring., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate f85f8e00a1 088/372: - remove file size limit for hash calculation., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate bf80059e7a 071/372: - use comment ends string in modes that allow it (e.g. html-mode);, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate f01b98de03 096/372: - restored the kill buffer key command., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 1313777f03 098/372: - added args to local function., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 0bbdbea410 095/372: - improved appereance of summary window, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate edaafc69a9 052/372: no more broken annotations with umlauts, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate c42db2cdf9 034/372: don't mark buffer as modified on load or clear,
ELPA Syncer <=
- [nongnu] elpa/annotate 38eb69da8b 107/372: - added a secondary color for highlight and annotation text, the two, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate af6d1bd39a 055/372: tiny bugfix, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate e77fc74bd2 036/372: change key binding to be more standard, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate b032d2afe0 116/372: - changed function name: 'move-lines' -> 'beginning-of-nth-line'., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate ce8dfa5ae9 110/372: - added docstrings., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 584f27cd7a 120/372: - fixed region's limit to break an annotation;, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate d97139b566 121/372: - changed two function names and reworded 'annotate-create-annotation' docstring, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 8e8d5d125e 130/372: - fixed macro: "annotate-with-inhibit-modification-hooks"., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate fbd21602e8 129/372: - refactored 'annotate-actual-file-name' and used where appropriate., ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 7127180360 145/372: - added 'cl-' prefix to 'remove-if';, ELPA Syncer, 2022/02/04