From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: partial completion mode question Date: Tue, 22 Apr 2008 22:22:34 +0300 Message-ID: References: NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1208892203 9368 80.91.229.12 (22 Apr 2008 19:23:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Apr 2008 19:23:23 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 22 21:23:59 2008 connect(): Connection refused Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JoO5t-0006BD-Js for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Apr 2008 21:23:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JoO5D-00036y-So for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Apr 2008 15:23:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JoO4v-00035A-U8 for help-gnu-emacs@gnu.org; Tue, 22 Apr 2008 15:22:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JoO4v-00034c-40 for help-gnu-emacs@gnu.org; Tue, 22 Apr 2008 15:22:57 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JoO4u-00034X-Ux for help-gnu-emacs@gnu.org; Tue, 22 Apr 2008 15:22:56 -0400 Original-Received: from mtaout4.012.net.il ([84.95.2.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JoO4u-0004Jg-Iu for help-gnu-emacs@gnu.org; Tue, 22 Apr 2008 15:22:56 -0400 Original-Received: from HOME-C4E4A596F7 ([83.130.1.82]) by i_mtaout4.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0JZQ00IFJRT7FPY0@i_mtaout4.012.net.il> for help-gnu-emacs@gnu.org; Tue, 22 Apr 2008 22:36:49 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-kernel: by monty-python.gnu.org: Solaris 9.1 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:53480 Archived-At: > From: Michal > 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. > 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. 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.