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="14899"; 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 15:57:16 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 1ohtHN-0003ZJ-JP for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 10 Oct 2022 15:57:13 +0200 Original-Received: from localhost ([::1]:53750 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ohtHM-0000dj-7W for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 10 Oct 2022 09:57:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45484) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ohtHC-0000aN-Uz for bug-gnu-emacs@gnu.org; Mon, 10 Oct 2022 09:57:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50406) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ohtHC-0000XN-Mq for bug-gnu-emacs@gnu.org; Mon, 10 Oct 2022 09:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ohtHC-0005mU-5t for bug-gnu-emacs@gnu.org; Mon, 10 Oct 2022 09:57: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 13:57: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 58133-submit@debbugs.gnu.org id=B58133.166541016722203 (code B ref 58133); Mon, 10 Oct 2022 13:57:02 +0000 Original-Received: (at 58133) by debbugs.gnu.org; 10 Oct 2022 13:56:07 +0000 Original-Received: from localhost ([127.0.0.1]:49484 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ohtGJ-0005m3-EI for submit@debbugs.gnu.org; Mon, 10 Oct 2022 09:56:07 -0400 Original-Received: from out162-62-58-216.mail.qq.com ([162.62.58.216]:44783) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ohtGF-0005ci-1U for 58133@debbugs.gnu.org; Mon, 10 Oct 2022 09:56:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1665410154; bh=yzjrPYKpXp1DXUabkajn99ZCCl4SHHqNtcaAJqisC3E=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=sP1slAKBARj7F2wH3YbW/hNH6BuV2fHP/cI08hGGU7Agpq7oYpI7tpFEx4cNGmT3L MSms0dUou/JWFloxTN1FPRCdQUZ028ynSu8wY+Hl/El1uT26LvWyHFdOeti9bEMG7N eb1nWC6lMYYyOyKCAez4Ssbj/SV/1dWJUoSIS+2Q= 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: 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:245020 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