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#43412: [FEATURE] autorevert-only-if-visible [PATCH] Date: Fri, 18 Sep 2020 09:35:31 +0300 Message-ID: <83h7rv618s.fsf@gnu.org> References: <20200915040728.77ufv7g6bekvrzqa@E15-2016.optimum.net> <83y2lb8648.fsf@gnu.org> <20200915153958.e2nry7dxl3pmu3k6@E15-2016.optimum.net> <83imcf82fy.fsf@gnu.org> <20200915161239.f3fb74daihpon64w@E15-2016.optimum.net> <83een37y21.fsf@gnu.org> <20200916201104.ktl6aukmpe5hk6g2@E15-2016.optimum.net> <83a6xo7dgv.fsf@gnu.org> <20200917201049.jihclkumemv4mbhz@E15-2016.optimum.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31150"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 43412@debbugs.gnu.org To: Boruch Baum Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 18 08:36:36 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 1kJA0Z-00080t-Fu for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 18 Sep 2020 08:36:35 +0200 Original-Received: from localhost ([::1]:53134 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kJA0Y-0004u0-3F for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 18 Sep 2020 02:36:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51270) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kJA05-0004tn-9D for bug-gnu-emacs@gnu.org; Fri, 18 Sep 2020 02:36:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57145) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kJA01-0005XG-S9 for bug-gnu-emacs@gnu.org; Fri, 18 Sep 2020 02:36:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kJA01-0004OZ-Oe for bug-gnu-emacs@gnu.org; Fri, 18 Sep 2020 02:36:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 18 Sep 2020 06:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43412 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 43412-submit@debbugs.gnu.org id=B43412.160041092816844 (code B ref 43412); Fri, 18 Sep 2020 06:36:01 +0000 Original-Received: (at 43412) by debbugs.gnu.org; 18 Sep 2020 06:35:28 +0000 Original-Received: from localhost ([127.0.0.1]:40458 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJ9zU-0004Nb-2I for submit@debbugs.gnu.org; Fri, 18 Sep 2020 02:35:28 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44374) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJ9zS-0004NO-H3 for 43412@debbugs.gnu.org; Fri, 18 Sep 2020 02:35:27 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:56959) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kJ9zM-0005QP-Bw; Fri, 18 Sep 2020 02:35:20 -0400 Original-Received: from [176.228.60.248] (port=2115 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kJ9zK-0007LB-KF; Fri, 18 Sep 2020 02:35:19 -0400 In-Reply-To: <20200917201049.jihclkumemv4mbhz@E15-2016.optimum.net> (message from Boruch Baum on Thu, 17 Sep 2020 16:10:49 -0400) 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:188266 Archived-At: > Date: Thu, 17 Sep 2020 16:10:49 -0400 > From: Boruch Baum > Cc: martin rudalics , 43412@debbugs.gnu.org > > > Can you describe the problematic case in more detail? With that in > > hand, perhaps Martin (CC'ed) could suggest a method. > > I'm needing now to focus on Rosh HaShanna preparations, and can let > emacs distract me for the next few days, but from memory, on tty emacs: So the problems you had were only with TTY frames? > 1) touch ~/foo > > 2) find it in emacs > > 3) bury the frame so it's not human-visible > > 3.1) OT: I find it useful to globally bind C-x 5 b to function > select-frame-by-name, because I do this routinely as part of my > workflow. Another option might be C-x 5 2. > > 4) M-! echo "bar" >> ~/foo > > 5) switch to the buried frame > > 6) Depending upon your timing, you'll need to wait up to > auto-revert-interval seconds for the buffer to be updated. Thanks. Hopefully, Martin will be able to help us out here. > It maybe could all be solved if there were a hook for frame change of > state (eg. getting/losing focus, being raised/buried). It's surprising > to me that such events were never thought significant enough in emacs to > merit a hook. We do have focus-in-hook and focus-out-hook, for starters.