bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#13949: 24.4.1; `fill-paragraph' should not always put the buffer as


From: Dmitry Gutov
Subject: bug#13949: 24.4.1; `fill-paragraph' should not always put the buffer as modified
Date: Sun, 27 Mar 2016 18:28:22 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0

On 03/27/2016 06:31 AM, Óscar Fuentes wrote:

+  (when (and (not (string= h ""))
+             (string= h (secure-hash 'md5 (current-buffer))))
+    (set-buffer-modified-p nil)))

Hashes have collisions (and md5 is a bit famous for them). So in principle, I don't think using a hash is a good choice in this case.

Either way, you'd have to keep the original string around, to compare against if the hashes match.





reply via email to

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