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#68235: 29.1.90; Switching tabs stops following process output in selected window Date: Wed, 24 Jan 2024 09:54:16 +0200 Organization: LINKOV.NET Message-ID: <864jf35fpz.fsf@mail.linkov.net> References: <86h6jlqh2i.fsf@mail.linkov.net> <5e438b04-6fb7-4114-a5a8-61db9809b297@gmx.at> <86cyu7m4kc.fsf@mail.linkov.net> <2f80855c-3bf9-4973-a484-059cdef3b8c7@gmx.at> <669371d8-7c65-4c5f-99a9-0d8298808d23@gmx.at> <86cyu5cc0p.fsf@mail.linkov.net> <868r4reoh3.fsf@mail.linkov.net> <0634c46f-db93-4492-be69-5ac6ca0102a8@gmx.at> <865xzuvdgu.fsf@mail.linkov.net> <86a5p5qv61.fsf@mail.linkov.net> <86edeg2ige.fsf@mail.linkov.net> <21dcf921-acc4-4f94-b383-8ad6d0a57c59@gmx.at> <86v87qpow0.fsf@mail.linkov.net> <4bc98faf-5ebe-4c22-8c9f-04755785fde5@gmx.at> <86jzo16dcy.fsf@mail.linkov.net> <82ad12e6-babf-4be1-bab1-b7c8bb25e2a4@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="15689"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: daniel.c.mccarthy@gmail.com, Eli Zaretskii , 68235@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 24 09:02:34 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 1rSYDR-0003pw-Gc for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 24 Jan 2024 09:02:33 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rSYCt-0004p0-Gc; Wed, 24 Jan 2024 03:01:59 -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 1rSYCr-0004oT-R5 for bug-gnu-emacs@gnu.org; Wed, 24 Jan 2024 03:01:57 -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 1rSYCr-0006K7-A1 for bug-gnu-emacs@gnu.org; Wed, 24 Jan 2024 03:01:57 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rSYCw-0006hs-DE for bug-gnu-emacs@gnu.org; Wed, 24 Jan 2024 03:02: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, 24 Jan 2024 08:02: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.170608329225735 (code B ref 68235); Wed, 24 Jan 2024 08:02:02 +0000 Original-Received: (at 68235) by debbugs.gnu.org; 24 Jan 2024 08:01:32 +0000 Original-Received: from localhost ([127.0.0.1]:44391 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rSYCR-0006gv-Rg for submit@debbugs.gnu.org; Wed, 24 Jan 2024 03:01:32 -0500 Original-Received: from relay4-d.mail.gandi.net ([2001:4b98:dc4:8::224]:38107) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rSYCM-0006gC-My for 68235@debbugs.gnu.org; Wed, 24 Jan 2024 03:01:27 -0500 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 39C50E0003; Wed, 24 Jan 2024 08:01:13 +0000 (UTC) In-Reply-To: <82ad12e6-babf-4be1-bab1-b7c8bb25e2a4@gmx.at> (martin rudalics's message of "Tue, 23 Jan 2024 10:30:49 +0100") X-GND-Sasl: juri@linkov.net 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:278768 Archived-At: >> 1. 'post-set-window-configuration-functions' is called even >> after 'delete-other-windows' and 'kill-buffer', albeit with >> windows=nil, so no problems. > > I don't understand what you mean here. Do you mean that it gets called > because for some reason 'set-window-configuration' gets called after > 'delete-other-windows' and 'kill-buffer'? When I instrumented the function 'foo', it entered edebug between 'y-or-n-p' in (y-or-n-p "Configuration saved ...") (delete-other-windows window) (kill-buffer buffer) (y-or-n-p "Configuration reset ...") So I supposed that maybe from 'delete-other-windows' and 'kill-buffer', but now I understand this is because exiting the minibuffer from 'y-or-n-p' calls 'set-window-configuration'. > We could add a new field to the buffer structure and a function > say 'buffer-last-name' which would return the last name a buffer had > before it was renamed: nil for a new buffer, the old name before the > last 'rename-buffer' and the last buffer name for a dead buffer. Looks nice. > And always think about what to propose when a new buffer with the same > name has been created meanwhile. Something using uniquify could help. >> 3. It seems the buffer-local value of 'revert-buffer-function' >> is not preserved in the killed buffer? > > 'kill-buffer' calls reset_buffer_local_variables which scans the local > variables alist of the buffer and resets all values to their default > values. Giving the variable either a 'permanent-local' property or > binding the default value to the buffer local value around 'kill-buffer' > could work around that but I'd rather try to save this (and other buffer > local values) in a separate alist for buffers stored in a configuration. To save revert-buffer-functions like saving positions of dired files in window parameters?