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#71424: 29.3; auto-revert-use-notify buggy interaction with indirect buffers Date: Sat, 08 Jun 2024 10:03:36 +0300 Message-ID: <86h6e3ex13.fsf@gnu.org> References: <87ed98caci.fsf@bcc32.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25477"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71424@debbugs.gnu.org To: z@bcc32.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 08 09:05:13 2024 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 1sFq8W-0006M0-UG for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 08 Jun 2024 09:05:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sFq89-0006kH-TE; Sat, 08 Jun 2024 03:04:49 -0400 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 1sFq87-0006jg-RS for bug-gnu-emacs@gnu.org; Sat, 08 Jun 2024 03:04:47 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sFq87-0001ty-Jh for bug-gnu-emacs@gnu.org; Sat, 08 Jun 2024 03:04:47 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sFq8M-0001Lu-UB for bug-gnu-emacs@gnu.org; Sat, 08 Jun 2024 03:05: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: Sat, 08 Jun 2024 07:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71424 X-GNU-PR-Package: emacs Original-Received: via spool by 71424-submit@debbugs.gnu.org id=B71424.17178302435034 (code B ref 71424); Sat, 08 Jun 2024 07:05:02 +0000 Original-Received: (at 71424) by debbugs.gnu.org; 8 Jun 2024 07:04:03 +0000 Original-Received: from localhost ([127.0.0.1]:50558 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sFq7P-0001J5-8d for submit@debbugs.gnu.org; Sat, 08 Jun 2024 03:04:03 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:54840) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sFq7M-0001IL-Hr for 71424@debbugs.gnu.org; Sat, 08 Jun 2024 03:04:01 -0400 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 1sFq71-0001ik-55; Sat, 08 Jun 2024 03:03:39 -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=BiruSM94Yqwg/6CZGZvUOvBznrcIT3YNKfuMDqvbvOA=; b=X5fnNeV/xTVq ReWSQsRvHshGbYuB+2LJ92appF3sfiK1wX1+OWcQ2bD+rDNwWgORMwvSAvyKL5E9X+ldSy2Z5eFLM HZ1LK2CA4QTV7aw5sL19fjcN3imrJZZrFHJt5rdEJixz2CaWgPeLX2yHHa9P9K1MnN+GDfhZvhUKU 1NfOJwNWfjCckdDpEWfp6SR9AXlTei/iWppb/Im+MckedeMObgcAe3Twgsw6hO13eS/BK8CrJsuKW DTTZlAIIGxarJpwqG38TLFU4O3SIKnK+S3GBxSh0kotrMljhUPTIP9YGMVjKezS3RxQnCIkiHlXVM AaStYz+Aq2R1ghwUtm1khw==; In-Reply-To: <87ed98caci.fsf@bcc32.com> (z@bcc32.com) 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:286813 Archived-At: > Cc: z@bcc32.com > From: z@bcc32.com > Date: Sat, 08 Jun 2024 00:44:13 -0400 > > > 1. emacs -Q > 2. Enable global-auto-revert-mode, and ensure auto-revert-use-notify=t > 3. Open an org file, such as ~/temp.org > 4. Insert some contents: > > * example org contents > here is a subtree > * another heading > > 5. Save the buffer > 6. Outside of Emacs, modify ~/temp.org: > > $ echo asdf >> ~/temp.org > > 7. See that temp.org's buffer is immediately reverted in Emacs and > contains the new contents that were added. > 8. M-x org-tree-to-indirect-buffer > 9. Kill the new indirect buffer > > 10. Modify ~/temp.org outside of Emacs again. temp.org's buffer is > not reverted, and even if you eval (auto-revert-buffers), the > buffer is not reverted. Thanks, but did you report this to the Org developers first? If not, please do, so they could analyze the issue and determine whether it's an Org bug or a bug in some core Emacs functionality. To see that at least the basic functionality works in Emacs, I did the following: emacs -Q C-x C-f SOME-FILE RET M-x global-auto-revert-mode RET M-x clone-indirect-buffer RET Then, outside Emacs, typed from the shell prompt $ cat OTHER-FILE >> SOME-FILE where OTHER-FILE is some other existing file. After that, I saw both the base buffer's text and that of its indirect clone change to reflect the appended text. So my conclusion is that the Subject of your bug report is not accurate: the auto-revert feature does work with indirect buffers as expected. Which is why I think this might be an Org specific issue, since org-tree-to-indirect-buffer does more than just create an indirect buffer. Thanks.