From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.devel Subject: Change in `revert-buffer' behavior [28.0.50] Date: Tue, 27 Jul 2021 11:09:59 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000008b4dc705c81c45f8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8171"; mail-complaints-to="usenet@ciao.gmane.io" To: Emacs developers , Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jul 27 17:11:20 2021 Return-path: Envelope-to: ged-emacs-devel@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 1m8Ojo-0001xt-BA for ged-emacs-devel@m.gmane-mx.org; Tue, 27 Jul 2021 17:11:20 +0200 Original-Received: from localhost ([::1]:33420 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m8Ojm-0002yu-9v for ged-emacs-devel@m.gmane-mx.org; Tue, 27 Jul 2021 11:11:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49236) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m8Oj9-0002EC-Jh for emacs-devel@gnu.org; Tue, 27 Jul 2021 11:10:39 -0400 Original-Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]:38432) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m8Oj7-0000o8-SW for emacs-devel@gnu.org; Tue, 27 Jul 2021 11:10:39 -0400 Original-Received: by mail-wr1-x42b.google.com with SMTP id l18so7940733wrv.5 for ; Tue, 27 Jul 2021 08:10:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=zCVdWckBiNsL7N+zy/vOX18pNlbbXQxSTwf64+HtJpU=; b=HA+Dkr2s3ykO6iO+GaAerF8vGps7zsMEC1/4wE5MHAnOrdBNc8dJMYomLXjxd9f/73 U+vS9mcMEjomfnjER73hAelEzSO0V+iNofmC0jacsVHcUHCt3oJAjQWIEWogP6B7HvJG D7Xpd6MBhTe0qbzdSZ8aER8BWIn5bHRBLzmt4ACImV8DQw8PCO2PTtiN6Ol88whcxrYU TXqnWi8Egdp2GJjPlOTxnPWysm4+BNJkYQoNBoCspbi7kh1gcUKLQl8tJIOQbHgo3/Tt CZ0USzlOGK03yIu/G32L5md7I/QtGqVTsyZhd0r/tp89KMb9jRbguWmSwTZjhsAAMEB7 AqlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=zCVdWckBiNsL7N+zy/vOX18pNlbbXQxSTwf64+HtJpU=; b=UUK2BtpHtHWDQJCthfP7nrqH4Z4nx+eWtIOrTolvYfeUCxroDNWms3Y4+LJoLgPkDs F0IDYQGpcI/5Wa9ufGZC79EaRdpaJUunc6JXX+lORDbuycil9F6n/GM/qNbXgmPEyt3W s/nwHO6XK2uZQMzZxs3p2ZhS247yCa5snMfxGH/VgqcsTEEISeeejEL7VnXCvYXZaFsA kRgQSIyrGGbeIddxQxV7ELZherKi8tnJJxZgDu3/sLUBczuPelptcHuTVKqyWb5m4V+k xaPaVopfEmlzoesiS6XKd4/jHLB5zbRLhuoRbk+wzjtd+nVYSY2bnS5tSEct5+zat0FY k2MA== X-Gm-Message-State: AOAM532B7u20axry7ImFEEDyRXRLVHUmn0u1sgeNckqoSz8NOzjPpbLf E6VVY869wX1Xpnke0SnzfOIctn5J/7ZkLDK+FkpPdmdF05U= X-Google-Smtp-Source: ABdhPJxHzVIrDDrbd18U72KR0GZdDCAU3WMvMnZspJPli8byAvR7eiIOcxl9WHEKhR7NLh4tcwCNTRGXlISNDNFEPP4= X-Received: by 2002:adf:fbce:: with SMTP id d14mr25196569wrs.236.1627398634948; Tue, 27 Jul 2021 08:10:34 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::42b; envelope-from=kaushal.modi@gmail.com; helo=mail-wr1-x42b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:271698 Archived-At: --0000000000008b4dc705c81c45f8 Content-Type: text/plain; charset="UTF-8" Hello, I use the `revert-buffer' function frequently and after a recent rebuild of emacs from master after about a month, I noticed a big difference in its behavior. When I change the read-onlyness of a file from the disk, M-x revert-buffer doesn't reflect that change any more. This is really important as I am working in a centralized VCS where the files have to be "checked out" i.e. make writable before I can modify them. Now when the commands in the terminal check in and check out the file, the read-only/writable status doesn't update when I revert-buffer in Emacs. *Earlier M-x revert-buffer always showed the correct read-only state. Now, I need to kill the buffer and reopen to see the correct status.* I believe it is kind of related to this commit: https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=fcae435f598471a2911641412125c5ac4f73559f Here's my Emacs devel version: Emacs version: GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30, cairo version 1.15.12) of 2021-07-26, built using commit 1ff02c53b5f21dfcaff1794f3eb2f42fb6160dae. -- Kaushal Modi --0000000000008b4dc705c81c45f8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

I use the `revert-buf= fer' function frequently and after a recent rebuild of emacs from maste= r after about a month, I noticed a big difference in its behavior.

When I change the read-onlyness of a file from the disk, M= -x revert-buffer doesn't reflect that change any more. This is really i= mportant as I am working in a centralized VCS where the files have to be &q= uot;checked out" i.e. make writable before I can modify them.

Now when the commands in the terminal check in and check o= ut the file, the read-only/writable status doesn't update when I revert= -buffer in Emacs.

*Earlier M-x revert-buffer alway= s showed the correct read-only state. Now, I need to kill the buffer and re= open to see the correct status.*


Here's my Emacs devel versio= n:

Emacs version: GNU Emacs 28.0.50 (build 1, = x86_64-pc-linux-gnu, GTK+ Version 3.22.30, cairo version 1.15.12)
=C2=A0= of 2021-07-26, built using commit 1ff02c53b5f21dfcaff1794f3eb2f42fb6160dae.=



--Kaushal Modi
--0000000000008b4dc705c81c45f8--