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: Sun, 21 Apr 2024 10:56:15 +0200 Message-ID: <0999f1dc-c56e-4395-b3bd-e0f5b135abbd@gmx.at> References: <021bb8c2-3f2d-4746-8f04-49f43cf57d16@gmx.at> <86il2mxmxd.fsf@mail.linkov.net> <3fe7e4b4-bc9a-4303-a87f-a360765c597f@gmx.at> <86le6wpok4.fsf@mail.linkov.net> <86msrbutsu.fsf@mail.linkov.net> <1305821a-6a0e-4cbc-82fb-bac229599c1b@gmx.at> <86sf0y2fg8.fsf@mail.linkov.net> <86il0rgh5a.fsf@mail.linkov.net> <86o7aiiiy8.fsf@mail.linkov.net> <86a5m1jg0g.fsf@mail.linkov.net> <8634rrnmre.fsf@mail.linkov.net> <86ttk68su0.fsf@mail.linkov.net> <86wmorb39z.fsf@mail.linkov.net> 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="8360"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 68235@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 21 10:57:14 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 1ryT0b-0001w7-2v for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 21 Apr 2024 10:57:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ryT0D-0001dh-0L; Sun, 21 Apr 2024 04:56:49 -0400 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 1ryT0B-0001dT-7v for bug-gnu-emacs@gnu.org; Sun, 21 Apr 2024 04:56:47 -0400 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 1ryT0A-0003zw-VV for bug-gnu-emacs@gnu.org; Sun, 21 Apr 2024 04:56:46 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ryT0P-0000vN-QR for bug-gnu-emacs@gnu.org; Sun, 21 Apr 2024 04:57:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 21 Apr 2024 08:57:01 +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.17136898003448 (code B ref 68235); Sun, 21 Apr 2024 08:57:01 +0000 Original-Received: (at 68235) by debbugs.gnu.org; 21 Apr 2024 08:56:40 +0000 Original-Received: from localhost ([127.0.0.1]:41541 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ryT03-0000tM-SE for submit@debbugs.gnu.org; Sun, 21 Apr 2024 04:56:40 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:48769) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ryT02-0000sO-7I for 68235@debbugs.gnu.org; Sun, 21 Apr 2024 04:56:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.at; s=s31663417; t=1713689776; x=1714294576; i=rudalics@gmx.at; bh=K6tYBNlw/6stmxB/HQ3dYQB6wpI7lLPZE+nCJ/B0jaQ=; h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:Subject:To:Cc: References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=DV58lGTS7gk52p128VymuqiOAaLrqNrdrUBuohSLZxUrFEpaosXpIXIx0DqGGaaW K2ueMSueJIyXasa2NBXc5yrNIXjp1aGWXsM/HPOgjnalVj5EL3foFOh6mdstOYYlh azVH8nFneD1KUPbsbGunDIF9JwGY27nzBfeukHTQl8a5aOeSeUFfpAqS3djAEpVtI b+z0oSfavtzpGSMCXKE+udI6a2x4dNPcKx51/d+1NkpxoyzFjnb3+n6pSm/BoXN0v tjvqSUWiKUjlFwF3McEl0HnJWIzX+CtLTjgrdZUCBc0KK+iFZiCC2KkoZnACIt5Wv KGbVYa53fMVFs6EpkQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from [192.168.31.113] ([212.95.5.41]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M1Hdw-1s1E9S1pww-002lvl; Sun, 21 Apr 2024 10:56:16 +0200 Content-Language: en-US In-Reply-To: <86wmorb39z.fsf@mail.linkov.net> X-Provags-ID: V03:K1:PYGti8GQVMQQeBAd3Ud6pfmu9wVvmOdT26pG4mZoE3zEceSnd4E DJW4wUWXWU6Z+OAL9HQ4u2kqhK4aG62/jTtwoik7e8xb2SQbMNMyI43pAEoAteGBM0GPnlr QczXmUnNr7qOasWta69SEcn7j4YwO2qiHx+CBisGMssbHf2+ya2yed8eNhgQF8GV/UZtoWq RfU9wxn5IRYebuJ8jegvg== UI-OutboundReport: notjunk:1;M01:P0:mPT3l+g5dZA=;7Th0CN+lp3lREK61fYMyAtsTc/R 870Ys6MCrm6Ng16DB3/61wdTpXXqIwX3lBUW9SWMC50MbozK1lCL1baMAX06lTjjrMVO6lS4z sVrnfr3tZBEGfuY90icyxj9RCUERXPQqwn6d4c+1KCjvMgliEBwH8zf7GCCUY//pYrEzDBcys ZDugcOil39qJCMx7TZFJlABG+MJwYaURxJ9nGK7GrEEx2w/jtn0jsb7sZqBjOja3fKZjN26fg EocKiuY1VVDQ8OyIEXEyH6UF4NFjsHRaQQaJVZF4O50YupO4CtiGHnJiTrDPJGVXcQ5rdIHv+ b6UlJacGFlC524QtpOChdZCxjiHmKkvKSMXnCA9znzWUu4liws7nI6N4AxdhpxcGM+x8fMu9H nvOC13cODoDLHyyteqSYBpYEYvQQBDQ9IQ+bVAgZx86provWoM5jmfr1wAtqEUtEZL+vDYvJO viTt/Bv59BNT0GzwWA6y5LYrPKdw7WQ/ab7ruIT9VcvuE10FNMZLkHdBw7de7WY4uXr140h5J 9ilmAJYrHLvDoyn0XvbqoW50kwlNvNMN+9L4dWW3/SuOuW6ev6csVUc1n1Dg19ehshAxT/Dld a2+P3Hxw9m6Mm6CSdHLUKeM5rPJB59Edbh1HKLG9F5QS1ryBL8t/2IZFAiX50nJnfSLmY5HcO d7BBcafcNrZ2fPL4HANcOmWxYg1zc0jh+08XQEoraUHGxRKu9bxZTya2DwnHyVxVRGajhK7Af /q21DYLS2JvZOp5YGFCuP2ToTLL0RsWGkIWVVFtb5vkCgi4ZbDEyXRwK+UhQy8UtaS/mcFsk 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:283762 Archived-At: > I noticed that now 'find-alternate-file' has such a problem > that it updates the modification timestamp of the directory. > > This is because 'find-alternate-file' calls 'rename-buffer' > before setting back the value of 'buffer-file-name'. > So this code in 'rename-buffer' is fired and changes > the directory modification timestamp: > > if (NILP (BVAR (current_buffer, filename)) > && !NILP (BVAR (current_buffer, auto_save_file_name))) > call0 (intern ("rename-auto-save-file")); Why does an auto-save file exist at all in this situation? If the original buffer was modified, 'find-alternate-file' should have saved it into its file and deleted the auto-save file. Does your code rely on fine tuned directory timestamps? > A possible fix would be to swap the order of > setting of 'buffer-file-name' and 'rename-buffer': I see no problems doing that so please install. Thanks, martin