From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#51622: 29.0.50; [PATCH] Abbreviate remote home directories in `abbreviate-file-name' Date: Sat, 06 Nov 2021 10:06:23 +0200 Message-ID: <83v915btds.fsf@gnu.org> References: <5ac0b5f3-302c-2f96-771c-8d38088aa573@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18640"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 51622@debbugs.gnu.org To: Jim Porter Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 06 09:07:19 2021 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 1mjGjP-0004hw-Bk for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 06 Nov 2021 09:07:19 +0100 Original-Received: from localhost ([::1]:46114 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mjGjO-00018Y-5d for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 06 Nov 2021 04:07:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58534) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mjGj8-00018M-Ku for bug-gnu-emacs@gnu.org; Sat, 06 Nov 2021 04:07:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36723) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mjGj8-0002sA-BM for bug-gnu-emacs@gnu.org; Sat, 06 Nov 2021 04:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mjGj8-0006Ri-6X for bug-gnu-emacs@gnu.org; Sat, 06 Nov 2021 04:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 Nov 2021 08:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51622 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 51622-submit@debbugs.gnu.org id=B51622.163618600724755 (code B ref 51622); Sat, 06 Nov 2021 08:07:02 +0000 Original-Received: (at 51622) by debbugs.gnu.org; 6 Nov 2021 08:06:47 +0000 Original-Received: from localhost ([127.0.0.1]:48269 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mjGit-0006RD-Bk for submit@debbugs.gnu.org; Sat, 06 Nov 2021 04:06:47 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:32974) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mjGis-0006R1-AH for 51622@debbugs.gnu.org; Sat, 06 Nov 2021 04:06:46 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:37436) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mjGil-0002FZ-Jn; Sat, 06 Nov 2021 04:06:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=CJNzIAtl2FNiBY1VqKdPa9VbKR/fyvPT+OnqXcbloIo=; b=i+3hun6+24sN sKTnLEjP09PH1bN9WTTbQX9dOBva2OQHtPa8UZU1dO1q29gh53DUqITA663G/QVp0erE6408CXwWk 9+D4krgqezqL5T4Bx3/L4ZwO3woQlmKIJx9tNiwFSmzlCUbktxh0zujL72Ok3oBlVs61+gUgtLgpS E7NWFVbb8yc9Z5axA687rH51w9rwn4JuibKq9Cm2nMO9jblxw62T0QSPePXfKegigVgOhcOtejCnm 4eYdgw0DWqKRjsWxhB+p1mn0Mg9MDKrVN/VZN5BwDexyjLrFqUp1rOUSLQoOUk9l1AvQ2crvGlBSc 53yU4eesaTZgQhI1eH1KiQ==; Original-Received: from [87.69.77.57] (port=2693 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mjGik-0005Ev-50; Sat, 06 Nov 2021 04:06:39 -0400 In-Reply-To: <5ac0b5f3-302c-2f96-771c-8d38088aa573@gmail.com> (message from Jim Porter on Fri, 5 Nov 2021 20:44:44 -0700) 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:219082 Archived-At: > From: Jim Porter > Date: Fri, 5 Nov 2021 20:44:44 -0700 > > Second, I removed the caching of the abbreviated home dir. Since adding > TRAMP support means there are multiple home dirs (one per host), keeping > the caching would have been fairly complex, and it's already the source > of potential bugs (e.g. when temporarily setting HOME to something > else). I did some benchmarking on this (see attached), and while it is > indeed slower without the caching, I don't think it's worth keeping the > caching around. If some user never uses Tramp, this removal will be a net loss for that user. So I think we should have this customizable. Or maybe even better: as long as Tramp is not used, keep the cache, and only stop updating it when Tramp is being used.