branch: elpa/gnosis commit 080314d3e8ee79117b0598df26c6aad5e84271fa Author: Thanos Apollo <pub...@thanosapollo.org> Commit: Thanos Apollo <pub...@thanosapollo.org>
Remove display-y-or-n-answer. + Deprecated function. --- gnosis.el | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/gnosis.el b/gnosis.el index f1014b4461..ace80e84ad 100644 --- a/gnosis.el +++ b/gnosis.el @@ -493,19 +493,6 @@ When SUCCESS nil, display USER-INPUT as well" (propertize user-input 'face 'gnosis-face-false)) (gnosis-center-current-line))) -(cl-defun gnosis-display-y-or-n-answer (&key answer success) - "Display y-or-n answer for note ID. - -ANSWER is the correct answer, either y or n. Answer is either 121 or -110, which are the char values for y & n respectively -SUCCESS is t when user-input is correct, else nil" - (let ((answer (if (equal answer 121) "y" "n"))) - (insert - "\n\n" - (propertize "Answer:" 'face 'gnosis-face-directions) - " " - (propertize answer 'face (if success 'gnosis-face-correct 'gnosis-face-false))) - (gnosis-center-current-line))) (defun gnosis-display-hint (hint)