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.help Subject: Re: Non file buffers and default-directory Date: Wed, 26 Apr 2023 19:17:54 +0200 Message-ID: <87o7nak1fh.fsf@gmx.de> References: <87edohf3ip.fsf@ledu-giraud.fr> <87zg745p85.fsf@gmx.de> <87y1moe1aa.fsf@ledu-giraud.fr> <87v8hr6gvl.fsf@gmx.de> <874jpa611r.fsf@ledu-giraud.fr> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9642"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Manuel Giraud via Users list for the GNU Emacs text editor To: Manuel Giraud Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 26 19:18:43 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 1primx-0002Hy-6i for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 26 Apr 2023 19:18:43 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1primH-0000mF-W8; Wed, 26 Apr 2023 13:18:02 -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 1primG-0000lm-3G for help-gnu-emacs@gnu.org; Wed, 26 Apr 2023 13:18:00 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1primE-0007I6-3r for help-gnu-emacs@gnu.org; Wed, 26 Apr 2023 13:17:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1682529474; i=michael.albinus@gmx.de; bh=b3vJtP9VOb/x7z+vUAzBUo9yZoaYLg1SiiYswsVew2s=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=d1p8pk0o39dVXb9fufP8d2YilmMn+wMJPHG24LpiPiOPTyIICYTqUn2ok18mPCBym dbyE8hA1AnZOx42ZtDeI2H+h0tpvR3UUVB6ZXVf5LH2/lV0obxQ4nzCgjYftD279iP e9aSOkBe8WX9OBlH+ZOR6Wo83UIVtHEtFh6SREGt3b7HAxwZJpB/FOnKIvCz5W46rN jAJjO7JRkjajCtmqaHU54LwlxNSlOmRJ0ZaIkipEl+b+On6NpT6sYMDI7RaqtqN6LV cxME1twl9QzBmOV/4oaftJGodtIrg9jH0IXIvRf4L6/ju3tqk7GJ1RQ/SQ+3+3mIUg dZkRxydoSoT3g== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from gandalf.gmx.de ([185.89.39.0]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1ML9uK-1pabb62aeI-00I9Ti; Wed, 26 Apr 2023 19:17:54 +0200 In-Reply-To: <874jpa611r.fsf@ledu-giraud.fr> (Manuel Giraud's message of "Thu, 20 Apr 2023 17:11:44 +0200") X-Provags-ID: V03:K1:HVosxunUwN8GPTU26xeVrWD7AcXVxny/3uD8ZIuugXm66iuiiXI pFVdICqzSVbcVngsEP8ET8aq0JLvEcp5mygYTu3y4Nd7vYmsj37hi5uM+EYv/LGAbOmloky Dv3ScFa83BQwYQTrdmZ/pOBxtiMLO9jIMDJYAAfZw1XKkrNmQp0COLh/17k5idr95wXUhVk bQEKkBU0gGITEMPmuXVPA== UI-OutboundReport: notjunk:1;M01:P0:TxwUkLrzv48=;HYCcEKup/TJX9xIwcTg4A1BaOFO 2tofU3E2Ryl7TKm31L55nKZRyE/JMU8ZaO2IgsY6KTfgAOlxnj9mQqoLdPonUteUX/rXy8wy8 zOBnYZ2Q/blaoeR/oSVRYIwWpu77+D/s5dsKLoB7w8yT+pHBrGoWXmVxO6ewyqz7ntSw/ccAk eT3t/ZFnNqhhcoC4yNUytIU4JyDE5e8MlorFcv1rRqh939Xpc8JIOoj9LqbX418GasYtYW9jJ IGRoOaB11n/CDYMGzmYQSX5KzMmjjEStwCcNAadTTbvpTtcoq7NKUGgyvW21wAjpEabIcCvyt HSMM2jpMvej8bCuw0k731D0DGJVzB+pOBim9m35L0KMsQrnrbyECK2XGE6y0E8TXA+y1T9dbB /zIYaWu8Dtllp0yfMEHbw4akzb5eok9oQHAjiUHf4gGVPifFrfkdEalBsI6zW9ydZ4MY5yDqi P2zkpnRNlUo/MuT6f5vIL0MjPsvLHlhnyCBqRI8sno4geZlf6sE4YQ38o/fjhQC31ASukBX8y LLKfmAxscGVM4dp2DHvZSy6ORQsM0p4Jx5JvYtHNHdm1KjxVIFdq6mBsZgzfOiAaSSTUKNpe1 +NcS62SWWTZEANnbyGRx86dXgrbsDrHkWKdFP9tT2o8CuD0q3WJ7IF3/qmhSpiA+B2e0xNz7k K3YWTGV1X0lKCTDjgB4y59murSt7aFEOZpWbHquifzqQGPfalI3v7DICxBPxfsbd+BuNne8Xg 3TDB0t7M5wWfK01Q0JBoyK68+uQAgzHIy14Vs/UvSS3BPGG05TpQpf1IjvNE48jC4m+1WSfr Received-SPF: pass client-ip=212.227.15.15; envelope-from=michael.albinus@gmx.de; helo=mout.gmx.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=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:143402 Archived-At: Manuel Giraud writes: Hi Manuel, >> We could improve my proposal by adding a hook, which tells you which >> buffers to remove. This hook could contain predicates for checking a >> remote buffer-file-name, a remote process, or a romete dired buffer. And >> this might be a new command in parallel to >> tramp-cleanup-all-{buffers,connections}. Whether this is sufficient >> we'll see, but this mechanism could be tuned after first experiences. > > Even if `tramp-cleanup-all-connections' is enough, I think that it is a > good idea. It would keep closing a "remote" non [file|process|dired] > from happening. I've pushed the new command tramp-cleanup-some-buffers. As said, it kills [file|process|dired] buffers. There is also the option tramp-cleanup-some-buffers-hook, which allows you to configure this. Best regards, Michael.