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

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

bug#45178: buffer-hash docstring should explain difference to secure-has


From: Stefan Kangas
Subject: bug#45178: buffer-hash docstring should explain difference to secure-hash
Date: Fri, 11 Dec 2020 13:19:16 -0600

close 45178 28.1
thanks

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Stefan Kangas <stefan@marxist.se> writes:
>
>> I guess what I don't understand is why I would _ever_ want to use this
>> function.  I mean, why not just compare buffers using `secure-hash'?
>
> `buffer-hash' is fast, so you can use it to compare the buffer contents
> before and after doing things like `indent-sexp' to see whether that
> changed anything.

OK, I've benchmarked this and can confirm it is indeed much faster.  So
I updated its docstring on master by copying the explanation from the
manual.  I'm therefore closing this bug report.





reply via email to

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