GNU bug report logs - #27315
Regression: `abbreviate-file-name' and `tramp-file-name-handler'

Previous Next

Package: emacs;

Reported by: Alexander Shukaev <emacs <at> Alexander.Shukaev.name>

Date: Sat, 10 Jun 2017 19:01:02 UTC

Severity: normal

Tags: fixed

Fixed in version 26.1

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Alexander Shukaev <emacs <at> Alexander.Shukaev.name>
Subject: bug#27315: closed (Re: bug#27315: Regression: `abbreviate-file-name'
 and `tramp-file-name-handler')
Date: Fri, 16 Jun 2017 08:40:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#27315: Regression: `abbreviate-file-name' and `tramp-file-name-handler'

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 27315 <at> debbugs.gnu.org.

-- 
27315: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=27315
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Michael Albinus <michael.albinus <at> gmx.de>
To: Alexander Shukaev <emacs <at> Alexander.Shukaev.name>
Cc: 27315-done <at> debbugs.gnu.org
Subject: Re: bug#27315: Regression: `abbreviate-file-name' and
 `tramp-file-name-handler'
Date: Fri, 16 Jun 2017 10:39:21 +0200
Alexander Shukaev <emacs <at> Alexander.Shukaev.name> writes:

> Hi Michael,

Hi Alexander,

> Confirmed, works very well.

Thanks for confirmation, I'm closing the bug.

> Kind regards,
> Alexander

Best regards, Michael.

[Message part 3 (message/rfc822, inline)]
From: Alexander Shukaev <emacs <at> Alexander.Shukaev.name>
To: bug-gnu-emacs <at> gnu.org
Subject: Regression: `abbreviate-file-name' and `tramp-file-name-handler'
Date: Sat, 10 Jun 2017 21:00:22 +0200
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 <at> 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 <at> 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



This bug report was last modified 7 years and 341 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.