GNU bug report logs - #30271
shell mode completion won't complete directory names in gzip arguments

Previous Next

Package: emacs;

Reported by: Mike Kupfer <mkupfer <at> alum.berkeley.edu>

Date: Sat, 27 Jan 2018 19:23:02 UTC

Severity: minor

Found in version 26.0.91

Fixed in version 28.1

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Mike Kupfer <mkupfer <at> alum.berkeley.edu>
To: 30271 <at> debbugs.gnu.org
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




This bug report was last modified 4 years and 271 days ago.

Previous Next


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