@@ -601,7 +601,7 @@ See also the customizable variables: `annotate-echo-annotation-timer' and
601
601
`annotate-print-annotation-under-cursor' ."
602
602
(with-current-buffer (current-buffer )
603
603
(when annotate-mode
604
- (when-let ((annotation (annotate-annotation-at (point ))))
604
+ (when-let* ((annotation (annotate-annotation-at (point ))))
605
605
(message " %s%s "
606
606
annotate-print-annotation-under-cursor-prefix
607
607
(annotate-annotation-get-annotation-text annotation))))))
@@ -1008,15 +1008,15 @@ and
1008
1008
(defun annotate-change-annotation-text-position ()
1009
1009
" Change the policy positioning for the annotation under point."
1010
1010
(interactive )
1011
- (when-let ((annotation (annotate-annotation-at (point ))))
1011
+ (when-let* ((annotation (annotate-annotation-at (point ))))
1012
1012
(let ((current-position (annotate-annotation-get-position annotation)))
1013
1013
(if (null current-position)
1014
1014
(annotate-annotation-set-position annotation
1015
1015
(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))))
1020
1020
(annotate-annotation-set-position annotation
1021
1021
(elt annotate-allowed-positioning-policy
1022
1022
next-position-index)))))
@@ -1038,7 +1038,7 @@ and
1038
1038
(length annotate-annotation-text-faces))))
1039
1039
new-color-index)
1040
1040
0 ))))
1041
- (when-let ((annotation (annotate-annotation-at (point ))))
1041
+ (when-let* ((annotation (annotate-annotation-at (point ))))
1042
1042
(let ((new-color-index (new-color-index annotation)))
1043
1043
(annotate-annotation-set-annotation-face annotation
1044
1044
(elt annotate-annotation-text-faces
@@ -2303,8 +2303,8 @@ used."
2303
2303
annotate-highlight-faces))
2304
2304
(create-annotation (start end annotation-text)
2305
2305
(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))))
2308
2308
(setf annotate-colors-index-counter
2309
2309
new-face-index))
2310
2310
(cl-incf annotate-colors-index-counter))
@@ -2581,7 +2581,7 @@ This function is not part of the public API."
2581
2581
position where to look for annotation (default the cursor
2582
2582
point)."
2583
2583
(interactive )
2584
- (when-let ((annotation (annotate-annotation-at point)))
2584
+ (when-let* ((annotation (annotate-annotation-at point)))
2585
2585
(let* ((delete-confirmed-p (annotate--confirm-annotation-delete)))
2586
2586
(when delete-confirmed-p
2587
2587
(annotate--delete-annotation-chain annotation)
0 commit comments