[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/why-this d8db9e63e0 14/59: Fix overlay moving code and a t
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/why-this d8db9e63e0 14/59: Fix overlay moving code and a typo in global-why-this-mode |
Date: |
Sun, 27 Nov 2022 16:02:49 -0500 (EST) |
branch: elpa/why-this
commit d8db9e63e077f55aaffe6c707fa6917c31994aa8
Author: Akib Azmain Turja <akib@disroot.org>
Commit: Akib Azmain Turja <akib@disroot.org>
Fix overlay moving code and a typo in global-why-this-mode
---
why-this.el | 16 +++++++---------
1 file changed, 7 insertions(+), 9 deletions(-)
diff --git a/why-this.el b/why-this.el
index 49c6b1852e..67b7827ced 100644
--- a/why-this.el
+++ b/why-this.el
@@ -269,14 +269,12 @@ When EXACT is non-nil, be as exact as possible."
(< line end)
(eq line (overlay-get (car ov) 'why-this-line)))))
(progn
- (let ((ov-start (overlay-start (car ov))))
- (when (and (eq (line-number-at-pos)
- (line-number-at-pos ov-start))
- (> (point) ov-start))
- (let ((pos (save-excursion
- (goto-char ov-start)
- (line-end-position))))
- (move-overlay (car ov) pos pos))))
+ (let* ((ov-start (overlay-start (car ov)))
+ (pos (save-excursion
+ (goto-char ov-start)
+ (line-end-position))))
+ (unless (eq ov-start pos)
+ (move-overlay (car ov) pos pos)))
ov)
(delete-overlay (car ov))
nil))
@@ -465,7 +463,7 @@ Actually the supported backend is returned."
;;;###autoload
(define-globalized-minor-mode global-why-this-mode why-this-mode
- #'why-this-mode)
+ why-this-mode)
(define-derived-mode why-this-annotate-mode
special-mode "Why-This-Annotate"
- [nongnu] elpa/why-this dc5fc19b75 30/59: Allow changing time format, (continued)
- [nongnu] elpa/why-this dc5fc19b75 30/59: Allow changing time format, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this b8e612d4cb 20/59: Show tooltip on hover, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this aa15ec4fcd 29/59: Add support for minimum column of message, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this 3e3f852835 38/59: Fix README, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this 357cfa7e1e 34/59: Ensure that temporary file created by Git backend is deleted, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this f3d1e47b80 37/59: Fix indentation, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this 1c8a4fbfd5 31/59: Update screenshots, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this 37f3842f5e 32/59: Improve why-this-relative-time, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this bc063e0b9a 16/59: Change heat map colors for matching with light theme, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this 6631186733 18/59: Remove screenshot captions, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this d8db9e63e0 14/59: Fix overlay moving code and a typo in global-why-this-mode,
ELPA Syncer <=
- [nongnu] elpa/why-this 9f8c0d4e09 11/59: Fix annonating last part when heat map disabled, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this c914584833 59/59: Use cond instead of nested if in why-this--get-face, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this fa904a7fae 50/59: Make lines no longer than 75 characters, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this a8d01707ce 58/59: Add .dir-locals.el, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this 17f7963cfc 46/59: Use faces instead of variables for colors, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this b3a7f874b8 53/59: Don't error on binary files, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this bca895def5 55/59: Add .elpaignore, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this c7f771736c 44/59: Remove obsolete use of define-minor-mode, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this 2c8c35ca10 57/59: Bump version to 2.0.3, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this 258f010001 54/59: Bump version to 2.0.2, ELPA Syncer, 2022/11/27