* eshell sees `.#` as a directory as part of `nix build .#nixosConfigurations.my-pc`
@ 2022-11-20 7:33 pareto optimal via Users list for the GNU Emacs text editor
0 siblings, 0 replies; only message in thread
From: pareto optimal via Users list for the GNU Emacs text editor @ 2022-11-20 7:33 UTC (permalink / raw)
In xterm or vterm in emacs I get completion for the string `nix build .#` that looks like this:
$ nix build .#
.#deploy .#lib .#pkgs
.#devShell .#nixosConfigurations .#repl
.#gdb-frontend .#overlays .#waveform
In eshell however I get completions like this:
Click on a completion to select it.
In this buffer, type RET to select the completion near point.
Possible completions are:
I'd like the functionality to be the same in eshell.
I knew that `completion-at-point` was being used here and therefore it semed `copmletion-at-point-functions` would point me in the right direction to start studying in order to not treat `.#` as a filename in `nix build .#` and eventually get the same completions as xterm and vterm have.
So I looked at the value of completion-at-point-functions:
completion-at-point-functions is a variable defined in ‘minibuffer.el’.
Its value is (pcomplete-completions-at-point t)
Local in buffer *eshell*; global value is
Alright, So it's a pcomplete thing. I learned that pcomplete uses dynamic dispatch to find all handlers for completion from:
So then I tried undefining `pcomplete/cd` which I thought was responsible with:
However... even after starting a new eshelll... the behavior I didn't want was still there somehow.
Then I tried the sledgehammer option (or attempted it): remove all pcomplete handlers:
#+begin_src emacs-lisp :eval query
`C-h f pcomplete/<no match>` now shows up in my `emacs -Q` instance and I assumed this means pcomplete has no way to complete.
However I still get the directory completions... and I'm not quite sure how to proceed or what information I'm missing to solve my current problem.
Can anyone help?
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-11-20 7:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-20 7:33 eshell sees `.#` as a directory as part of `nix build .#nixosConfigurations.my-pc` pareto optimal via Users list for the GNU Emacs text editor
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).