From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#60066: 30.0.50; whitespace-mode modifies buffer Date: Wed, 14 Dec 2022 18:14:56 +0200 Message-ID: <83h6xym073.fsf@gnu.org> References: <877cyuhxj8.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16622"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 60066@debbugs.gnu.org To: Bastian Beranek , Richard Hansen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 14 17:16:17 2022 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 1p5UQb-00045K-Cr for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 14 Dec 2022 17:16:17 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p5UQO-0003Ll-Bf; Wed, 14 Dec 2022 11:16:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p5UQN-0003L1-66 for bug-gnu-emacs@gnu.org; Wed, 14 Dec 2022 11:16:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p5UQM-0000RD-OO for bug-gnu-emacs@gnu.org; Wed, 14 Dec 2022 11:16:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p5UQM-0004mq-6N for bug-gnu-emacs@gnu.org; Wed, 14 Dec 2022 11:16:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 14 Dec 2022 16:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60066 X-GNU-PR-Package: emacs Original-Received: via spool by 60066-submit@debbugs.gnu.org id=B60066.167103450918381 (code B ref 60066); Wed, 14 Dec 2022 16:16:02 +0000 Original-Received: (at 60066) by debbugs.gnu.org; 14 Dec 2022 16:15:09 +0000 Original-Received: from localhost ([127.0.0.1]:40126 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5UPV-0004mP-Do for submit@debbugs.gnu.org; Wed, 14 Dec 2022 11:15:09 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:55694) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5UPS-0004lj-28 for 60066@debbugs.gnu.org; Wed, 14 Dec 2022 11:15:08 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p5UPM-0008CG-Ck; Wed, 14 Dec 2022 11:15:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=lrECT1Mq8qqQFJ8oWlAAmOH/2lvdYXWaT4Qa5En3+UQ=; b=nEI27GAQKxlX 0Rxlo3m9+mXTHh8Df7rzetyyCJqAYcw8fpFFfUxdK319ZZQju0w+f6cPE1InyV4kVwiF+qExy2zGJ cFRdG4Y89OEE0rDNkVflcju5Hk3/JJ7zYT3pwuL1E82nOwjXAlJ6h3yx3WoopaS7nTEgsBGiMywMz V9iJ7ufNMgVWCvkzKlPF3VNEtIx/dGVgUWmN5b4HOaZfY+WBUGOiEHdL6ietKCNRuj9UKLRN1x+4I mbJJQA7jYgVuxmubY23Rs/rwoOAuRoVLb4dtaQTyZz9IAQATo951Yrx+ia3HtJ4zuAljSoR+QmRh8 1VhY+WLeTHjVfFsXLTznNg==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p5UPL-0008EG-Kv; Wed, 14 Dec 2022 11:14:59 -0500 In-Reply-To: <877cyuhxj8.fsf@gmail.com> (message from Bastian Beranek on Wed, 14 Dec 2022 15:26:03 +0100) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:250964 Archived-At: > From: Bastian Beranek > Date: Wed, 14 Dec 2022 15:26:03 +0100 > > > I have > > (add-hook 'c-mode-common-hook 'whitespace-mode) > > in my .emacs and I am using emacs master (which includes > whitespace.el). When opening a source file in my project the buffer > immediately is marked as modified and emacs will ask to save the buffer > when trying to kill it. > > I was able to trace this back to the above line in my .emacs. If I don't > enable whitespace-mode in the hook the buffer is not marked as modified > when opening the .C file. > > With my configuration I would not expect whitespace-mode to make any > changes to the buffer. > > I went back to whitespace.el from commit > > 29eb4596956a74a83ceb4c17835886a23ea0dd20 > > and the problem is fixed. So I assume it is a recent regression in > whitespace.el. Richard, could you please look into this? It sounds like your recent changes to whitespace.el could be the culprit for this regression. I guess something like with-silent-modifications is missing somewhere?