[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/annotate 584f27cd7a 120/372: - fixed region's limit to bre
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/annotate 584f27cd7a 120/372: - fixed region's limit to break an annotation; |
Date: |
Fri, 4 Feb 2022 16:58:27 -0500 (EST) |
branch: elpa/annotate
commit 584f27cd7ae864c624d28755471af13310cec54b
Author: cage <cage-invalid@invalid>
Commit: cage <cage-invalid@invalid>
- fixed region's limit to break an annotation;
- binding 'print-length' to nil before dumping annotation because you
never can tell; :)
- fixed test to ellipsize text in summary window.
---
annotate.el | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/annotate.el b/annotate.el
index a31134abb7..ebad1636cd 100644
--- a/annotate.el
+++ b/annotate.el
@@ -213,7 +213,7 @@ position (so that it is unchanged after this function is
called)."
(overlay-end annotation)))
(defun annotate-before-change-fn (a b)
- "This function is added to 'before-change-functions' hook and
+ "This function is added to 'before-change-functions' hook and
it is called any time the buffer content is changed (so, for
example, text is added or deleted). In particular, it will
rearrange the overlays bounds when an annotated text is
@@ -228,7 +228,7 @@ modified (for example a newline is inserted)."
(annotate--remove-annotation-property (overlay-start overlay)
(overlay-end overlay))
;; move the overlay if we are breaking it
- (when (< (overlay-start overlay)
+ (when (<= (overlay-start overlay)
a
(overlay-end overlay))
(move-overlay overlay (overlay-start overlay) a)
@@ -1136,7 +1136,8 @@ essentially what you get from:
(defun annotate-dump-annotation-data (data)
"Save `data` into annotation file."
(with-temp-file annotate-file
- (prin1 data (current-buffer))))
+ (let ((print-length nil))
+ (prin1 data (current-buffer)))))
(define-button-type 'annotate-summary-button
'follow-link t
@@ -1160,10 +1161,7 @@ essentially what you get from:
ellipse-length
2)))) ; this is for
quotation marks
(if (> (string-width text)
- (+ (window-body-width)
- prefix-length
- ellipse-length
- 2)) ; this is for quotation marks
+ substring-limit)
(concat (substring text 0 substring-limit)
annotate-ellipse-text-marker)
text)))
- [nongnu] elpa/annotate f01b98de03 096/372: - restored the kill buffer key command., (continued)
- [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, 2022/02/04
- [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 <=
- [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
- [nongnu] elpa/annotate e43d2f9e65 069/372: - fixed left margin of annotation, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate a51b5239b9 062/372: fixes incorrect annotation display for wide characters, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 0d315a806e 105/372: - fixed first argument of 'lwarn';, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 1ed168a79e 131/372: Merge pull request #47 from cage2/master, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate c8aea8392d 135/372: - rewritten filename juggling to make it works with info file in, ELPA Syncer, 2022/02/04
- [nongnu] elpa/annotate 286646bc0c 137/372: - made recongnizable code that refers to info file annotation. (2/3), ELPA Syncer, 2022/02/04