From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Manuel Giraud via Users list for the GNU Emacs text editor Newsgroups: gmane.emacs.help Subject: Re: Non file buffers and default-directory Date: Fri, 21 Apr 2023 12:29:20 +0200 Message-ID: <87pm7xplz3.fsf@ledu-giraud.fr> References: <87edohf3ip.fsf@ledu-giraud.fr> <87zg745p85.fsf@gmx.de> <87y1moe1aa.fsf@ledu-giraud.fr> <87v8hr6gvl.fsf@gmx.de> <874jpa611r.fsf@ledu-giraud.fr> <87v8hprb5w.fsf@mbork.pl> <87zg714qb8.fsf@gmx.de> Reply-To: Manuel Giraud Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35430"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Marcin Borkowski , Manuel Giraud via Users list for the GNU Emacs text editor To: Michael Albinus Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 21 12:29:51 2023 Return-path: Envelope-to: geh-help-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 1ppo1W-00090C-Gi for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 21 Apr 2023 12:29:50 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ppo1A-000528-Iz; Fri, 21 Apr 2023 06:29:28 -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 1ppo19-000520-6J for help-gnu-emacs@gnu.org; Fri, 21 Apr 2023 06:29:27 -0400 Original-Received: from ledu-giraud.fr ([51.159.28.247]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ppo17-0004p5-BM for help-gnu-emacs@gnu.org; Fri, 21 Apr 2023 06:29:26 -0400 DKIM-Signature: v=1; a=ed25519-sha256; c=simple/simple; s=ed25519; bh=pciiNFm0 b1OoA0PX7Metx3dHEC2ZqC7bAMKqXwJfHps=; h=date:references:in-reply-to: subject:cc:to:from; d=ledu-giraud.fr; b=Po57JtzpW4R5iZjvhspj4/zdqMyvLR r04mgklZpxtulhGt618ODPrjvsurHxbQnLapsB6TOUh2h1MaG7ze/DDg== DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=pciiNFm0b1OoA0PX 7Metx3dHEC2ZqC7bAMKqXwJfHps=; h=date:references:in-reply-to:subject: cc:to:from; d=ledu-giraud.fr; b=LBCRBmnt1DoGapfGdyntn658hg8Co4uIvMERdz 2tspwRi/6xGNyqdfCXUbOmmYN5uUswz0V7DJfs9g50e+3gg4VzBtBbrCyupportKfy1pWO 7dDgBJwmYbWLmj2Tjgikg9oRFXYl1sk0VlOac8Qgec4K+WnyrN0+8NiiCUhHgPJ4gcdXu1 i5Hs2ILiwDweOrWhrkG/MnI0ql5Q96GNRi3vSLVRf3KD9IEYpqRhx2VYFfNVfVtGTW/kmF W3Qsa6PVg+n033MGj9ACCeUMFzs2pWdezbdZLDvD08xnvDI00qLRUVXCkHOxfMj1fE2k4D jVGfpEeFCtNug3ES4UMBNADA== Original-Received: from computer ( [10.1.1.1]) by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id 4d54d72b (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Fri, 21 Apr 2023 12:29:22 +0200 (CEST) In-Reply-To: <87zg714qb8.fsf@gmx.de> (Michael Albinus's message of "Fri, 21 Apr 2023 10:01:15 +0200") Received-SPF: pass client-ip=51.159.28.247; envelope-from=manuel@ledu-giraud.fr; helo=ledu-giraud.fr X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:143323 Archived-At: Michael Albinus writes: > Marcin Borkowski writes: > > Hi Marcin, > >> Nope. I was too lazy to look for the reason (so thanks for finding that >> out for me!), since it didn't happen very often, but it's /very/ >> frustrating when it happens - basically, I can't do anything and my >> Emacs is blocked (especially if I TRAMPed to a machine in my office >> I don't have access to at home, for instance). > > For this very use case, Tramp offers the commands tramp-rename-files and > tramp-rename-these-files. See (info "(tramp) Renaming remote files") > > Yes, I know, almost nobody reads manuals. But perhaps you give it a > try? Wow, I guess I should have read the manual :-) This seems powerful but maybe a little bit convoluted. And most of the time, I do not need the remote files elsewhere (i.e. they are on this remote host for a reason after all). And then there is the issue of getting those files =C2=AB=C2= =A0back=C2=A0=C2=BB to the remote host. So I think I'll stick to `tramp-cleanup-all-connections' but it is impressive to see what TRAMP could do. Best regards, --=20 Manuel Giraud