From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Shuguang Sun via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#58133: 29.0.50; Tramp do not parse auth-sources Date: Mon, 10 Oct 2022 21:55:23 +0800 Message-ID: References: Reply-To: Shuguang Sun Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38368"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) To: 58133@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 10 16:01:49 2022 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 1ohtLo-0009qT-R9 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 10 Oct 2022 16:01:49 +0200 Original-Received: from localhost ([::1]:38736 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ohtLn-00042g-Mp for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 10 Oct 2022 10:01:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60110) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ohtK7-0003f7-UA for bug-gnu-emacs@gnu.org; Mon, 10 Oct 2022 10:00:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50410) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ohtK6-00015F-S2 for bug-gnu-emacs@gnu.org; Mon, 10 Oct 2022 10:00:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ohtK6-0005sJ-Nc for bug-gnu-emacs@gnu.org; Mon, 10 Oct 2022 10:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Shuguang Sun Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 10 Oct 2022 14:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58133 X-GNU-PR-Package: emacs X-Debbugs-Original-To: Shuguang Sun via "Bug reports for GNU Emacs, the Swiss army knife of text editors" X-Debbugs-Original-Cc: 58133@debbugs.gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.166541036822510 (code B ref -1); Mon, 10 Oct 2022 14:00:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 Oct 2022 13:59:28 +0000 Original-Received: from localhost ([127.0.0.1]:49488 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ohtJY-0005r0-3c for submit@debbugs.gnu.org; Mon, 10 Oct 2022 09:59:28 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:37930) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ohtJU-0005qr-Ri for submit@debbugs.gnu.org; Mon, 10 Oct 2022 09:59:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53328) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ohtJU-0002u7-Md for bug-gnu-emacs@gnu.org; Mon, 10 Oct 2022 09:59:24 -0400 Original-Received: from out162-62-57-64.mail.qq.com ([162.62.57.64]:56273) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ohtJQ-0000oz-9c for bug-gnu-emacs@gnu.org; Mon, 10 Oct 2022 09:59:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1665410353; bh=yzjrPYKpXp1DXUabkajn99ZCCl4SHHqNtcaAJqisC3E=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=w7zEUwQj+SHzxtYuVQyIgEDzoE/FsMr3cILKe5jdjZ/aw7zE6JCVLcJO7eHDpBWdO 6uKZkjlIsr1fVlZovjDjBxMu6zdTSMgVKa8SVeKNq+/EZqOnkeQlPHWPC9H8yj3oFF 8OmS1eWToGIpgQ/BMaR9dpN+iE0905pdeOCJCim0= Original-Received: from yj190169-SSG ([101.228.235.172]) by newxmesmtplogicsvrsza30.qq.com (NewEsmtp) with SMTP id DF40EAC8; Mon, 10 Oct 2022 21:55:52 +0800 X-QQ-mid: xmsmtpt1665410152tero6j2ju X-QQ-XMAILINFO: MyIXMys/8kCtke6L/YVUrBJ+6ZDV/0+bXi8ACvKBZwOjTmN5BTbf3TmZoyhN6x bQDOEeTwQUak80HkbX7X2ZCsyicudVqMC4bQu+JigzVQjadQbIQYWruSbhyZ5O/L1iNR+R4dfbL8 EAFls1nroK1b0xXm2sRpnHFGQVnVhCsuuHT0QO9eMvW4Y05gYpxBSp44hxRBFJhQgyhpTQDEFJoK 6kovZbTdDAL5pNLAUy3VW2JY24GCLYYFo/uZSwBBcMAnyqxjEvD+b4ynXCwsDcKQI9zIUzjBimA8 0nv0gS//RQ5gylkb9Q/65nPYe31Dggg18uOGkOdZaX/R7ZE/abXKqJX+rk2aUHNyhhBWfUZU6/+f I+s7TYAL0Zqf9nbtuIKCfHblBA70dAHA+5tArYjJECCf3EATj8Eu1IZk81MR2LMc710A+GzJy0ub 0UYRtX0nXkTML0nNPWt5dbiBrqYhrth3fxFXx/iQfwRWxxHVExhn081VfS9UydFmsQoegsvwBzzE F5Fe0na92i+pw6j8dYtJ/pz3dPbIG3e67Fg0V7lapB+T7w+t7VEJ62SYnJgiUxuQQ6RPMwmjDPTw hXyZtHNGRuoZm1gHfM3XANXCH5EGfj0/ORHJISjPkJlr16cQdEMsm6gMjwJr4VlMw2nlafP/e/il YsJ21QOSHyZsrjuzxWQAqzDaVeJZ8HUkuL2/FT2SWLgSbgu5MKnV3bxV90chrd4XIAFqFSXX4JIR s+laXfPNEYrsNcWigHsUbbS/BecotlHg89xo7uP6XpCQhoWDxCvRFGHQa7Cf9TbR/xVC4WiuT7Em 1s3QDBjyxwb4qUsn7z5e4PRplklcL/h1yHRLlGi1 In-Reply-To: (Shuguang Sun via's message of "Wed, 28 Sep 2022 12:19:34 +0800") Original-Message-ID: Received-SPF: pass client-ip=162.62.57.64; envelope-from=shuguang79@qq.com; helo=out162-62-57-64.mail.qq.com X-Spam_score_int: 11 X-Spam_score: 1.1 X-Spam_bar: + X-Spam_report: (1.1 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HELO_DYNAMIC_IPADDR=1.951, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RDNS_DYNAMIC=0.982, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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:245021 Archived-At: 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" 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