From: "Clément Pit--Claudel" <clement.pitclaudel@live.com>
To: 24888@debbugs.gnu.org
Subject: bug#24888: pcomplete/cd returns "../" before "./" and does not include empty completion in results of pcomplete-at-point
Date: Sat, 5 Nov 2016 19:53:34 -0400 [thread overview]
Message-ID: <c39f133e-e157-e36b-e93e-53e8b0ee5f81@live.com> (raw)
[-- Attachment #1.1.1: Type: text/plain, Size: 1297 bytes --]
pcomplete's ordering of completion makes it inconvenient to input directory names to 'cd' to when using company. Example scenario:
* Start a shell (M-x shell)
* Enable company-mode
* Start typing `cd /home/clement/`
This invokes (assuming a low enough completion delay) pcomplete-at-point (the call goes through company-capf, which relies on completion-at-point-functions, which contains comint-dynamic-completion, which includes pcomplete-at-point). The results of this pcomplete invocation include "../" and "./", followed by name-ordered file names. There are two problems:
* "../" comes first, which causes the default completion to be "/home/clement/../".
* pcomplete's list doesn't include "/home/clement/" itself.
Fixing the second problem would fix the first one; if pcomplete included "" in its results in addition to "./" and "../", and ranked it first, there would be no problem (company would display "/home/clement/" first, just like company-files does)
Cheers,
Clément.
In GNU Emacs 26.0.50.14 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9)
of 2016-10-29 built on clem-w50-mint
Repository revision: fae796fe2695b419aa9277d243633bae400a147a
Windowing system distributor 'The X.Org Foundation', version 11.0.11804000
System Description: Linux Mint 18 Sarah
[-- Attachment #1.1.2: pcomplete.png --]
[-- Type: image/png, Size: 9204 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next reply other threads:[~2016-11-05 23:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-05 23:53 Clément Pit--Claudel [this message]
2016-11-07 0:15 ` bug#24888: pcomplete/cd returns "../" before "./" and does not include empty completion in results of pcomplete-at-point Dmitry Gutov
2016-11-07 1:04 ` Clément Pit--Claudel
2016-11-07 13:48 ` Dmitry Gutov
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c39f133e-e157-e36b-e93e-53e8b0ee5f81@live.com \
--to=clement.pitclaudel@live.com \
--cc=24888@debbugs.gnu.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.