branch: elpa/annotate commit a45584c53fe95d60e9a7d8194fc3450f415c183a Author: cage <cage@invalid> Commit: cage <cage@invalid>
- removed customizable function 'annotate-y-or-n-prompt-function'. --- README.org | 14 ++++---------- annotate.el | 7 +------ 2 files changed, 5 insertions(+), 16 deletions(-) diff --git a/README.org b/README.org index 3637c6ed9f..1703fac7c1 100644 --- a/README.org +++ b/README.org @@ -77,10 +77,8 @@ can take advantage of its packages generated files management. annotation deletes them. If ~annotate-annotation-confirm-deletion~ is non nil (the default - is *nil*) a confirmation action is asked using the function bound - to the customizable variable ~annotate-y-or-n-prompt-function~ - (default: ~yes-or-no-p~) to the user before actually remove the - annotation. + is *nil*) a confirmation action is asked, using ~y-or-n-p~, to the + user before actually remove the annotation. If point is the newline character and the customizable variable ~annotate-endline-annotate-whole-line~ is not nil (default is non @@ -94,7 +92,6 @@ can take advantage of its packages generated files management. **** related customizable variable - ~annotate-annotation-column~; - - ~annotate-y-or-n-prompt-function~; - ~annotate-annotation-confirm-deletion~; - ~annotate-annotation-max-size-not-place-new-line~; - ~annotate-annotation-position-policy~; @@ -108,13 +105,10 @@ can take advantage of its packages generated files management. Delete an annotation under point, if such annotation exists. If ~annotate-annotation-confirm-deletion~ is non nil (the default - is *nil*) a confirmation action is asked using the function bound - to the customizable variable ~annotate-y-or-n-prompt-function~ - (default: ~yes-or-no-p~) to the user before actually remove the - annotation. + is *nil*) a confirmation action is asked, using ~y-or-n-p~, to the + user before actually remove the annotation. **** related customizable variable - - ~annotate-y-or-n-prompt-function~; - ~annotate-annotation-confirm-deletion~. *** ~C-c ]~ (function annotate-goto-next-annotation) diff --git a/annotate.el b/annotate.el index a7f8a82a49..cac2992623 100644 --- a/annotate.el +++ b/annotate.el @@ -219,11 +219,6 @@ by the newline character only) instead." :type 'boolean :group 'annotate) -(defcustom annotate-y-or-n-prompt-function 'yes-or-no-p - "Function to be called when asking user for a yes/no question." - :type 'function - :group 'annotate) - (defconst annotate-prop-chain-position 'position) @@ -2103,7 +2098,7 @@ This function is not part of the public API." "Prompt user for delete confirmation. This function is not part of the public API." (or (not annotate-annotation-confirm-deletion) - (funcall annotate-y-or-n-prompt-function annotate-confirm-deleting-annotation-prompt))) + (y-or-n-p annotate-confirm-deleting-annotation-prompt))) (cl-defun annotate-delete-annotation (&optional (point (point))) "Command to delete an annotation, `point' is the buffer