Skip to content

Commit 890eb00

Browse files
committed
fix: snapshot warnings
1 parent 0fc41a0 commit 890eb00

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

annotate.el

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ See also the customizable variables: `annotate-echo-annotation-timer' and
601601
`annotate-print-annotation-under-cursor'."
602602
(with-current-buffer (current-buffer)
603603
(when annotate-mode
604-
(when-let ((annotation (annotate-annotation-at (point))))
604+
(when-let* ((annotation (annotate-annotation-at (point))))
605605
(message "%s%s"
606606
annotate-print-annotation-under-cursor-prefix
607607
(annotate-annotation-get-annotation-text annotation))))))
@@ -1008,15 +1008,15 @@ and
10081008
(defun annotate-change-annotation-text-position ()
10091009
"Change the policy positioning for the annotation under point."
10101010
(interactive)
1011-
(when-let ((annotation (annotate-annotation-at (point))))
1011+
(when-let* ((annotation (annotate-annotation-at (point))))
10121012
(let ((current-position (annotate-annotation-get-position annotation)))
10131013
(if (null current-position)
10141014
(annotate-annotation-set-position annotation
10151015
(cl-first annotate-allowed-positioning-policy))
1016-
(when-let ((current-position-index (cl-position current-position
1017-
annotate-allowed-positioning-policy))
1018-
(next-position-index (mod (1+ current-position-index)
1019-
(length annotate-allowed-positioning-policy))))
1016+
(when-let* ((current-position-index (cl-position current-position
1017+
annotate-allowed-positioning-policy))
1018+
(next-position-index (mod (1+ current-position-index)
1019+
(length annotate-allowed-positioning-policy))))
10201020
(annotate-annotation-set-position annotation
10211021
(elt annotate-allowed-positioning-policy
10221022
next-position-index)))))
@@ -1038,7 +1038,7 @@ and
10381038
(length annotate-annotation-text-faces))))
10391039
new-color-index)
10401040
0))))
1041-
(when-let ((annotation (annotate-annotation-at (point))))
1041+
(when-let* ((annotation (annotate-annotation-at (point))))
10421042
(let ((new-color-index (new-color-index annotation)))
10431043
(annotate-annotation-set-annotation-face annotation
10441044
(elt annotate-annotation-text-faces
@@ -2303,8 +2303,8 @@ used."
23032303
annotate-highlight-faces))
23042304
(create-annotation (start end annotation-text)
23052305
(if (null color-index)
2306-
(when-let ((new-face-index (available-face-index (face-annotation-before-point start)
2307-
(face-annotation-after-point end))))
2306+
(when-let* ((new-face-index (available-face-index (face-annotation-before-point start)
2307+
(face-annotation-after-point end))))
23082308
(setf annotate-colors-index-counter
23092309
new-face-index))
23102310
(cl-incf annotate-colors-index-counter))
@@ -2581,7 +2581,7 @@ This function is not part of the public API."
25812581
position where to look for annotation (default the cursor
25822582
point)."
25832583
(interactive)
2584-
(when-let ((annotation (annotate-annotation-at point)))
2584+
(when-let* ((annotation (annotate-annotation-at point)))
25852585
(let* ((delete-confirmed-p (annotate--confirm-annotation-delete)))
25862586
(when delete-confirmed-p
25872587
(annotate--delete-annotation-chain annotation)

0 commit comments

Comments
 (0)