branch: elpa/annotate commit f85f8e00a1ed62de1cc43e4cd9690bcdde2cd0e0 Author: cage <cage-invalid@invalid> Commit: cage <cage-invalid@invalid>
- remove file size limit for hash calculation. --- annotate.el | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/annotate.el b/annotate.el index 91834c791e..276dffd95c 100644 --- a/annotate.el +++ b/annotate.el @@ -115,12 +115,6 @@ :type 'string :group 'annotate) -(defcustom annotate-maximum-size-checksum 5000000 - "Calculate checksum of the current buffer only if the size is -less than this size (in characters)" - :type 'integer - :group 'annotate) - (defconst annotate-warn-file-changed-control-string (concat "The file '%s' has changed on disk " "from the last time the annotations were saved.\n" @@ -149,13 +143,8 @@ major mode is a member of this list (space separated entries)." (annotate-shutdown))))) (cl-defun annotate-buffer-checksum (&optional (object (current-buffer))) - "Calculate an hash for the buffer 'object', skip the - calculation if the buffer is bigger than - 'annotate-maximum-size-checksum' (units are character)." - (if (< (buffer-size) - annotate-maximum-size-checksum) - (md5 object) - nil)) + "Calculate an hash for the argument 'object'." + (secure-hash 'md5 object)) (cl-defmacro annotate-with-inhibit-modification-hooks (&rest body) "Wrap 'body' in a block with modification-hooks inhibited."