From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: simon254--- via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#48782: 28.0.50; fido-mode: shell variables distort find-file behaviour Date: Tue, 1 Jun 2021 18:29:17 +0100 (BST) Message-ID: <855373175.142584.1622568557185@office.mailbox.org> Reply-To: simon254@mailbox.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32946"; mail-complaints-to="usenet@ciao.gmane.io" To: 48782@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 01 19:54:05 2021 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 1lo8aa-0008NM-I1 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Jun 2021 19:54:04 +0200 Original-Received: from localhost ([::1]:45652 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lo8aZ-00062a-Jw for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Jun 2021 13:54:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38812) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lo8Zb-0004ZF-4f for bug-gnu-emacs@gnu.org; Tue, 01 Jun 2021 13:53:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54398) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lo8Za-0001x0-RS for bug-gnu-emacs@gnu.org; Tue, 01 Jun 2021 13:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lo8Za-00030N-NR for bug-gnu-emacs@gnu.org; Tue, 01 Jun 2021 13:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: simon254@mailbox.org Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Jun 2021 17:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48782 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.162256992711480 (code B ref -1); Tue, 01 Jun 2021 17:53:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Jun 2021 17:52:07 +0000 Original-Received: from localhost ([127.0.0.1]:37711 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lo8Yg-0002z5-Pj for submit@debbugs.gnu.org; Tue, 01 Jun 2021 13:52:07 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:56150) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lo8Cm-0002Q7-7T for submit@debbugs.gnu.org; Tue, 01 Jun 2021 13:29:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33670) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lo8Cm-0007Hb-1P for bug-gnu-emacs@gnu.org; Tue, 01 Jun 2021 13:29:28 -0400 Original-Received: from mout-p-101.mailbox.org ([80.241.56.151]:45298) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1lo8Cj-0002lx-B6 for bug-gnu-emacs@gnu.org; Tue, 01 Jun 2021 13:29:27 -0400 Original-Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4FvfKX5TMDzQk1n for ; Tue, 1 Jun 2021 19:29:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mailbox.org; h= content-transfer-encoding:content-type:content-type:mime-version :subject:subject:message-id:from:from:date:date:received; s= mail20150812; t=1622568557; bh=ryCXxLMYzl5mHLdqVfW64GNHt+AsH529N aValygISrI=; b=oAkDdTb74FIh66M7POfC59uHWuVPI9pUTq3XEzIRL7amVC9s3 7f4YV9sixbrbJe4xTKsmoaWISJzEpZWbbIJJwIkHkYVyu9yrpgvcVhP9jmG/buvJ bz/8gK4nMJ8jcWNEdXM3pePa4zkxKrVTjHhFgCkRU9uUJCgYLHQNSdJiLn8puOzq h5XDsn56APPhwGBxOPcUnynRsjypQ5tvgkQvGjKkb0yR1ieFdyosdmCtVA4Sa64g P3byv1jTs4NZHQJ8zFTg7nqVpwKEmm/X+q+VqngB/PWJYCSJ7sGKs8NDmNfJQjeU clExT7ourVgPVWhyDyreX3LHIUB+U8CPplb4A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1622568558; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=b8JhCBXvAe+jUbOZed9SaVlvLLC9icxu/rQFc96OLCA=; b=vD5ko+u2RRkkqBtUnAPV23kRJf7vPdw7UBJRVbOX+mC+8GJYZClzbvEwHyevMo/9Y2K5aS Hg36Y1q0SazJ8EAY2qIrDdMrIvEW/LdM5VWqYJ2RoRMxr8h1GgfBQNfNcMWwyzOceOjHge ELQl/1IhzjCBaprz2BJNn317lvo/tTJEwdLESm0hQ6c9V9WYArFjmk+TRAsG1e/BWHdDCB nlFigovhE1mO56BqKQQLhmDG2FqBsrXe3GTSyTiJZjLZUAUcCRQvmtx1/9+x03a4YeWlMZ 28OGsz6wLZrkm3ns3/Tr+Adhg0DriDZGTSbEOmgmE3uozVNcu6k5iDIejW4Utg== X-Virus-Scanned: amavisd-new at heinlein-support.de Original-Received: from smtp2.mailbox.org ([80.241.60.241]) by gerste.heinlein-support.de (gerste.heinlein-support.de [91.198.250.173]) (amavisd-new, port 10030) with ESMTP id oc8Y5V6LSt5g for ; Tue, 1 Jun 2021 19:29:17 +0200 (CEST) X-Priority: 3 Importance: Normal X-Rspamd-Score: -5.62 / 15.00 / 15.00 X-Rspamd-Queue-Id: C351D1806 X-Rspamd-UID: 834df4 Received-SPF: pass client-ip=80.241.56.151; envelope-from=simon254@mailbox.org; helo=mout-p-101.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 01 Jun 2021 13:52:05 -0400 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:207800 Archived-At: with emacs -Q 1) M-x -> fido-mode C-x C-f -> type "$HOME" -> enter opens dired buffer in $HOME directory instead of continuing find-file $HOME to select a file to open 2) similar thing happens if: M-x -> fido-mode C-x C-f -> type "$HOME/.emacs.d" -> enter opens dired buffer in $HOME/emacs.d directory instead of continuing find-file $HOME/emacs.d to select a file to open in pure icomplete-mode find-file seems to work as expected after typing "$HOME/" -> descent into directories via C-M-i? ido-mode will not match environment variables but when typing M-x -> ido-mode C-x C-f -> type "$HOME/" -> ido expands $HOME to the actuall path and find-file continues as expected ido.el has (defun ido-complete () "Try and complete the current pattern amongst the file names." (interactive) (let (res) (cond (ido-incomplete-regexp ;; Do nothing ) ((and (memq ido-cur-item '(file dir)) (string-match "[$]" ido-text)) (let ((evar (substitute-in-file-name (concat ido-current-directory ido-text)))) (if (not (file-exists-p (file-name-directory evar))) (message "Expansion generates non-existing directory name") (if (file-directory-p evar) (ido-set-current-directory evar) (let ((d (or (file-name-directory evar) "/")) (f (file-name-nondirectory evar))) (when (file-directory-p d) (ido-set-current-directory d) (setq ido-text-init f)))) (setq ido-exit 'refresh) (exit-minibuffer)))) This was tested in emacs 28 but also 27 In GNU Emacs 28.0.50 (build 1, x86_64-apple-darwin20.4.0, NS appkit-2022.44 Version 11.3.1 (Build 20E241)) of 2021-05-20 built on Zwei.local Windowing system distributor 'Apple', version 10.3.2022 System Description: macOS 11.4 Configured using: 'configure --disable-dependency-tracking --disable-silent-rules --enable-locallisppath=/usr/local/share/emacs/site-lisp --infodir=/usr/local/Cellar/emacs-plus@28/28.0.50/share/info/emacs --prefix=/usr/local/Cellar/emacs-plus@28/28.0.50 --with-xml2 --with-gnutls --with-native-compilation --without-dbus --with-imagemagick --with-modules --with-rsvg --with-ns --disable-ns-self-contained 'CFLAGS=-I/usr/local/opt/gcc/include -I/usr/local/opt/libgccjit/include -I/usr/local/opt/gmp/include -I/usr/local/opt/jpeg/include' 'LDFLAGS=-L/usr/local/lib/gcc/11 -I/usr/local/opt/gcc/include -I/usr/local/opt/libgccjit/include -I/usr/local/opt/gmp/include -I/usr/local/opt/jpeg/include'' Configured features: ACL GIF GLIB GMP GNUTLS IMAGEMAGICK JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY KQUEUE NS PDUMPER PNG RSVG THREADS TIFF TOOLKIT_SCROLL_BARS XIM ZLIB Important settings: value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-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 line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map text-property-search time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils iso-transl 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 easymenu timer select scroll-bar mouse jit-lock font-lock syntax 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 button loaddefs faces cus-face macroexp files window 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 native-compile emacs) Memory information: ((conses 16 67326 7749) (symbols 48 6525 0) (strings 32 18694 1859) (string-bytes 1 645296) (vectors 16 13385) (vector-slots 8 280235 8834) (floats 8 22 29) (intervals 56 226 0) (buffers 992 10))