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#56397: 28.1; Incorrect behavior of buffer-modified-p after undo in indirect buffer Date: Thu, 07 Jul 2022 11:59:02 +0300 Message-ID: <83fsjd5meh.fsf@gnu.org> References: <08ce3b7e-2f84-795e-9f11-a3b1d1fc83a0@ucar.edu> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32761"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56397@debbugs.gnu.org To: Bill Sacks Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 07 11:03:02 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 1o9NPZ-0008Fe-6U for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 07 Jul 2022 11:03:01 +0200 Original-Received: from localhost ([::1]:36018 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o9NPX-0008Ic-3b for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 07 Jul 2022 05:02:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40856) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o9NMh-0007Y1-Kd for bug-gnu-emacs@gnu.org; Thu, 07 Jul 2022 05:00:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33614) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o9NMh-0006mG-2i for bug-gnu-emacs@gnu.org; Thu, 07 Jul 2022 05:00:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o9NMg-0004DF-TP for bug-gnu-emacs@gnu.org; Thu, 07 Jul 2022 05:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 07 Jul 2022 09:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56397 X-GNU-PR-Package: emacs Original-Received: via spool by 56397-submit@debbugs.gnu.org id=B56397.165718435716093 (code B ref 56397); Thu, 07 Jul 2022 09:00:02 +0000 Original-Received: (at 56397) by debbugs.gnu.org; 7 Jul 2022 08:59:17 +0000 Original-Received: from localhost ([127.0.0.1]:55738 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o9NLx-0004BV-I4 for submit@debbugs.gnu.org; Thu, 07 Jul 2022 04:59:17 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55580) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o9NLv-0004BI-7D for 56397@debbugs.gnu.org; Thu, 07 Jul 2022 04:59:15 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:41786) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o9NLo-0006ck-6V; Thu, 07 Jul 2022 04:59:09 -0400 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=0WICxlpTtD+37wrYuUWfiNJsdILDKJ+YN85plrmJw8k=; b=QRlTbhhyGSEn hiwqroH/NVoERhZhLWAAJb/gnRWBIBFF+lZO/6TiqblUcfX6SB1PMxpkkYDQO3P6yf8BXHaVAE2Ga XyU5Tjq5ZO5TAsuuJi55gsnin9nt2NNxYULYMKh4cjTNqjTyzTOWY+8f0iY44qZXg2WDeYTcs0MDv KbBGy1hmy6nau9Y0GwlvpeqBi2Kk0Mrt7E2apABSVsTjQvrHx3FmbK/l+YFFmi9te0Rxq/9ZXpbMJ nm8b5kXdhYiJUkhZ7uoWs0A2V+RwPa7RsMIEvnki0XpzPfLHi/HvbxAlmOn9f3wwP0W6xxfgr1Jwx 9Sj86O57lfjFXp4UUiop8g==; Original-Received: from [87.69.77.57] (port=3607 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 1o9NLm-00025j-Oq; Thu, 07 Jul 2022 04:59:08 -0400 In-Reply-To: <08ce3b7e-2f84-795e-9f11-a3b1d1fc83a0@ucar.edu> (message from Bill Sacks on Tue, 5 Jul 2022 07:24:29 -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:236335 Archived-At: > From: Bill Sacks > Date: Tue, 5 Jul 2022 07:24:29 -0600 > > When working in a cloned indirect buffer, if I type something then save the buffer then undo my changes, > buffer-modified-p returns nil and I am not able to save the version with these changes undone. > > Steps to reproduce: > > 1. Create a text buffer with some text in it (e.g., test.txt) and save it > 2. Clone the buffer with M-x clone-indirect-buffer > 3. Type some more text into the indirect buffer (e.g., test.txt<2>) and save it with C-x C-s > 4. While still in the indirect buffer, undo the text entered in (3) with C-/ until the buffer has returned to the state > at the start of (3) > 5. Notice that (buffer-modified-p) returns nil. Attempting to save the buffer gives the message "(No changes > need to be saved)". However, viewing the file on disk shows that it is still at the state from the end of (3). Thanks, I think I've now fixed this on the master branch.