[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#30271: 26.0.91; shell mode completion sometimes fails to complete
From: |
Mike Kupfer |
Subject: |
bug#30271: 26.0.91; shell mode completion sometimes fails to complete |
Date: |
Sun, 28 Jan 2018 09:55:27 -0800 |
Mike Kupfer wrote:
> I suspect that the completion code is trying to be clever, figuring that
> directories are not compressable, so "gzip Desktop" would not make
> sense.
I've verified that the completion code is going through
#'pcomplete/gzip. From inspection, I see that #'pcmpl-gnu-zipped-files
only considers regular files, so directories get filtered out.
> But this just gets in the way if what I want to compress is a
> file in Desktop.
I haven't found any user options or variables that will let me get the
behavior I want, so I ended up putting this workaround in my startup
code:
(defadvice pcomplete-find-completion-function (after
mdk-reliable-completions
compile
activate)
"Force use of the generic completion function."
(setq ad-return-value nil))
mike