From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#68235: 29.1.90; Switching tabs stops following process output in selected window Date: Sat, 13 Jan 2024 16:02:32 +0100 Message-ID: <669371d8-7c65-4c5f-99a9-0d8298808d23@gmx.at> References: <83frzdy6if.fsf@gnu.org> <86edexnmv8.fsf@mail.linkov.net> <83mstlvvkj.fsf@gnu.org> <34a872a9-07b2-4671-837f-f8d98b37420d@gmx.at> <867ckmxto2.fsf@mail.linkov.net> <92085305-caad-4bb6-ac55-a81415404a26@gmx.at> <86v885je23.fsf@mail.linkov.net> <868r4ymn7x.fsf@mail.linkov.net> <86h6jlqh2i.fsf@mail.linkov.net> <5e438b04-6fb7-4114-a5a8-61db9809b297@gmx.at> <86cyu7m4kc.fsf@mail.linkov.net> <2f80855c-3bf9-4973-a484-059cdef3b8c7@gmx.at> Reply-To: martin rudalics Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35356"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: daniel.c.mccarthy@gmail.com, Eli Zaretskii , 68235@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 13 16:03:28 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 1rOfXk-00090r-50 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 13 Jan 2024 16:03:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rOfXT-0008M3-Fd; Sat, 13 Jan 2024 10:03:11 -0500 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 1rOfXP-0008LD-Dq for bug-gnu-emacs@gnu.org; Sat, 13 Jan 2024 10:03:08 -0500 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 1rOfXM-0002TL-2F for bug-gnu-emacs@gnu.org; Sat, 13 Jan 2024 10:03:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rOfXK-0000yl-8H for bug-gnu-emacs@gnu.org; Sat, 13 Jan 2024 10:03:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 13 Jan 2024 15:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68235 X-GNU-PR-Package: emacs Original-Received: via spool by 68235-submit@debbugs.gnu.org id=B68235.17051581633738 (code B ref 68235); Sat, 13 Jan 2024 15:03:02 +0000 Original-Received: (at 68235) by debbugs.gnu.org; 13 Jan 2024 15:02:43 +0000 Original-Received: from localhost ([127.0.0.1]:40810 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rOfX0-0000yE-LL for submit@debbugs.gnu.org; Sat, 13 Jan 2024 10:02:43 -0500 Original-Received: from mout.gmx.net ([212.227.15.15]:56809) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rOfWx-0000xy-Rg for 68235@debbugs.gnu.org; Sat, 13 Jan 2024 10:02:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.at; s=s31663417; t=1705158153; x=1705762953; i=rudalics@gmx.at; bh=tehvpNlyRm6AZe7dY/aOwvrQ6f4AslXuGhbx5vhJwm0=; h=X-UI-Sender-Class:Date:Subject:From:To:Cc:References: In-Reply-To; b=pqZdF2uADDLrn6xUAqPLDUyhvcgOX4hhjGuJUbbrfJxRGJ1p6i+7LnuWCD0gDlDW 2FymS85vDsZquyZOoMTY5GIx09VOtDow3ZvBCqn5JJvxibmsWrjkLVqOWKt1u3Nxk +xlr6OfxZqslDJO6/udTWKIE4reUKUKoH+r3U9OFNzPBp+cUIyE9HDjRT8yPcEmi3 4+xPAysOyP+3cQztQVEXm4A68lDLX4LXE3mEI4JwmqB9tuIa2GfL26q8NPqT9q9c1 55j8ONNTAVBUAreTGBLQNmeXyJl9RsmdHJFZVJPDpCp1vzUHuOoZq293Xjy+Fm3ix SfFZlkM2afZO1IN14g== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from [192.168.31.113] ([212.95.5.124]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N0oBr-1rCn5I1Ilp-00wmgs; Sat, 13 Jan 2024 16:02:33 +0100 Content-Language: en-US In-Reply-To: <2f80855c-3bf9-4973-a484-059cdef3b8c7@gmx.at> X-Provags-ID: V03:K1:DDYtNZGqAuZUDoskIgHC0qI2rnyPDMZgHJJztMuyyRXEP5vJYR3 AwY6ao2edZhSBsTHOajq9hUqqj2tGaiX83dLkkwJ5TL3rVUJ62DsfWvoESC525sGSEgzVsM +7exxn/MP4IGyd/unLuGBSBvVzjIymCQH50PcpybBeD6//U8t0nMAPharTnPOZ0iBPYjzwY DaeK5wMht5K9bIUqqSv8A== UI-OutboundReport: notjunk:1;M01:P0:VgGRGNy3H2g=;VLATA80U5EpXwDVifsnU4FbhsfC UKpQ9w0AgkiboIYCoZKJfhcOsQCw8UuvdRCqL8wxN9MyyZneJ17APL026mgaVhauPNo8joelu 3LPBFrDf4kler6VcVkCRW3s4CLbiZl+hpFEBX2p5zQ/Wvp2HZMzPJC2q2e1Jt5YhHsUruPFVa v4/Ug1Ay+o/3TtvoSAr9RkFIpsqAmQYFoohLYEjQM7k0L/tgPfp4qFwvLIXbCQnCAXXBJskYQ r/orKhyetOTT1vez1fDuPpsCwj5B1D6oixeU+pyNkg7rDIhxIBLpWTKar6MBlr+JILCIPCcxE frlSLIbpeynQb0WWCE/NZlgmqVEyWHR9f4IZjljbQGXjqk6q3JKjeG7BVIcAlkWPZvmJIjrza 75T17Ek0/+A4j1botIwh22PJYlEXFvT8S2/dzTFzTbSdn5hoYgLREnFf9X9wYk2bIngGNmwYO BtgAr7rRKtZAhWGiotNemPnXkAaq/B9H+5TwT7yWjsfHbCiL3gFIXt9214rjKZ01/+EecxDvS ViLdIDyRCbgYNgNkdtR2kAkKJE7J+W9mNgRYblWvhgRCYceen2LhqeqllNxTprBpxJ7XFh+Sy Hp3VzPtX1q/A/7OS2axB2EfNKpRsGJ5dlTyRYnIWhVxZnDNNpcBD/Jd9IqmGj51eDKaNKCgi7 nMThq/KA9gqkDCcbZN4pVKWZE4FJC8UDgXWiG8v1rKMj5y/ABbsSAkyCMCrZb8ieIaY1ycYh6 BmjVGJizd1zcOviL9z0DTGJuKAWi3N+lgoDyFt1ls938qJ7xmm7lgAaRe3YEkQmAj3BF7q/4 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:278129 Archived-At: > So we'd need a persistent window parameter > > (1) whose value is set to dired's file name at point in > 'current-window-configuration' > > (2) and allows to restore the window's point appropriately in > 'set-window-configuration'. I now think that we need two or three hooks: - 'pre-current-window-configuration-functions', an abnormal hook that receives one argument - the frame whose configuration shall be recorded. 'dired' has to set a persistent window parameter, for each window on that frame it uses, whose value is whatever is needed to restore the present state of the buffer in that window. - 'pre-set-window-configuration', an abnormal hook that receives one argument - the frame whose configuration is about to be restored. 'dired' would have to save away its parameter values of all windows it currently owns on that frame. - 'post-set-window-configuration-functions', an abnormal hook that receives one argument - the frame whose configuration was just restored. 'dired' would have to examine its persistent parameters of all windows on that frame and restore the previous state for them unless maybe a parameter in 'pre-set-window-configuration' tells it not to do that. The latter would be responsible for resolving conflicts like what to do when the same dired buffer is shown in the selected window of the saved and current configuration but their points are on different file names. Whether 'pre-set-window-configuration' is really need for that or some simpler approach would suffice is something I can't tell yet. Also considering the case where the same directory is shown in a non-selected window with saved and current points on different file names and the saved name's file has been deleted meanwhile. For dired the value to save in a parameter would at least be that of the file name point is on - maybe also the number of that line. It's completely up to the major mode like 'dired' to store there whatever it wants. martin