From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#45178: buffer-hash docstring should explain difference to secure-hash Date: Sun, 20 Dec 2020 10:31:20 -0600 Message-ID: References: <87mtyk8h8y.fsf@gnus.org> <87im988ezx.fsf@gnus.org> <87lfds7l84.fsf@tcd.ie> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3400"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 45178@debbugs.gnu.org To: "Basil L. Contovounesios" , Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 20 17:32:14 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 1kr1d0-0000lx-Kb for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 20 Dec 2020 17:32:14 +0100 Original-Received: from localhost ([::1]:35314 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kr1cz-0007vA-LX for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 20 Dec 2020 11:32:13 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49400) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kr1co-0007u9-2b for bug-gnu-emacs@gnu.org; Sun, 20 Dec 2020 11:32:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33899) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kr1cn-0007Xl-Qv for bug-gnu-emacs@gnu.org; Sun, 20 Dec 2020 11:32:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kr1cn-0000UP-M3 for bug-gnu-emacs@gnu.org; Sun, 20 Dec 2020 11:32:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 20 Dec 2020 16:32:01 +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.16084818921840 (code B ref 45178); Sun, 20 Dec 2020 16:32:01 +0000 Original-Received: (at 45178) by debbugs.gnu.org; 20 Dec 2020 16:31:32 +0000 Original-Received: from localhost ([127.0.0.1]:45445 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kr1cK-0000Tc-Aa for submit@debbugs.gnu.org; Sun, 20 Dec 2020 11:31:32 -0500 Original-Received: from mail-pl1-f169.google.com ([209.85.214.169]:46924) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kr1cF-0000TL-CS for 45178@debbugs.gnu.org; Sun, 20 Dec 2020 11:31:31 -0500 Original-Received: by mail-pl1-f169.google.com with SMTP id v3so4331282plz.13 for <45178@debbugs.gnu.org>; Sun, 20 Dec 2020 08:31:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to:cc; bh=y5PABbGE9UBtQ6eR+bVn42ASFWTWiF1oPh3LmuVY2O8=; b=ksjOW43l/O23A0IheY8u1hjn/daMG3ri+njuPSyhAnd5j+oWieH/G5GiCDWvGsmYQo h7Mbf3X3iepeEZCAZTstuRSsPuEdM3JU2kKpMSAkz0tv9RLaWbH6dmdbC2CWN5cP8EMf 5hzMcK4d4e4IvAiQTKIuiwch7KrdDYyCpO7aUyI0WyNwqy8ZHF3N0UauVkP1CVInuwH+ rwZ1f4LTkymkERJZRKv+8WpONPV50AtWgr7/Em6JoD4kEKVwwmpMc2xjQucMrlxBTaJi /a//Ijosvufk44m4LFRNN65Wb6trauTxTEkebGWarDycXTCbyxQPXcvUPEsjsd3+jwgR s0Fg== X-Gm-Message-State: AOAM532Znq6d87XTE8XGlatXrPstVMkeonVWpR2Jji7NdnR+y8B/cmD3 upd6cvDh63XqUw0CCvOCwUD59BrPYsbfXreD3K8= X-Google-Smtp-Source: ABdhPJyKqHD75AKNelERf4IU+8XN4nNaiRhSfDFZAVNbIeFFJqMi82a2KHK+9B14YlrqvTOo0cxpVGjY9eOoI718nEA= X-Received: by 2002:a17:90a:fb43:: with SMTP id iq3mr13884726pjb.175.1608481881308; Sun, 20 Dec 2020 08:31:21 -0800 (PST) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sun, 20 Dec 2020 10:31:20 -0600 In-Reply-To: <87lfds7l84.fsf@tcd.ie> 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:196480 Archived-At: "Basil L. Contovounesios" writes: > Lars Ingebrigtsen writes: > >> `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?] AFAIU, this is used to detect when a command changed a buffer but the buffer still is the same before and after the changes. In that case, we don't want it to be marked as changed even if there were changes taking place in the background. For example, see `fill-paragraph'.