]> git.eshelyaron.com Git - emacs.git/commit
Fix completion boundaries for TRAMP file names
authorSpencer Baugh <sbaugh@janestreet.com>
Fri, 2 May 2025 12:47:37 +0000 (14:47 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sat, 10 May 2025 06:56:29 +0000 (08:56 +0200)
commit3555eb6f697cfafbe655e7594d8b611e5f7ac8cb
tree0b452ca6fc8934059f29a49da69c9a95e484cd97
parent747804abfc216d67aad63615c7d5946458da189d
Fix completion boundaries for TRAMP file names

Previously, we assumed (roughly) that substitute-in-file-name
always returns a suffix of the original string.  But
substitute-in-file-name on "/ssh:user@host:/~/" returns
"/ssh:user@host:~/", preserving the TRAMP magic prefix.  Weaken
the assertion in completion--sifn-boundaries to allow this; the
new assertion is more clear about the property we care about,
anyway.

* lisp/minibuffer.el (completion--sifn-boundaries): Weaken
assertion slightly.

* test/lisp/net/tramp-tests.el (tramp--test-emacs31-p)
(tramp--split-on-boundary)
(tramp-test51-file-name-completion-boundaries): Add.

(cherry picked from commit d56d7ca35cf3c0185fe42bf7f64e3aa6a5281e3e)
lisp/minibuffer.el
test/lisp/net/tramp-tests.el