Skip to content

Commit f03e27c

Browse files
committed
Boundp when show annotations
1 parent 05d1adb commit f03e27c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

paw-focus.el

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,8 @@ the argument."
459459
:add-to-known-words t ;; so that it could be added into default known file
460460
) candidates) )))
461461
(with-current-buffer (current-buffer)
462-
(paw-show-all-annotations candidates))
462+
(when (bound-and-true-p paw-annotation-mode)
463+
(paw-show-all-annotations candidates)))
463464

464465
)))
465466

@@ -491,7 +492,8 @@ the argument."
491492
:add-to-known-words t ;; so that it could be added into default known file
492493
) candidates) ) )))
493494
(with-current-buffer (current-buffer)
494-
(paw-show-all-annotations candidates)))))
495+
(when (bound-and-true-p paw-annotation-mode)
496+
(paw-show-all-annotations candidates))))))
495497

496498
(defun paw-focus-find-unknown-words-sentinel-japanese (proc _event)
497499
"Handles the japanese process termination event."
@@ -572,7 +574,8 @@ the argument."
572574
) candidates)))))
573575
;; (pp candidates)
574576
(with-current-buffer (current-buffer)
575-
(paw-show-all-annotations candidates)))))
577+
(when (bound-and-true-p paw-annotation-mode)
578+
(paw-show-all-annotations candidates))))))
576579

577580

578581
(defun paw-focus-find-wordlist-words-sentinel-japanese (proc _event)
@@ -609,6 +612,7 @@ the argument."
609612
:add-to-known-words t ;; so that it could be added into default known file
610613
) candidates)))))
611614
(with-current-buffer (current-buffer)
612-
(paw-show-all-annotations candidates)))))
615+
(when (bound-and-true-p paw-annotation-mode)
616+
(paw-show-all-annotations candidates))))))
613617

614618
(provide 'paw-focus)

0 commit comments

Comments
 (0)