From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#57800: TRAMP insert-file-contents now fails for regions Date: Sat, 01 Oct 2022 17:18:56 +0200 Message-ID: <87czbbfu73.fsf@gmx.de> References: <87fsgt4ynq.fsf@gnus.org> <875yhp4xyf.fsf@gnus.org> <87h719j5g6.fsf@gmx.de> <87sfkry80u.fsf@gnus.org> <87o7uyihq6.fsf@gnus.org> <87v8p6hyg4.fsf@gmx.de> <87r0zsiu5h.fsf@gmx.de> <87mtagisnt.fsf@gmx.de> <87h70ofxck.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29518"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Lars Ingebrigtsen , 57800@debbugs.gnu.org To: Paul Pogonyshev Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 01 17:20:19 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 1oeeHr-0007Zx-UG for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 01 Oct 2022 17:20:19 +0200 Original-Received: from localhost ([::1]:39568 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oeeHq-000270-UA for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 01 Oct 2022 11:20:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41146) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oeeHa-00026V-CK for bug-gnu-emacs@gnu.org; Sat, 01 Oct 2022 11:20:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46491) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oeeHa-0005NS-28 for bug-gnu-emacs@gnu.org; Sat, 01 Oct 2022 11:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oeeHZ-0002Es-Ne for bug-gnu-emacs@gnu.org; Sat, 01 Oct 2022 11:20:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 01 Oct 2022 15:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57800 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 57800-submit@debbugs.gnu.org id=B57800.16646375488540 (code B ref 57800); Sat, 01 Oct 2022 15:20:01 +0000 Original-Received: (at 57800) by debbugs.gnu.org; 1 Oct 2022 15:19:08 +0000 Original-Received: from localhost ([127.0.0.1]:45569 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oeeGh-0002Dg-Vo for submit@debbugs.gnu.org; Sat, 01 Oct 2022 11:19:08 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:57939) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oeeGg-0002DC-N8 for 57800@debbugs.gnu.org; Sat, 01 Oct 2022 11:19:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1664637538; bh=ubsfvV/35OQCGo58GM+gMpgXkfIKaMPqHfLYV3uPUzQ=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=T67hZBiKdAl7VLy1nEEvyTsBzftcjyz8tProamYF+Epx8RS3mDpSg/rKjnmC2buXF Gc6F7nl43tIAmFOsRaNESnn0p/UMXOVWJ2HIFkLjKlDfoeBctbxCkedzYQqB6SZhpE T3jHG91e9udG0cgBWpIGi67vC6YcIqB9u1lnBqV4= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([213.220.148.109]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Mk0NU-1p30ig02Zc-00kLFk; Sat, 01 Oct 2022 17:18:58 +0200 In-Reply-To: (Paul Pogonyshev's message of "Fri, 30 Sep 2022 22:48:29 +0200") X-Provags-ID: V03:K1:qjPeUMN4gERS0aUXUYsIGNljaixIO7pw/68IHIbsfPNVWd1unHs O2b48zP4Fgq60Os8PC2wgxItTzgenVpQCeBsNaKpFDphoDE/yjL17YfLSyKHrchJgjo/Nzn iJXeRuUPnjvNZSSg0WS07SqX6jvo8uIhWMGknR7iUFX8FOU8cU06rTr6Ium+fv8x9CjtEl1 Oz7fm5YyU5r4bgEXpAeBw== X-UI-Out-Filterresults: notjunk:1;V03:K0:fhht4iu6lDA=:piKKM6lmDgrSMifAsg8bQU +tmp4BuNWCAJNo2LdBHVrv25QZs+zYAeXN0R3zxUhOii01KtUdfsMgmZMzZA1gPQOkL7zkKWy RQo7fpI59Dzpw5JOG3b5qjgJoJ55NjE4dW5uFSv5qalzKRYfokPPTuqAwHizlnAFdA1crGEL8 gZdJ2sP6dXhfHitkGFXVrmVmswYodlNXkgn7Nt9MBKxjLJpV/CfY/x+tF+E0UyNm9gq4meoX9 PrlVusYCcqMZltkLQzIwdoEbuCoaWM4ZBKbUwrNUxuyCJZj5Bne4N4qVHfq3dj6WeAie/FltG 3qB4axLQbhcXO00KpSsw91wwSCGcT9mefDYsEYtWQVEwbQtdb58ADWuB9C5rvqDc51MYGtKis oxs/uyIC2uR1STW9cxnHeR8KAEZYcXVaJCHiV2avbKUCOJuGz6V3xuiayGF7xEkEX5eW8qDXQ kE9Dh2HmAQPxgbq8BSWt5M/sOKNlzIMhmr/ZxYJuaiaB7MIOmm3I2nZp3ASLOMPKWqSiSm/sa mXPYwtQE5Midn0mpMPkzqidmMCwliN4oMdFrMIFT55m6IVEX1T6NFfDsbm3VJHLHnDEtYZszZ wlafI3UGWRE3QRHgyVHwuQrYfRdkDnan1Y51+YlriH+Ai1V9kGoYE6tCIADqNTOddv6sd3IGB Z6H78fBSxMmBLcpdEM8aLZtFzChK8jXd2qWkhd4dJTGbNmhqYVLFehYkscgn5OXmU/gOuqjb4 Nbjhtq1IF92B5m28qhtT8O97x6x0kCKsxK5lmvoD3p8Qje4BPWog1rgw7D6HJrCIT60dAWEj 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:244148 Archived-At: Paul Pogonyshev writes: Hi Paul, > Thanks. I suggest also adding a simple "version" to the cache. > Whenever you make an incompatible change in the future, bump this > version. And also make Tramp automatically discard all cached values > when they come from a different (earlier or even a later) version. > Otherwise something like this will certainly happen again sooner or > later and will cost both the person bumping into it and you or whoever > responds to the bugreport a lot of time again. That's a good idea, thanks! I've pushed a respective change to master. However, the cache doesn't keep its own version, it uses just the Tramp version for check. Using an own cache version is error-prone, there are good chances to forget to change it when needed. At least *I* would forget it always, as far as I know me. > Paul Best regards, Michael.