From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#45178: buffer-hash docstring should explain difference to secure-hash Date: Fri, 11 Dec 2020 17:49:22 +0100 Message-ID: <87im988ezx.fsf@gnus.org> References: <87mtyk8h8y.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13598"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 45178@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 11 17:51:12 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1knldM-0003G3-Op for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 11 Dec 2020 17:51:08 +0100 Original-Received: from localhost ([::1]:54462 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1knldL-0006U4-Qu for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 11 Dec 2020 11:51:07 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44956) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1knlcL-00062z-2M for bug-gnu-emacs@gnu.org; Fri, 11 Dec 2020 11:50:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59478) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1knlcI-00033J-Dt for bug-gnu-emacs@gnu.org; Fri, 11 Dec 2020 11:50:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1knlcI-00044E-AY for bug-gnu-emacs@gnu.org; Fri, 11 Dec 2020 11:50:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 11 Dec 2020 16:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45178 X-GNU-PR-Package: emacs Original-Received: via spool by 45178-submit@debbugs.gnu.org id=B45178.160770538515601 (code B ref 45178); Fri, 11 Dec 2020 16:50:02 +0000 Original-Received: (at 45178) by debbugs.gnu.org; 11 Dec 2020 16:49:45 +0000 Original-Received: from localhost ([127.0.0.1]:42791 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1knlc0-00043Z-Mk for submit@debbugs.gnu.org; Fri, 11 Dec 2020 11:49:44 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:36130) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1knlbz-00043L-1X for 45178@debbugs.gnu.org; Fri, 11 Dec 2020 11:49:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=6RxeJyOe2XUVvOgXL/PkyJu9gp9RQnLWX1yXDE8gUlM=; b=ZvN1tEsalVpPA/daUlIZ77thOi qYDvLrOzgTy+ICUdwvtUmzodcqsuCe/R+PSSFJvlO2kgsf0t7tyqWgPhM1klkIXKLumrCDrXFKuVn kwaHyzILwFDX7vsavD/ijpuVRaB25k4kyDxSZlWA0lZBCi3cciH7ecyKa/WWZpidN3IU=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1knlbf-0004vW-Ne; Fri, 11 Dec 2020 17:49:36 +0100 X-Now-Playing: A. G. Cook's _7G_: "Being Harsh" In-Reply-To: (Stefan Kangas's message of "Fri, 11 Dec 2020 10:40:34 -0600") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:195788 Archived-At: Stefan Kangas 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. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no