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: Fri, 12 Apr 2024 10:18:03 +0200 Message-ID: References: <4bc98faf-5ebe-4c22-8c9f-04755785fde5@gmx.at> <86wmrjl8m3.fsf@mail.linkov.net> <39fe71c5-db40-49d1-b22b-37b52ed13865@gmx.at> <86jzn6yzae.fsf@mail.linkov.net> <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> Reply-To: martin rudalics Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------aCbGPeLS8MDE1OiolpgkFPMX" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39177"; 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 Fri Apr 12 10:19:13 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 1rvC7t-0009wu-La for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 12 Apr 2024 10:19:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rvC7c-0003tN-8P; Fri, 12 Apr 2024 04:18:56 -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 1rvC7Z-0003sw-Km for bug-gnu-emacs@gnu.org; Fri, 12 Apr 2024 04:18:54 -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 1rvC7Z-00071X-Ar for bug-gnu-emacs@gnu.org; Fri, 12 Apr 2024 04:18:53 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rvC7h-0005bX-QU for bug-gnu-emacs@gnu.org; Fri, 12 Apr 2024 04:19: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: Fri, 12 Apr 2024 08:19: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.171290990521142 (code B ref 68235); Fri, 12 Apr 2024 08:19:01 +0000 Original-Received: (at 68235) by debbugs.gnu.org; 12 Apr 2024 08:18:25 +0000 Original-Received: from localhost ([127.0.0.1]:57819 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rvC75-0005Uj-GX for submit@debbugs.gnu.org; Fri, 12 Apr 2024 04:18:24 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:34297) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rvC72-0005U6-7v for 68235@debbugs.gnu.org; Fri, 12 Apr 2024 04:18:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.at; s=s31663417; t=1712909884; x=1713514684; i=rudalics@gmx.at; bh=yZrGxluNTgDNt4WR6O3AcLCsGLXdFgFFvTCeSOJX/4Q=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From: In-Reply-To; b=KTxnR7HglqdD1tEaUZvO1YPYlnxo9kOgsBmuqVdsJeKemZdCtOcf7tAdwA9R6GxR jHW6euZoCzQkMAlbxJJUUuE9P70tmTVnslNcACilrJktS7gYSX7uAuqcYyCBckfzS dmS3qJ56m2CjZW00ENNyg2vZsjnGszBuZBYim6smYeVFTGxAzJxwLirlBvYjoJDsn kZ+H2TjvF+qFrzKZeviTDOSGxSw7v7hA554zLV3yZYY6py0/LU5BfzUaQS9LqEoAL a7zh38bso2qwgC+gZArT/U9//QRzvVwVN8gYNAbQyVEiKIqk3j6PTzGdjF6Bamvgh caVmt0AzHTI9eYQgeA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from [192.168.31.113] ([213.142.96.204]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MmUHj-1sdIQ10sFd-00iTTY; Fri, 12 Apr 2024 10:18:04 +0200 Content-Language: en-US In-Reply-To: <8634rrnmre.fsf@mail.linkov.net> X-Provags-ID: V03:K1:Pdt1TlOARF7I1oeGJcuNXJ0mabAZ8zHkgRAClE2LlmkW3g4FycW bltwSJzfJptyxc9kMlmCWWQ6q8LabB0zgt3/ZiDx7ZoYATE6CMgi56gZCSb+HEkgcZyDzRj +NLXPLeneEIpu1CR/U09YJQgW6mVxqZQHWt2Kj874us19rqH3WGyAHKBEnSzQr/uShkqZR/ mEzT8DzwacMvxNizy46Cg== UI-OutboundReport: notjunk:1;M01:P0:wqBQdqVwzQU=;lee4nVORotRQurIcPX3EvpLUnoq SmLa5nfFYezOdpJ3v21F1puWTw/7cUWFFglwPgVemwu7cldexkt48PAQgbaLX5FoeVSRyBVzJ GEF/CFzWQA3+mLnHtYUTt0yTx1HW7wEcZ8exDcd6ulE6JA/GGeYz29Z/+BLm3unP+3dHuDuFl qNOXIfvW1LlOK46HXcrai2bjrjLNtrfk4HuAeLYhW4+g6HCMkgdYAtqydXcokNC6VdWHxHUbD bP2msp3FPTzlICPotEowDVDps3ug1FDfBJHHOiFQr1p0ERTB3RPruJ9kIZr2zLKPQPXibakJV 5S2fyDM3H71S/sMYJpSIcGBuISWzeEycgSLEZgOUW4qu3kVQ6cVRTMtrE9ZfPgTRpTQDhOxZs prd+NraW3IRIZ9cpSaVOzG5ZC30mzFUz+4zBciz4GPsu3sRdQJofRYG92bQf+QsQm9UkubDJ/ OB8izPHU8suQh/vMU72jhGqYvd/Fhxgcmu2NW3UK8ZNOIR9J7u7jEQsUKyHCAoLwG5OCWexdq vZclMjk9Zk0HStPWDRl++8ByHeCPU3wZKexzlLwJSY+BQ6v3llpn4pEU3qDQ+KGmg1XPNv9Zh XB3Cj/V+XVuSIJqcBq1lG/klO8fccOBfX2atXGYdHAJW1ggjRQoYxhtkjDyWve5qvIjpR7jy2 3vqBC/KtSzO4F5emHPbmz08pWB5/6eyeZ5Qg/LCowN9K6MW07QqxDLP0EdDiUgxZNConD6cgT xqZt+C25IoY25O9yV4zN59gsd9bPXxbORaAtafRbLZrvfBgaAb8iZW9H59iOaQYYzAlZWrAh 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:283123 Archived-At: This is a multi-part message in MIME format. --------------aCbGPeLS8MDE1OiolpgkFPMX Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit > Using 'find-alternate-file' in 'image-next-file' looks fine. > There are no other problems. And revealing " **lose**" > while restoring windows is not a bug deal. OK. Please try the attached patch. With something like (let ((buffer (find-file-noselect "~/foo.el"))) (with-current-buffer buffer (find-alternate-file "~/bar.el") (message "%s..%s" (buffer-last-name buffer) (buffer-file-name buffer)))) it should work fine thus fixing the image mode problem. With (let ((buffer (find-file-noselect "~/foo/bar.el"))) (with-current-buffer buffer (find-alternate-file "~/bar/bar.el") (message "%s..%s" (buffer-last-name buffer) (buffer-file-name buffer)))) you can still use the old file name to restore the buffer. martin --------------aCbGPeLS8MDE1OiolpgkFPMX Content-Type: text/x-patch; charset=UTF-8; name="files.el.diff" Content-Disposition: attachment; filename="files.el.diff" Content-Transfer-Encoding: base64 ZGlmZiAtLWdpdCBhL2xpc3AvZmlsZXMuZWwgYi9saXNwL2ZpbGVzLmVsCmluZGV4IGU4YTVl NTc4M2I2Li40OGEzOWMyNDJiNyAxMDA2NDQKLS0tIGEvbGlzcC9maWxlcy5lbAorKysgYi9s aXNwL2ZpbGVzLmVsCkBAIC0yMTA1LDYgKzIxMDUsMTUgQEAgZmluZC1hbHRlcm5hdGUtZmls ZQogCShyZW5hbWUtYnVmZmVyIG9uYW1lKSkpCiAgICAgKHVubGVzcyAoZXEgKGN1cnJlbnQt YnVmZmVyKSBvYnVmKQogICAgICAgKHdpdGgtY3VycmVudC1idWZmZXIgb2J1ZgorCSh1bmxl c3MgKGdldC1idWZmZXIgb25hbWUpCisJICA7OyBSZXN0b3JlIG9yaWdpbmFsJ3MgYnVmZmVy IG5hbWUgc28gJ2tpbGwtYnVmZmVyJyBjYW4gdXNlIGl0CisJICA7OyB0byBhc3NpZ24gaXRz IGxhc3QgbmFtZSAoQnVnIzY4MjM1KS4KKwkgIChyZW5hbWUtYnVmZmVyIG9uYW1lKSkKKwk7 OyBSZXN0b3JlIG9yaWdpbmFsIGJ1ZmZlcidzIGZpbGUgbmFtZXMgc28gdGhleSBjYW4gYmUg c3RpbGwKKwk7OyB1c2VkIHdoZW4gcmVmZXJlbmNpbmcgdGhlIG5vdyBkZWZ1bmN0IGJ1ZmZl ciAoQnVnIzY4MjM1KS4KKwkoc2V0cSBidWZmZXItZmlsZS1uYW1lIG9maWxlKQorCShzZXRx IGJ1ZmZlci1maWxlLW51bWJlciBvbnVtKQorCShzZXRxIGJ1ZmZlci1maWxlLXRydWVuYW1l IG90cnVlKQogCTs7IFdlIGFscmVhZHkgcmFuIHRoZXNlOyBkb24ndCBydW4gdGhlbSBhZ2Fp bi4KIAkobGV0IChraWxsLWJ1ZmZlci1xdWVyeS1mdW5jdGlvbnMga2lsbC1idWZmZXItaG9v aykKIAkgIChraWxsLWJ1ZmZlciBvYnVmKSkpKSkpCg== --------------aCbGPeLS8MDE1OiolpgkFPMX--