[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#45178: buffer-hash docstring should explain difference to secure-has
From: |
Basil L. Contovounesios |
Subject: |
bug#45178: buffer-hash docstring should explain difference to secure-hash |
Date: |
Sun, 20 Dec 2020 11:47:23 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
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.
[I get that this is just an example, but in this case wouldn't you use
buffer-modified-tick or buffer-chars-modified-tick instead?]
--
Basil