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: Wed, 23 Feb 2022 19:46:59 +0200 Organization: LINKOV.NET Message-ID: <86tucp8sn8.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> <8635kdfk2e.fsf@mail.linkov.net> <11a81289-32f6-2da5-d166-a4c54d06c550@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="34660"; 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 Wed Feb 23 19:07:54 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 1nMw3L-0008hk-Gh for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 23 Feb 2022 19:07:51 +0100 Original-Received: from localhost ([::1]:36506 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nMw3K-0002fC-ED for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 23 Feb 2022 13:07:50 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:34026) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nMw2Y-0002ao-GX for bug-gnu-emacs@gnu.org; Wed, 23 Feb 2022 13:07:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52545) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nMw2Y-00024Q-7V for bug-gnu-emacs@gnu.org; Wed, 23 Feb 2022 13:07:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nMw2Y-0005mF-3c for bug-gnu-emacs@gnu.org; Wed, 23 Feb 2022 13:07:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 23 Feb 2022 18:07:02 +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.164563958822133 (code B ref 54038); Wed, 23 Feb 2022 18:07:02 +0000 Original-Received: (at 54038) by debbugs.gnu.org; 23 Feb 2022 18:06:28 +0000 Original-Received: from localhost ([127.0.0.1]:46435 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nMw20-0005kv-4e for submit@debbugs.gnu.org; Wed, 23 Feb 2022 13:06:28 -0500 Original-Received: from relay1-d.mail.gandi.net ([217.70.183.193]:56293) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nMw1y-0005ke-9X for 54038@debbugs.gnu.org; Wed, 23 Feb 2022 13:06:27 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id E1D27240007; Wed, 23 Feb 2022 18:06:18 +0000 (UTC) In-Reply-To: <11a81289-32f6-2da5-d166-a4c54d06c550@gmx.at> (martin rudalics's message of "Mon, 21 Feb 2022 10:08:10 +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:227528 Archived-At: >> 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? > > No. The only agent that has access to all window configurations is the > garbage collector. Do you want to collect garbage each time you want to > know whether a window is part of a window configuration? > >> Like in bug#54038 (about having access to windows in window configurations), >> the problem is that there is no way to update and even peek inside >> a window configuration. In bug#54038 the cleanup function can't tell >> if a window is still live in a window configuration. > > We might be able to provide such a function but can you tell me why you > would need it and how you would use it? It could be used in 'image-mode-winprops': (when cleanup (setq image-mode-winprops-alist (delq nil (mapcar (lambda (winprop) (let ((w (car-safe winprop))) (if (or (not (windowp w)) (window-live-p w) new function => (window-live-in-all-window-configurations w)) winprop))) image-mode-winprops-alist))))