help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: partial completion mode question


From: Eli Zaretskii
Subject: Re: partial completion mode question
Date: Tue, 22 Apr 2008 22:22:34 +0300

> From: Michal <rabbit50@tenbit.pl>
> Date: Tue, 22 Apr 2008 21:15:46 +0200
> 
> I have the following files:
> prompt$ ls -1 /tmp/trace*
> /tmp/trace2.txt
> /tmp/trace.txt
> prompt$
> 
> 
> 
> Now I do:
> M-x partial-completion-mode
> then:
> C-x C-f /tmp/trace.<TAB>
> emacs correctly resolves it to:
> C-x C-f /tmp/trace.txt
>                   ^
> but leaves        |
> cursor here-------+
> instead of at the end of line.
> 
> Is it some defect of partial completion mode?

No, it's a feature: partial completion mode leaves point at the
position where there's the first difference between several possible
completions.  Unlike what you seem to think, when partial completion
mode is on, trace.<TAB> can complete to both trace.txt and trace2.txt.
This is what partial completion mode is all about: it completes each
part of the input (in this case, the part before and after the period)
independently.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]