From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#54038: 29.0.50; doc-view cannot show different pages in different tabs Date: Sun, 20 Feb 2022 20:51:21 +0200 Organization: LINKOV.NET Message-ID: <8635kdfk2e.fsf@mail.linkov.net> References: <874k4xrgu5.fsf@gmail.com> <86wnhtjrb4.fsf@mail.linkov.net> <87fsohouaw.fsf@gmail.com> <86wnhslhli.fsf@mail.linkov.net> <86y226wyea.fsf@mail.linkov.net> <6e15c95e-f282-1b31-3dc8-da36c37d1b83@gmx.at> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3681"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: 54038@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 20 20:00:18 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 1nLrRR-0000mn-2R for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 20 Feb 2022 20:00:17 +0100 Original-Received: from localhost ([::1]:38640 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nLrRQ-0007RJ-2B for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 20 Feb 2022 14:00:16 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50652) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nLrRF-0007PC-FP for bug-gnu-emacs@gnu.org; Sun, 20 Feb 2022 14:00:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39834) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nLrRE-0002HZ-4e for bug-gnu-emacs@gnu.org; Sun, 20 Feb 2022 14:00:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nLrRE-0004ql-4Y for bug-gnu-emacs@gnu.org; Sun, 20 Feb 2022 14:00:04 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 20 Feb 2022 19:00:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54038 X-GNU-PR-Package: emacs Original-Received: via spool by 54038-submit@debbugs.gnu.org id=B54038.164538355218527 (code B ref 54038); Sun, 20 Feb 2022 19:00:04 +0000 Original-Received: (at 54038) by debbugs.gnu.org; 20 Feb 2022 18:59:12 +0000 Original-Received: from localhost ([127.0.0.1]:33727 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nLrQO-0004ol-0F for submit@debbugs.gnu.org; Sun, 20 Feb 2022 13:59:12 -0500 Original-Received: from relay7-d.mail.gandi.net ([217.70.183.200]:59949) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nLrQF-0004ne-NP for 54038@debbugs.gnu.org; Sun, 20 Feb 2022 13:59:08 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 9DF5D20008; Sun, 20 Feb 2022 18:58:55 +0000 (UTC) In-Reply-To: <6e15c95e-f282-1b31-3dc8-da36c37d1b83@gmx.at> (martin rudalics's message of "Sun, 20 Feb 2022 10:17:41 +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" Xref: news.gmane.io gmane.emacs.bugs:227264 Archived-At: >> 'window-live-p' doesn't check windows saved in window-configurations in tabs. >> >> Maybe it should check tab window-configurations on all frames >> by a new function 'window-configuration-windows' >> (something like used in 'tab-bar-get-buffer-tab'). >> >> But then what about windows saved by 'window-configuration-to-register'? >> Should they be checked by 'window-live-p' too? >> >> Or maybe better to change 'image-mode-winprops-alist' to the hash >> 'image-mode-winprops-hash' where window keys are garbage-collected? >> So when a window is deleted from all window-configurations, >> it will be garbage-collected? > > GC tries to remove dead buffers window configurations stored in their > list of previous or next buffers. But checking for whether a dead > window has disappeared from all stored configurations is more demanding > - maybe we could reserve a bit in each window the collector resets for > all dead windows at the beginning of each cycle and at the end reclaim > the space of all windows that did not have that bit set when the window > was found in a stored window configuration. Maybe a more immediate solution would be simply to iterate all tabs on all frames, and to check whether they contain a window. But still I can't find a function to check whether a window is in a window configuration. Does such a function exist?