GNU bug report logs - #58133
29.0.50; Tramp do not parse auth-sources

Previous Next

Package: emacs;

Reported by: Shuguang Sun <shuguang79 <at> qq.com>

Date: Wed, 28 Sep 2022 04:23:02 UTC

Severity: normal

Found in version 29.0.50

Fixed in version 29.1

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

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 58133 in the body.
You can then email your comments to 58133 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#58133; Package emacs. (Wed, 28 Sep 2022 04:23:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Shuguang Sun <shuguang79 <at> qq.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 28 Sep 2022 04:23:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Shuguang Sun <shuguang79 <at> qq.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 29.0.50; Tramp do not parse auth-sources
Date: Wed, 28 Sep 2022 12:19:34 +0800
Dear all,

From this August, tramp seems not to parse the auth-sources (.authinfo.gpg).

When I press `C-x C-f /plink:`, there is no completion provided. However
`(tramp-parse-auth-sources "plink")` does as expected and provides a
list of user and url cons from auth-sources. I add some print stuffs to
the relevant tramp functions an find out that it seems the step about
`tramp-parse-auth-sources` is not executed.

By the way, Emacs compile `cl-loaddefs.el` and `tramp-loaddefs.el` at
the first time relevant function be called.

``` Compiling
c:/msys64/mingw64/share/emacs/29.0.50/lisp/emacs-lisp/cl-loaddefs.el...
Compiling
c:/msys64/mingw64/share/emacs/29.0.50/lisp/net/tramp-loaddefs.el...
```

Best Regards,
Shuguang Sun

In GNU Emacs 29.0.50 (build 1, x86_64-w64-mingw32) of 2022-09-26 built
Repository revision: a386833503430732a5c9bed8dbc5c3073f72b5ab
Repository branch: master
Windowing system distributor 'Microsoft Corp.', version 10.0.19044
System Description: Microsoft Windows 10 Pro (v10.0.2009.19044.2006)

Configured using:
 'configure --without-pop --with-native-image-api
 --with-native-compilation --without-compress-install
 '--program-transform-name=s/^ctags$/ctags.emacs/''

Configured features:
ACL DBUS GIF GMP GNUTLS HARFBUZZ JPEG JSON LCMS2 LIBXML2 MODULES
NATIVE_COMP NOTIFY W32NOTIFY PDUMPER PNG RSVG SOUND SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS WEBP XPM ZLIB

Important settings:
  value of $LANG: CHS
  locale-coding-system: cp936




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#58133; Package emacs. (Mon, 10 Oct 2022 13:57:02 GMT) Full text and rfc822 format available.

Message #8 received at 58133 <at> debbugs.gnu.org (full text, mbox):

From: Shuguang Sun <shuguang79 <at> qq.com>
To: Shuguang Sun via "Bug reports for GNU Emacs, the Swiss army knife of
 text editors" <bug-gnu-emacs <at> gnu.org>
Cc: 58133 <at> debbugs.gnu.org
Subject: Re: bug#58133: 29.0.50; Tramp do not parse auth-sources
Date: Mon, 10 Oct 2022 21:55:23 +0800
Dear all,

This happened from the commit be2e6228f8c9c57d2809bdd953d065ebfc63d4c4 (Aug 26) in which the
`tramp-completion-file-name-handler` becames:

"\\`\\(?:\\`[[:alpha:]]:\\)?\\(?:^/\\)\\(?:\\(?:\\(?5:-\\|[[:alnum:]]\\{2,\\}\\)\\(?::\\)\\(?:\\(?:\\(?6:[^/:|[:blank:]]+\\)\\(?:@\\)\\)?\\(?:\\(?7:\\(?:[%._[:alnum:]-]+\\|\\(?:\\[\\)\\(?:\\(?:[[:alnum:]]*:\\)+[.[:alnum:]]*\\)?\\(?:]\\)\\)\\(?:\\(?:#\\)\\(?:[[:digit:]]+\\)\\)?\\)\\)?\\)\\)\\(?:|\\)\\)*\\(?:\\(?:-\\|[[:alnum:]]+\\)\\(?:\\(?::\\)\\(?:[%._[:alnum:]-]+\\)?\\)?\\)?\\'"

Before that the `tramp-completion-file-name-handler` (b7e867b841f47dcff3aeaef9b5608a237386ce70, Aug 23) is

"\\`\\(?:[[:alpha:]]:\\)?/\\(\\([^/|:]+:[^/|:]*|\\)*\\(-\\|[^/|:]\\{2,\\}\\)\\(:[^/|:]*\\)?\\)?\\'"

which works. And if I run

```
(add-to-list
 'file-name-handler-alist
 (cons "\\`\\(?:[[:alpha:]]:\\)?/\\(\\([^/|:]+:[^/|:]*|\\)*\\(-\\|[^/|:]\\{2,\\}\\)\\(:[^/|:]*\\)?\\)?\\'"  #'tramp-completion-file-name-handler))
```

then tramp can make completion, e.g., when I do `find-file` and input
"/", the tramp-methods will come to the completion list.


Shuguang Sun via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org> writes:

> Dear all,
>
> From this August, tramp seems not to parse the auth-sources (.authinfo.gpg).
>
> When I press `C-x C-f /plink:`, there is no completion provided. However
> `(tramp-parse-auth-sources "plink")` does as expected and provides a
> list of user and url cons from auth-sources. I add some print stuffs to
> the relevant tramp functions an find out that it seems the step about
> `tramp-parse-auth-sources` is not executed.
>
> By the way, Emacs compile `cl-loaddefs.el` and `tramp-loaddefs.el` at
> the first time relevant function be called.
>
> ``` Compiling
> c:/msys64/mingw64/share/emacs/29.0.50/lisp/emacs-lisp/cl-loaddefs.el...
> Compiling
> c:/msys64/mingw64/share/emacs/29.0.50/lisp/net/tramp-loaddefs.el...
> ```
>
> Best Regards,
> Shuguang Sun
>
> In GNU Emacs 29.0.50 (build 1, x86_64-w64-mingw32) of 2022-09-26 built
> Repository revision: a386833503430732a5c9bed8dbc5c3073f72b5ab
> Repository branch: master
> Windowing system distributor 'Microsoft Corp.', version 10.0.19044
> System Description: Microsoft Windows 10 Pro (v10.0.2009.19044.2006)
>
> Configured using:
>  'configure --without-pop --with-native-image-api
>  --with-native-compilation --without-compress-install
>  '--program-transform-name=s/^ctags$/ctags.emacs/''
>
> Configured features:
> ACL DBUS GIF GMP GNUTLS HARFBUZZ JPEG JSON LCMS2 LIBXML2 MODULES
> NATIVE_COMP NOTIFY W32NOTIFY PDUMPER PNG RSVG SOUND SQLITE3 THREADS TIFF
> TOOLKIT_SCROLL_BARS WEBP XPM ZLIB
>
> Important settings:
>   value of $LANG: CHS
>   locale-coding-system: cp936
>
>
>
>

-- 
Best Regards
Shuguang Sun




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#58133; Package emacs. (Mon, 10 Oct 2022 14:00:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#58133; Package emacs. (Mon, 10 Oct 2022 20:04:01 GMT) Full text and rfc822 format available.

Message #14 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Shuguang Sun via "Bug reports for GNU Emacs, the Swiss army knife of
 text editors" <bug-gnu-emacs <at> gnu.org>
Cc: 58133 <at> debbugs.gnu.org, Shuguang Sun <shuguang79 <at> qq.com>
Subject: Re: bug#58133: 29.0.50; Tramp do not parse auth-sources
Date: Mon, 10 Oct 2022 22:03:26 +0200
Shuguang Sun via "Bug reports for GNU Emacs, the Swiss army knife of
text editors" <bug-gnu-emacs <at> gnu.org> writes:

> Dear all,

Hi,

> This happened from the commit be2e6228f8c9c57d2809bdd953d065ebfc63d4c4 (Aug 26) in which the
> `tramp-completion-file-name-handler` becames:
>
> "\\`\\(?:\\`[[:alpha:]]:\\)?\\(?:^/\\)\\(?:\\(?:\\(?5:-\\|[[:alnum:]]\\{2,\\}\\)\\(?::\\)\\(?:\\(?:\\(?6:[^/:|[:blank:]]+\\)\\(?:@\\)\\)?\\(?:\\(?7:\\(?:[%._[:alnum:]-]+\\|\\(?:\\[\\)\\(?:\\(?:[[:alnum:]]*:\\)+[.[:alnum:]]*\\)?\\(?:]\\)\\)\\(?:\\(?:#\\)\\(?:[[:digit:]]+\\)\\)?\\)\\)?\\)\\)\\(?:|\\)\\)*\\(?:\\(?:-\\|[[:alnum:]]+\\)\\(?:\\(?::\\)\\(?:[%._[:alnum:]-]+\\)?\\)?\\)?\\'"

Fixed now in master. Could you, pls, check?

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#58133; Package emacs. (Mon, 10 Oct 2022 20:04:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#58133; Package emacs. (Tue, 11 Oct 2022 08:39:02 GMT) Full text and rfc822 format available.

Message #20 received at 58133 <at> debbugs.gnu.org (full text, mbox):

From: Shuguang Sun <shuguang79 <at> qq.com>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 58133 <at> debbugs.gnu.org, "Shuguang Sun via Bug reports for GNU Emacs,
 the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
Subject: Re: bug#58133: 29.0.50; Tramp do not parse auth-sources
Date: Tue, 11 Oct 2022 16:37:56 +0800
Michael Albinus <michael.albinus <at> gmx.de> writes:

> Hi,
>
>> This happened from the commit be2e6228f8c9c57d2809bdd953d065ebfc63d4c4 (Aug 26) in which the
>> `tramp-completion-file-name-handler` becames:
>>
>> "\\`\\(?:\\`[[:alpha:]]:\\)?\\(?:^/\\)\\(?:\\(?:\\(?5:-\\|[[:alnum:]]\\{2,\\}\\)\\(?::\\)\\(?:\\(?:\\(?6:[^/:|[:blank:]]+\\)\\(?:@\\)\\)?\\(?:\\(?7:\\(?:[%._[:alnum:]-]+\\|\\(?:\\[\\)\\(?:\\(?:[[:alnum:]]*:\\)+[.[:alnum:]]*\\)?\\(?:]\\)\\)\\(?:\\(?:#\\)\\(?:[[:digit:]]+\\)\\)?\\)\\)?\\)\\)\\(?:|\\)\\)*\\(?:\\(?:-\\|[[:alnum:]]+\\)\\(?:\\(?::\\)\\(?:[%._[:alnum:]-]+\\)?\\)?\\)?\\'"
>
> Fixed now in master. Could you, pls, check?
>
> Best regards, Michael.

Thanks. It works.

-- 
Best Regards
Shuguang Sun




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#58133; Package emacs. (Tue, 11 Oct 2022 08:40:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#58133; Package emacs. (Tue, 11 Oct 2022 08:43:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#58133; Package emacs. (Tue, 11 Oct 2022 11:28:02 GMT) Full text and rfc822 format available.

Message #29 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Shuguang Sun <shuguang79 <at> qq.com>
Cc: "Shuguang Sun via Bug reports for GNU Emacs, the Swiss army knife of
 text editors" <bug-gnu-emacs <at> gnu.org>, 58133-done <at> debbugs.gnu.org
Subject: Re: bug#58133: 29.0.50; Tramp do not parse auth-sources
Date: Tue, 11 Oct 2022 13:27:23 +0200
Version: 29.1

Shuguang Sun <shuguang79 <at> qq.com> writes:

Hi,

>> Fixed now in master. Could you, pls, check?
>
> Thanks. It works.

Thanks for the confirmation, I'm closing the bug.

Best regards, Michael.




Reply sent to Michael Albinus <michael.albinus <at> gmx.de>:
You have taken responsibility. (Tue, 11 Oct 2022 11:28:02 GMT) Full text and rfc822 format available.

Notification sent to Shuguang Sun <shuguang79 <at> qq.com>:
bug acknowledged by developer. (Tue, 11 Oct 2022 11:28:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 08 Nov 2022 12:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 162 days ago.

Previous Next


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