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: Mon, 7 Jun 2021 19:23:11 +0100 (BST) Message-ID: <1023830727.35922.1623090191941@office.mailbox.org> References: <855373175.142584.1622568557185@office.mailbox.org> <874kecxiiz.fsf@gmail.com> <87k0n8vxus.fsf@gmail.com> <70440271.17915.1622966488055@office.mailbox.org> Reply-To: simon254@mailbox.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17674"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 48782@debbugs.gnu.org To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 07 20:27:10 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 1lqJxu-0004OX-AO for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 07 Jun 2021 20:27:10 +0200 Original-Received: from localhost ([::1]:47918 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lqJxt-0007FI-7D for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 07 Jun 2021 14:27:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48608) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqJxm-0007F7-Iw for bug-gnu-emacs@gnu.org; Mon, 07 Jun 2021 14:27:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45116) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lqJxm-0006HN-CB for bug-gnu-emacs@gnu.org; Mon, 07 Jun 2021 14:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lqJxm-0003B7-9l for bug-gnu-emacs@gnu.org; Mon, 07 Jun 2021 14:27: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: Mon, 07 Jun 2021 18:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48782 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed X-Debbugs-Original-Cc: "simon254--- via Bug reports for GNU Emacs, the Swiss army knife of text editors" Original-Received: via spool by submit@debbugs.gnu.org id=B.162309038112166 (code B ref -1); Mon, 07 Jun 2021 18:27:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Jun 2021 18:26:21 +0000 Original-Received: from localhost ([127.0.0.1]:56662 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lqJx6-0003A8-Ql for submit@debbugs.gnu.org; Mon, 07 Jun 2021 14:26:21 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:33248) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lqJuE-00035k-Qz for submit@debbugs.gnu.org; Mon, 07 Jun 2021 14:23:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48046) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqJuE-0005cE-Jw for bug-gnu-emacs@gnu.org; Mon, 07 Jun 2021 14:23:22 -0400 Original-Received: from mout-p-201.mailbox.org ([80.241.56.171]:57726) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1lqJuC-0004L2-2W for bug-gnu-emacs@gnu.org; Mon, 07 Jun 2021 14:23:22 -0400 Original-Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:105:465:1:1:0]) (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-201.mailbox.org (Postfix) with ESMTPS id 4FzMDz2BwbzQk2F; Mon, 7 Jun 2021 20:23:15 +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:references:in-reply-to:message-id:from:from :date:date:received; s=mail20150812; t=1623090192; bh=fEKvw9MwUj pxNnyAw7+CS2v0fBE3M+K1hRO5Jx2Y/UI=; b=n8uEvFe+WERRdLrE6aPETyHvyO mOi2IBdm2SAZkVQxQsJvl7lXIu7e56yZSRGNcNkli1TlLXWXQlUZ/LavHdbC/GYF PKfEl8UEezgNlSQZdVyg/Jk7nSvo1/GEykYlrmyCBc+RfCJLbMylut5kMPAkxCyC zcrUyI7EbDzVhVFeyrKHItYIF7klaZkmB7N9uRKqA0Q3y3H+eREzuGQT1WTD9chG eoNeKOh3ZuW04mwEg1iBhExbkQ8VacqRPCLtKMikW4ON6k9aYdPQ222p9tmjO5JP n7DDt3GYLH10M2/ziBh4kw58jC1nd8HQx0a2QEudkzEYARDYzPL0lnAO4dDQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1623090193; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=e1FImlM6f0rsGUJeW5q3h+PvmpomiRB3pJszOJNevGU=; b=vlsPWAdpdy3rWszfnWA+UPXms6RYcxBWEUJFaUi3fulAMS+yMcEFIX1deEqrvg471kWvY/ TtXFBhO63XxBBqpk8bqnckn7blCle7Y+IKX7jqh0So5IY3MDpQTCz6SAaWwVbaLHmD6SKV oRJjOSZCWxAmSkRiNSjkYol0c0pa1JyyUUwftZGzrO6G5hhwmLNdO/6KKjw7J+J+FFgdFl TI7QQVYtc2d+KkB6v+6ERaLkWgvw78bsYDBIM1r/h7x+yjEFFXq5KXBl9oB4dHMGfHiDFZ 3FLv6aV27DZYC5HpWUeoQpL+3KrBQ1U8UI9057OlO2O57pR++IyWy8dlAjdjPw== X-Virus-Scanned: amavisd-new at heinlein-support.de Original-Received: from smtp1.mailbox.org ([80.241.60.240]) by hefe.heinlein-support.de (hefe.heinlein-support.de [91.198.250.172]) (amavisd-new, port 10030) with ESMTP id sZqPWyZW1j42; Mon, 7 Jun 2021 20:23:12 +0200 (CEST) In-Reply-To: X-Priority: 3 Importance: Normal X-Rspamd-Score: -3.90 / 15.00 / 15.00 X-Rspamd-Queue-Id: 4F7E31895 X-Rspamd-UID: 588318 Received-SPF: pass client-ip=80.241.56.171; envelope-from=simon254@mailbox.org; helo=mout-p-201.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, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 07 Jun 2021 14:26:19 -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:208191 Archived-At: great, will do! off topic: would also be nice to have some simple helper functions to go to the first = and last match in case of fido-vertical-mode, something along the lines of (defun icomplete-vertical-last-completions () "Go to last completions entry..." (interactive) (let* ((beg (icomplete--field-beg)) (end (icomplete--field-end)) (comps (completion-all-sorted-completions beg end)) (last (last comps))) (while (consp (cdr comps)) (push (pop comps) icomplete--scrolled-past) (setq icomplete--scrolled-completions comps) (completion--cache-all-sorted-completions beg end comps)))) (defun icomplete-vertical-first-completions () "Go to first completions entry..." (interactive) (let* ((beg (icomplete--field-beg)) (end (icomplete--field-end)) (comps (completion-all-sorted-completions beg end)) =09 last-but-one) (while icomplete--scrolled-past (push (pop icomplete--scrolled-past) comps) (setq icomplete--scrolled-completions comps)) (completion--cache-all-sorted-completions beg end comps))) > On 06/06/2021 17:16 Jo=C3=A3o T=C3=A1vora wrote: >=20 >=20 > On Sun, Jun 6, 2021, 09:01 wrote: > > Thank you very much for looking at this!=20 > > =20 > > Now, if I type $HOM I get candidate $HOME, then I have to M-Tab to ins= ert the candidate and type "/" to continue find-file in the directory, and = then everything works as expected. This makes it now definitely usable for = me!=20 > > =20 > > It might still be a bit confusing that in case of an environment varia= ble which value is a directory, Enter does open dired instead of transversi= ng into the directory with find-file (typing $HOM followed by Enter opens d= ired in home). But I don't know if changing this would be better or worse t= han the current behaviour after your fix - or possible at all. >=20 > May be possible. Is that what Ido does? I'll try in a couple of days, pin= g me here if I forget. >=20 > Jo=C3=A3o