all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Basil L. Contovounesios" <contovob@tcd.ie>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: Stefan Kangas <stefan@marxist.se>, 45178@debbugs.gnu.org
Subject: bug#45178: buffer-hash docstring should explain difference to secure-hash
Date: Sun, 20 Dec 2020 11:47:23 +0000	[thread overview]
Message-ID: <87lfds7l84.fsf@tcd.ie> (raw)
In-Reply-To: <87im988ezx.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 11 Dec 2020 17:49:22 +0100")

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





  parent reply	other threads:[~2020-12-20 11:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-11 14:41 bug#45178: buffer-hash docstring should explain difference to secure-hash Stefan Kangas
2020-12-11 16:00 ` Lars Ingebrigtsen
2020-12-11 16:40   ` Stefan Kangas
2020-12-11 16:49     ` Lars Ingebrigtsen
2020-12-11 19:19       ` Stefan Kangas
2020-12-20 11:47       ` Basil L. Contovounesios [this message]
2020-12-20 16:31         ` Stefan Kangas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lfds7l84.fsf@tcd.ie \
    --to=contovob@tcd.ie \
    --cc=45178@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    --cc=stefan@marxist.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.