[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org-remark 0912cbb0af 04/37: fix: incorrect beg end of
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org-remark 0912cbb0af 04/37: fix: incorrect beg end of a highlight |
Date: |
Sat, 14 Jan 2023 10:58:00 -0500 (EST) |
branch: externals/org-remark
commit 0912cbb0af8944fb28c8b557d0ea2089f54b2aac
Author: Noboru Ota <me@nobiot.com>
Commit: Noboru Ota <me@nobiot.com>
fix: incorrect beg end of a highlight
When a range of text is selected, the beg and end gets swapped if the
user selects from the end of the range and the pointer is on the beg.
The highlight gets incorrectly recorded in marginal notes file (beg >
end).
---
org-remark.el | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/org-remark.el b/org-remark.el
index bf4eafed35..89c894846e 100644
--- a/org-remark.el
+++ b/org-remark.el
@@ -1336,7 +1336,12 @@ function extends the behavior and looks for the word at
point"
;; Check beg end is required as the cursor may be on an empty point with no
;; word under it.
(if (and beg end)
- (list beg end)
+ (progn
+ (when (> beg end)
+ (let ((large beg))
+ (setq beg end
+ end large)))
+ (list beg end))
(user-error "No region selected and the cursor is not on a word"))))
- [elpa] externals/org-remark updated (af99b97204 -> f603ad6769), ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark 837b25d3d7 01/37: refactor: -highlight-* functions, ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark 0912cbb0af 04/37: fix: incorrect beg end of a highlight,
ELPA Syncer <=
- [elpa] externals/org-remark ac09890168 02/37: refactor -notes-* functions, ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark 754f7c1915 11/37: fix: deleted highlight overlay blocking saving multiple highlights, ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark 75d8fd3c9d 19/37: refactor(mark): save notes buf only when create/change, ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark ed5f4314e8 05/37: refactor(sync): remove org-remark-notes-setup-done, ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark eb7c4ebf59 10/37: docs: doc string, ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark e4ba2bbd41 18/37: chore: copyright years to 2023, ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark 7367b7d056 20/37: fix: Text cut off in notes if the highlight spans across two lines #56, ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark af1d4261f3 24/37: docs: update README, ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark 05e18aa08c 30/37: docs: README + user manual, ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark 3d4ff2e030 03/37: doc: update docstring, ELPA Syncer, 2023/01/14