GNU bug report logs - #50470
27.1; 'company-mode' 'eshell'

Previous Next

Package: emacs;

Reported by: Christophe <ch.bollard <at> laposte.net>

Date: Wed, 8 Sep 2021 06:25:02 UTC

Severity: normal

Found in version 27.1

Done: Dmitry Gutov <dgutov <at> yandex.ru>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Dmitry Gutov <dgutov <at> yandex.ru>
Cc: Christophe <ch.bollard <at> laposte.net>, 50470 <at> debbugs.gnu.org, John Wiegley <johnw <at> gnu.org>
Subject: bug#50470: 27.1; 'company-mode' 'eshell'
Date: Sun, 05 Jun 2022 21:34:16 -0400
> Debugging shows that COMPLETIONS just before the bit of code I added gets
> set to absolute file names. E.g. if I'm typing

[ I see we got back to this issue at the very same time :-)  ]

>   cd ~/Do*
>
> COMPLETIONS is '("/home/dgutov/Documents" "/home/dgutov/Downloads"), which
> fails to match "~/Do" because we do prefix-matching by default.

Yup.  We could try and handle this with a `completion-table-subvert`
hack like we do in `pcomplete-completions-at-point`.

Still, if you remove the ~/ the behavior is still not great: it seems I get
"Do*" completed to "Documents/ " where the SPC might not be what I want.

Maybe we should return a special completion-table which implements the
`backend` style.


        Stefan





This bug report was last modified 2 years and 54 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.