unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: simon254--- via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: "João Távora" <joaotavora@gmail.com>
Cc: 48782@debbugs.gnu.org
Subject: bug#48782: 28.0.50; fido-mode: shell variables distort find-file behaviour
Date: Mon, 7 Jun 2021 19:23:11 +0100 (BST)	[thread overview]
Message-ID: <1023830727.35922.1623090191941@office.mailbox.org> (raw)
In-Reply-To: <CALDnm53ZFJpKzhwjwXK87xMSB1Tj8HxPWWK6Ozcq+OFjvpq7oQ@mail.gmail.com>

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))
	 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ão Távora <joaotavora@gmail.com> wrote:
> 
> 
> On Sun, Jun 6, 2021, 09:01 <simon254@mailbox.org> wrote:
> > Thank you very much for looking at this! 
> >  
> >  Now, if I type $HOM I get candidate $HOME, then I have to M-Tab to insert 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! 
> >  
> >  It might still be a bit confusing that in case of an environment variable which value is a directory, Enter does open dired instead of transversing into the directory with find-file (typing $HOM followed by Enter opens dired in home). But I don't know if changing this would be better or worse than the current behaviour after your fix - or possible at all.
> 
> May be possible. Is that what Ido does? I'll try in a couple of days, ping me here if I forget.
> 
> João





      reply	other threads:[~2021-06-07 18:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-01 17:29 bug#48782: 28.0.50; fido-mode: shell variables distort find-file behaviour simon254--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-06-04 17:54 ` Dmitry Gutov
2021-06-05 18:39 ` João Távora
2021-06-05 20:51   ` João Távora
2021-06-06  8:01     ` simon254--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-06-06 16:16       ` João Távora
2021-06-07 18:23         ` simon254--- via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1023830727.35922.1623090191941@office.mailbox.org \
    --to=bug-gnu-emacs@gnu.org \
    --cc=48782@debbugs.gnu.org \
    --cc=joaotavora@gmail.com \
    --cc=simon254@mailbox.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).