From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alexander Shukaev Newsgroups: gmane.emacs.bugs Subject: bug#27315: Regression: `abbreviate-file-name' and `tramp-file-name-handler' Date: Sat, 10 Jun 2017 21:00:22 +0200 Message-ID: References: <88de418a-0e23-9ff7-5cea-cd2add2dab8c@Alexander.Shukaev.name> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1497121273 21156 195.159.176.226 (10 Jun 2017 19:01:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 10 Jun 2017 19:01:13 +0000 (UTC) To: 27315@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 10 21:01:07 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dJldC-00055S-KC for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Jun 2017 21:01:06 +0200 Original-Received: from localhost ([::1]:59942 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dJldH-0003Kj-Fg for geb-bug-gnu-emacs@m.gmane.org; Sat, 10 Jun 2017 15:01:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54511) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dJldB-0003It-Ox for bug-gnu-emacs@gnu.org; Sat, 10 Jun 2017 15:01:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dJld8-0004Eq-N8 for bug-gnu-emacs@gnu.org; Sat, 10 Jun 2017 15:01:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36676) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dJld8-0004Em-Jj for bug-gnu-emacs@gnu.org; Sat, 10 Jun 2017 15:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dJld8-0000Df-B3 for bug-gnu-emacs@gnu.org; Sat, 10 Jun 2017 15:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alexander Shukaev Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 10 Jun 2017 19:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 27315 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.1497121239803 (code B ref -1); Sat, 10 Jun 2017 19:01:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 Jun 2017 19:00:39 +0000 Original-Received: from localhost ([127.0.0.1]:39353 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dJlck-0000Ct-S2 for submit@debbugs.gnu.org; Sat, 10 Jun 2017 15:00:39 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:35194) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dJlci-0000Cg-IW for submit@debbugs.gnu.org; Sat, 10 Jun 2017 15:00:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dJlcc-00049F-B8 for submit@debbugs.gnu.org; Sat, 10 Jun 2017 15:00:31 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:45794) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dJlcc-00049B-7C for submit@debbugs.gnu.org; Sat, 10 Jun 2017 15:00:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54397) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dJlcb-0003CA-5j for bug-gnu-emacs@gnu.org; Sat, 10 Jun 2017 15:00:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dJlcY-00048h-3n for bug-gnu-emacs@gnu.org; Sat, 10 Jun 2017 15:00:29 -0400 Original-Received: from relay2-d.mail.gandi.net ([217.70.183.194]:43544) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dJlcX-00048S-Sn for bug-gnu-emacs@gnu.org; Sat, 10 Jun 2017 15:00:26 -0400 Original-Received: from mfilter18-d.gandi.net (mfilter18-d.gandi.net [217.70.178.146]) by relay2-d.mail.gandi.net (Postfix) with ESMTP id 2AA8AC5A5C for ; Sat, 10 Jun 2017 21:00:24 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter18-d.gandi.net Original-Received: from relay2-d.mail.gandi.net ([IPv6:::ffff:217.70.183.194]) by mfilter18-d.gandi.net (mfilter18-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id h6IFFkIH3wP8 for ; Sat, 10 Jun 2017 21:00:22 +0200 (CEST) X-Originating-IP: 88.68.162.61 Original-Received: from [192.168.3.117] (dslb-088-068-162-061.088.068.pools.vodafone-ip.de [88.68.162.61]) (Authenticated sender: forum@alexander.shukaev.name) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 98E16C5A43 for ; Sat, 10 Jun 2017 21:00:22 +0200 (CEST) In-Reply-To: <88de418a-0e23-9ff7-5cea-cd2add2dab8c@Alexander.Shukaev.name> Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:133452 Archived-At: Hello, In Emacs 26 series, I notice regression that has to do with `abbreviate-file-name' and `tramp-file-name-handler'. Here is how to reproduce it: $ emacs -Q Paste the following to the "*scratch*" buffer: (setq-default frame-title-format '((:eval (list (user-login-name) "@" (system-name) ":" (abbreviate-file-name (or (buffer-file-name) (file-name-as-directory default-directory))))))) M-x eval-buffer M-x find-file /sudo:root@localhost:~/hang will result in hanging with the "Sending password" message in minibuffer. I did not debug this, but I know for sure how to workaround this and, therefore, can provide a clue how to fix it. That is $ emacs -Q Paste the following to the "*scratch*" buffer: (setq-default frame-title-format '((:eval (list (user-login-name) "@" (system-name) ":" (let (file-name-handler-alist) (abbreviate-file-name (or (buffer-file-name) (file-name-as-directory default-directory)))))))) M-x eval-buffer M-x find-file /sudo:root@localhost:~/yuppie opens the file just fine. It means that somehow since Emacs 26 `abbreviate-file-name' either triggers `tramp-file-name-handler' or it did so before but this time (I heard that the TRAMP syntax has changed) it might be bugged. Michael, could you have a look at this? Thanks! Kind regards, Alexander