[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org-remark 22eed1f5c2 042/173: fix: om/list-highlights-
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org-remark 22eed1f5c2 042/173: fix: om/list-highlights-positions |
Date: |
Fri, 28 Jan 2022 16:57:57 -0500 (EST) |
branch: externals/org-remark
commit 22eed1f5c26c0798ad585e6663c77ff19cff345e
Author: Noboru Ota <me@nobiot.com>
Commit: Noboru Ota <me@nobiot.com>
fix: om/list-highlights-positions
It was not checking the visibility correctly.
---
org-marginalia.el | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git a/org-marginalia.el b/org-marginalia.el
index 94e192d139..050fb0d16d 100644
--- a/org-marginalia.el
+++ b/org-marginalia.el
@@ -384,9 +384,9 @@ buffer, go back to the first one."
(interactive)
(if (not om/highlights)
(progn (message "No highlights present in this buffer.") nil)
- (if (om/find-next-highlight)
- (progn (goto-char (om/find-next-highlight)) t)
- (message "Nothing done. No more visible highlights exist") nil)))
+ (let ((p (om/find-next-highlight)))
+ (if p (progn (goto-char p) t)
+ (message "Nothing done. No more visible highlights exist") nil))))
(defun om/prev ()
"Look at the current point, and move to the previous highlight, if any.
@@ -394,11 +394,10 @@ If there is none above the point, but there is a
highlight in the
buffer, go back to the last one."
(interactive)
(if (not om/highlights)
- (progn (message "No highlights present in this buffer.")
- nil)
- (if (om/find-prev-highlight)
- (progn (goto-char (om/find-prev-highlight)) t)
- (message "Nothing done. No more visible highlights exist") nil)))
+ (progn (message "No highlights present in this buffer.") nil)
+ (let ((p (om/find-prev-highlight)))
+ (if p (progn (goto-char p) t)
+ (message "Nothing done. No more visible highlights exist") nil))))
(defun om/toggle ()
"Toggle showing/hiding of highlighters in current buffer.
- [elpa] externals/org-remark 46d3722ea1 017/173: feat: Add om/next and /prev, (continued)
- [elpa] externals/org-remark 46d3722ea1 017/173: feat: Add om/next and /prev, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 3a5076b8ef 019/173: internal: Update program header, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark c8bbe51411 021/173: doc: Fix some documentation errors, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 2687b8eabf 031/173: admin: merging two machines on my end, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 922d78fbd3 032/173: fix: out of bound for invisible regions, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 022f067983 035/173: doc: Change modified date to be manual, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 447edb9d6d 037/173: intrnl: Add file var to make README as marginalia, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 840381a503 040/173: doc: Correct some program comments, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark a2fa4f9955 043/173: fix: om/list-highlights-positions, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 048c0e806e 044/173: intrnl: Update most functions to return t/nil, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 22eed1f5c2 042/173: fix: om/list-highlights-positions,
ELPA Syncer <=
- [elpa] externals/org-remark ce1fd7bb23 048/173: doc: Update for transient navigation (next/prev), ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark e2524f1663 056/173: Remove default keybindings; add examples in readme, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 045b7593f5 059/173: doc: Update README according to the fix and some, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 6f1a13dbf1 062/173: doc: om-remove, C-u option, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark a759dfc437 064/173: chg: from text-prop to overlay, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 1dd28ecd4c 081/173: lint, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 029efeb2a0 084/173: doc: README, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 4e28dd1923 092/173: add: load works with a different pen, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark f9e432b486 103/173: docs: org-remark documentation, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 73e332b1d5 113/173: add: convert-legacy-data + refactor, ELPA Syncer, 2022/01/28