emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/annotate 6fbd8aa985 357/372: - used variable 'annotate-ann


From: ELPA Syncer
Subject: [nongnu] elpa/annotate 6fbd8aa985 357/372: - used variable 'annotate-annotation-confirm-deletion' when asking for deleting an annotation.
Date: Fri, 4 Feb 2022 16:59:22 -0500 (EST)

branch: elpa/annotate
commit 6fbd8aa985981b4d8270d7b0f2bf62977da5dbf0
Author: cage <cage@invalid>
Commit: cage <cage@invalid>

    - used variable 'annotate-annotation-confirm-deletion' when asking for 
deleting an annotation.
---
 annotate.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/annotate.el b/annotate.el
index 7711635cb2..a7f8a82a49 100644
--- a/annotate.el
+++ b/annotate.el
@@ -2102,7 +2102,8 @@ This function is not part of the public API."
 (defun annotate--confirm-annotation-delete ()
   "Prompt user for delete confirmation.
 This function is not part of the public API."
-  (funcall annotate-y-or-n-prompt-function 
annotate-confirm-deleting-annotation-prompt))
+  (or (not annotate-annotation-confirm-deletion)
+      (funcall annotate-y-or-n-prompt-function 
annotate-confirm-deleting-annotation-prompt)))
 
 (cl-defun annotate-delete-annotation (&optional (point (point)))
   "Command  to  delete  an  annotation,  `point'  is  the  buffer



reply via email to

[Prev in Thread] Current Thread [Next in Thread]