]> git.eshelyaron.com Git - emacs.git/commit
Make icomplete-tidy-shadowed-file-names less aggressive
authorJoão Távora <joaotavora@gmail.com>
Fri, 15 Nov 2019 20:27:18 +0000 (20:27 +0000)
committerJoão Távora <joaotavora@gmail.com>
Fri, 15 Nov 2019 20:27:18 +0000 (20:27 +0000)
commit7fea1a3f2656c69f4de99d092680f7a917d8426f
tree50365d45d9bfd6afe2890146e465106cd52d40aa
parent87347a5bbc2f044c51feea8d513fb1dcefa6f50e
Make icomplete-tidy-shadowed-file-names less aggressive

When using this option and editing input, some transient situations
may arise that lead to file-name shadowing, but that shouldn't
necessarily lead to auto-delete behaviour, which will be suprising.

In '/foo/x/bar', if the user deletes the 'x', shadowing occurs, but
probably shouldn't.  So, somewhat like ido-mode, only auto-tidy
shadowed file names if the user is inserting text at end of input.

* lisp/icomplete.el (icomplete-exhibit): Check this-command.
(icomplete-tidy-shadowed-file-names): Tweak docstring.
lisp/icomplete.el