From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Jimmy Yuen Ho Wong Newsgroups: gmane.emacs.bugs Subject: bug#39389: 27.0.60; A couple of bugs messing with minibuffer completion of /sudo:: Date: Sun, 02 Feb 2020 14:50:58 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="69807"; mail-complaints-to="usenet@ciao.gmane.io" To: 39389@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 02 15:52:16 2020 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 1iyGbg-000Hxw-7N for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 02 Feb 2020 15:52:16 +0100 Original-Received: from localhost ([::1]:56918 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iyGbe-0005Zp-TU for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 02 Feb 2020 09:52:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37859) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iyGbU-0005Zh-Jb for bug-gnu-emacs@gnu.org; Sun, 02 Feb 2020 09:52:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iyGbS-00063M-DR for bug-gnu-emacs@gnu.org; Sun, 02 Feb 2020 09:52:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33740) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iyGbS-00063H-9G for bug-gnu-emacs@gnu.org; Sun, 02 Feb 2020 09:52:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iyGbS-0003Wq-87 for bug-gnu-emacs@gnu.org; Sun, 02 Feb 2020 09:52:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jimmy Yuen Ho Wong Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 02 Feb 2020 14:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 39389 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.158065506913492 (code B ref -1); Sun, 02 Feb 2020 14:52:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Feb 2020 14:51:09 +0000 Original-Received: from localhost ([127.0.0.1]:39713 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iyGaa-0003VW-Fr for submit@debbugs.gnu.org; Sun, 02 Feb 2020 09:51:09 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:43854) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iyGaY-0003VP-Ol for submit@debbugs.gnu.org; Sun, 02 Feb 2020 09:51:07 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37760) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iyGaW-0005Hh-Jx for bug-gnu-emacs@gnu.org; Sun, 02 Feb 2020 09:51:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iyGaU-0005u9-H6 for bug-gnu-emacs@gnu.org; Sun, 02 Feb 2020 09:51:04 -0500 Original-Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]:36900) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iyGaU-0005tz-9Y for bug-gnu-emacs@gnu.org; Sun, 02 Feb 2020 09:51:02 -0500 Original-Received: by mail-wr1-x42f.google.com with SMTP id w15so14695648wru.4 for ; Sun, 02 Feb 2020 06:51:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=I5tcQrHzu4nrK+I2HfS2uZ48ETz6N26oIc4BZNxg0dE=; b=hVPC4ZeeuJ7ktP0aKxZkVLFchfexOBPIGT0aQfJAQYVsyUOlNwah04SxA7x3+qytZu yO2Lk7p6GdCRjCJvReLhIlM0A5rYlmsfdz/RUvzhEYPAWiYC5TF4MaQHQgnEz11Lt6s8 8iEjFqb/V6ONZEnCem3rTWWt8XyA84TAxRPQeb+WKoSL97NgomD28qFlEs8M0KF7Pss9 Jh+N4AD2prqMnBUw9NmEUtqo2jHAfAwXazHqZRAskXcWahVcp5Pk4tH1/K7AN0u4Dao7 n93HRjoCIjuV4krTrBfYW43Ih/8TixQaWKTiHPAPYEIcebcIYvwjF+hAZYay9k3jO2JY bfVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=I5tcQrHzu4nrK+I2HfS2uZ48ETz6N26oIc4BZNxg0dE=; b=bT7G4ehCsXzuVLfqcQf7l7sHRzsCqasyzuubUO7C3v7AftbIBazxNv0bS0csf0I27i /C8hDm2YClMIlf+QhIaztheDZBYAL2qBAZB/8oF++KTm15xLO3Gq7L/w9ak7bw16StTU nVDDiaZvrGljzGErpGuVOEk+Rxu7tuL9tuPzK4UZS5ffg4gtnOsFrpAyUUABB8hMDs1s x/Hs/jN1nph0/OvBQ2yPgc38iTLU6KP74hNzj7UZ6pPWct7YCoPrRgbvQaFPbQncMFQq IIJHZ79zBOPM0oI1fEGXawfmrbTUzK46xIkHMPcaUvAIpfV4C/CS3eQFiorF0Z35vGv1 mxkw== X-Gm-Message-State: APjAAAXR3NcmExbyr2CSZBHOCWrQABrxvF1o3pJb9a5Axr+L0JoBslDq MYfVkf+GAtqU7GyNn7qSsegnmTd8x9s= X-Google-Smtp-Source: APXvYqyDJxPKsjysiG2C1fA7uqdJ2P4GY+vU2G7UxHfHRiq8R2QRStI9/4FonjabiAF8W0DaW96Zrg== X-Received: by 2002:a5d:540f:: with SMTP id g15mr10024524wrv.86.1580655060472; Sun, 02 Feb 2020 06:51:00 -0800 (PST) Original-Received: from MobileCat.local ([188.214.11.130]) by smtp.gmail.com with ESMTPSA id 21sm19190032wmo.8.2020.02.02.06.50.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Feb 2020 06:50:59 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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: 209.51.188.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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:175591 Archived-At: Bug 1: If `ido-enable-tramp-completion` is set to `nil`, it's impossible to open a file as root with `ido-find-file`. Here are the reproduction steps: 1. In Terminal, $ /Applications/MacPorts/Emacs.app/Contents/MacOS/Emacs -Q 2. M-x ido-mode 3. M-x set-variable ido-enable-tramp-completion RET nil RET 4. C-x C-f //sudo: 5. Minibuffer prompt will show `File file: /sudo:/ [No match]` and there's no way to remove the auto completed / in the end. Bug 2: 1. $ echo 'PATH=3D".:$PATH"' > .bash_profile 2. $ echo '(require 'exec-path-from-shell)(exec-path-from-shell-initialize)' > .emacs 3. Launch /Applications/MacPorts/Emacs.app/Contents/MacOS/Emacs in GUI 4. C-x C-f /sudo:: RET 5. Cursor now stops blinking but no password prompt is shown. 6. If you TAB complete after /sudo: but before the final :, prompt will not be stuck This bug can only be reproduced if steps 1-3 are followed exactly. The following examples can't reproduce this problem: * $ /Application/MacPorts/Emacs.app/Contents/MacOS/Emacs -Q -l tramp -l /path/to/exec-path-from-shell --eval '(exec-path-from-shell-initialize)' /sudo:: * $ echo '(set exec-path (cons "." exec-path))' > .emacs; /Applications/MacPorts/Emacs.app/Contents/MacOS/Emacs There's some very weird interactions with how Emacs starts up, what happens to Emacs after `call-process` on SHELL and setting `exec-path`, and tab completion of /sudo:: in the minibuffer. This appears to have been the case since relatively early versions of Emacs 27. Bug 2.1: If `auth-sources` is set to `'("~/.authinfo.gpg")` and `~/.authinfo.gpg` has saved the credentials of localhost or the machine's host name, bug 2 does not happened. Bug 3: 1. Same as Bug 2 2. $ echo '(require 'exec-path-from-shell)(exec-path-from-shell-initialize)(require 'crux)' > .emacs 3. Same as Bug 2 4. Same as Bug 2 5. M-x crux-sudo-edit 6. Minibuffer now stuck at "Tramp: Sending Password" Possibly due to similar reasons as Bug 2. In GNU Emacs 27.0.60 (build 1, x86_64-apple-darwin18.7.0, NS appkit-1671.60= Version 10.14.6 (Build 18G2022)) of 2020-02-02 built on MobileCat.local Repository revision: f27187f963e9e36435b508e29256e048799e0ff2 Repository branch: HEAD Windowing system distributor 'Apple', version 10.3.1671 System Description: Mac OS X 10.14.6 Recent messages: Tramp: Checking =E2=80=98vc-registered=E2=80=99 for /sudo:root@localhost:/U= sers/wyuenho/.emacs...done Tramp: Inserting =E2=80=98/sudo:root@localhost:/Users/wyuenho/.emacs=E2=80= =99...done Tramp: Checking =E2=80=98vc-registered=E2=80=99 for /sudo:root@localhost:/U= sers/wyuenho/Documents/workspace/dotfiles/.emacs...done Tramp: Inserting =E2=80=98/sudo:root@localhost:/Users/wyuenho/.emacs=E2=80= =99...done Warning: symbolic link to Git-controlled source file You can run the command =E2=80=98crux-sudo-edit=E2=80=99 with C-c C-u Warning: symbolic link to Git-controlled source file A-b is undefined [2 times] Configured using: 'configure --prefix=3D/opt/local --without-dbus --without-gconf --without-libotf --without-m17n-flt --without-gpm --with-gnutls --with-xml2 --with-modules --infodir /opt/local/share/info/emacs --with-json --without-harfbuzz --with-ns --with-lcms2 --with-imagemagick --with-rsvg 'CFLAGS=3D-pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -arch x86_64' 'CPPFLAGS=3D-I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk' 'LDFLAGS=3D-L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-no_pie -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -arch x86_64'' Configured features: RSVG IMAGEMAGICK GLIB NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS XIM NS MODULES THREADS JSON PDUMPER LCMS2 GMP Important settings: value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix Major mode: =EE=A4=A6 Minor modes in effect: flycheck-pos-tip-mode: t projectile-rails-global-mode: t projectile-mode: t company-quickhelp-mode: t company-quickhelp-local-mode: t company-box-mode: t rainbow-mode: t elisp-def-mode: t display-line-numbers-mode: t subword-mode: t form-feed-mode: t purpose-mode: t imenu-list-minor-mode: t diff-hl-flydiff-mode: t company-flx-mode: t yas-minor-mode: t crm-custom-mode: t override-global-mode: t winner-mode: t which-key-mode: t smooth-scrolling-mode: t show-smartparens-global-mode: t show-smartparens-mode: t smartparens-global-mode: t smartparens-mode: t show-paren-mode: t savehist-mode: t save-place-mode: t rxt-global-mode: t rxt-mode: t recentf-mode: t ido-ubiquitous-mode: t global-whitespace-cleanup-mode: t whitespace-cleanup-mode: t global-origami-mode: t origami-mode: t global-move-dup-mode: t move-dup-mode: t global-magit-file-mode: t which-function-mode: t magit-auto-revert-mode: t global-auto-revert-mode: t global-git-commit-mode: t shell-dirtrack-mode: t server-mode: t global-hl-line-mode: t global-flycheck-mode: t global-diff-hl-mode: t diff-hl-mode: t flx-ido-mode: t ido-everywhere: t editorconfig-mode: t desktop-save-mode: t delete-selection-mode: t company-statistics-mode: t global-company-mode: t company-mode: t beginend-global-mode: t beginend-prog-mode: t auto-compile-on-save-mode: t auto-compile-mode: t async-bytecomp-package-mode: t amx-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t temp-buffer-resize-mode: t size-indication-mode: t column-number-mode: t line-number-mode: t visual-line-mode: t transient-mark-mode: t Load-path shadows: /opt/local/share/emacs/site-lisp/cmake-mode hides /Users/wyuenho/.emacs.d/e= lpa/cmake-mode-20190710.1319/cmake-mode Features: (shadow sort mail-extr crux emacsbug sendmail two-column conf-mode editorconfig-core editorconfig-core-handle editorconfig-fnmatch epa-file blacken py-autopep8 python-docstring py-isort smartparens-python python view flycheck-pos-tip add-node-modules-path dired-hide-dotfiles vc-mtn vc-hg vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs diff-hl-dired dired-collapse dired-hacks-utils all-the-icons-dired lsp-ui lsp-ui-flycheck lsp-ui-doc goto-addr lsp-ui-imenu lsp-ui-peek lsp-ui-sideline company-shell sh-script executable projectile-rails rake inflections inf-ruby smartparens-ruby ruby-mode smie projectile vc-git company-quickhelp pos-tip company-box company-box-doc company-box-icons company-keywords company-etags company-gtags company-dabbrev-code company-dabbrev company-yasnippet company-capf company-emoji company-emoji-list company-files company-cmake company-xcode company-clang company-semantic company-eclim company-template rainbow-mode xterm-color elisp-def ert pp debug backtrace display-line-numbers cap-words superword subword smartparens-config smartparens-org smartparens-markdown smartparens-text form-feed solarized-dark-theme solarized-theme solarized solarized-faces all-the-icons all-the-icons-faces data-material data-weathericons data-octicons data-fileicons data-faicons data-alltheicons spaceline-config spaceline-segments spaceline powerline powerline-separators powerline-themes hideshow window-purpose-x shut-up window-purpose window-purpose-fixes window-purpose-prefix-overload window-purpose-switch window-purpose-layout window-purpose-core window-purpose-configuration eieio-compat window-purpose-utils imenu-list windmove magit-lfs magit-todos hl-todo org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-src ob-comint org-pcomplete org-list org-faces org-entities org-version ob-emacs-lisp ob-core ob-eval org-table ol org-keys org-compat org-macs org-loaddefs cal-menu calendar cal-loaddefs forge-list forge-commands forge-semi forge-bitbucket buck forge-gogs gogs forge-gitea gtea forge-gitlab glab forge-github ghub-graphql treepy gsexp ghub let-alist forge-notify forge-revnote forge-pullreq forge-issue forge-topic bug-reference forge-post forge-repo forge forge-core forge-db closql emacsql-sqlite emacsql emacsql-compiler url-http url-auth url-gw diff-hl-flydiff dumb-jump popup etags fileloop generator rg rg-info-hack rg-menu rg-ibuffer rg-result wgrep-rg wgrep rg-history rg-header ibuf-ext ibuffer ibuffer-loaddefs grep yard-mode poly-markdown polymode poly-lock polymode-base polymode-weave polymode-export polymode-compat polymode-methods polymode-core polymode-classes eieio-custom eieio-base flycheck-objc-clang cl-lib-highlight company-lsp company-flx dap-mode dap-overlays lsp-clients lsp-eslint lsp-verilog lsp-json url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf mailcap lsp-csharp gnutls lsp-pwsh lsp-terraform lsp-yaml lsp-vhdl lsp-haxe lsp-erlang lsp-fsharp lsp-metals lsp-elm lsp-dart lsp-clojure lsp-go lsp-xml lsp-css lsp-intelephense lsp-vetur lsp-html lsp-solargraph lsp-rust lsp-pyls lsp lsp-mode xref url-util spinner network-stream nsm markdown-mode color noutline outline lv inline ht f em-glob esh-util dash-functional bindat flymake-proc flymake compile warnings project yasnippet-snippets yasnippet crm-custom pager-default-keybindings pager browse-kill-ring delight use-package-bind-key use-package-delight osx-trash bind-key exec-path-from-shell quelpa-use-package use-package-core quelpa lisp-mnt help-fns radix-tree tramp-sh docker-tramp tramp-cache tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat parse-time iso8601 ls-lisp winner which-key smooth-scrolling smartparens thingatpt paren savehist saveplace pcre2el rxt re-builder recentf tree-widget ido-completing-read+ memoize cus-edit wid-edit minibuf-eldef help-at-pt whitespace-cleanup-mode whitespace origami origami-parsers cl move-dup magit-submodule magit-obsolete magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log which-func imenu magit-diff smerge-mode diff magit-core magit-autorevert autorevert filenotify magit-margin magit-transient magit-process magit-mode git-commit transient magit-git magit-section magit-utils crm log-edit message rmc puny dired dired-loaddefs format-spec rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log with-editor cl-extra shell pcomplete comint ring server hl-line flycheck ansi-color find-func help-mode dash diff-hl vc-dir ewoc vc vc-dispatcher diff-mode easy-mmode flx-ido flx ido editorconfig desktop frameset delsel company-statistics company pcase beginend auto-compile packed async-bytecomp advice async amx s cus-start cus-load finder-inf edmacro kmacro rx info package easymenu browse-url url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads kqueue cocoa ns lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 854521 343188) (symbols 48 45933 145) (strings 32 184516 65158) (string-bytes 1 5654575) (vectors 16 110270) (vector-slots 8 2263474 423548) (floats 8 1363 843) (intervals 56 5261 3325) (buffers 1000 54))