From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim Van Holder Newsgroups: gmane.emacs.bugs Subject: bug#7215: 24.0.50; Minibuffer path completion mispositions point Date: Thu, 14 Oct 2010 15:22:16 +0200 Message-ID: <87aamgc3jr.fsf@leeloo.anubex.internal> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1287063789 24519 80.91.229.12 (14 Oct 2010 13:43:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 14 Oct 2010 13:43:09 +0000 (UTC) To: 7215@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 14 15:43:08 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P6O5K-0006bi-7d for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 Oct 2010 15:43:07 +0200 Original-Received: from localhost ([127.0.0.1]:60494 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P6O5I-0004Ww-SM for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 Oct 2010 09:43:05 -0400 Original-Received: from [140.186.70.92] (port=40575 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P6O53-0004EH-Sd for bug-gnu-emacs@gnu.org; Thu, 14 Oct 2010 09:42:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P6O4X-0001rM-1I for bug-gnu-emacs@gnu.org; Thu, 14 Oct 2010 09:42:18 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57025) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P6O4W-0001rF-UN for bug-gnu-emacs@gnu.org; Thu, 14 Oct 2010 09:42:16 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1P6Nj1-0000DJ-R9; Thu, 14 Oct 2010 09:20:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tim Van Holder Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Oct 2010 13:20:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 7215 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.1287062346806 (code B ref -1); Thu, 14 Oct 2010 13:20:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 Oct 2010 13:19:06 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P6Ni6-0000Cx-8P for submit@debbugs.gnu.org; Thu, 14 Oct 2010 09:19:06 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P6Ni4-0000Ca-2g for submit@debbugs.gnu.org; Thu, 14 Oct 2010 09:19:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P6NlT-0006NP-UZ for submit@debbugs.gnu.org; Thu, 14 Oct 2010 09:22:36 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:55335) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P6NlT-0006NL-SQ for submit@debbugs.gnu.org; Thu, 14 Oct 2010 09:22:35 -0400 Original-Received: from [140.186.70.92] (port=55168 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P6NlS-00026a-Rs for bug-gnu-emacs@gnu.org; Thu, 14 Oct 2010 09:22:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P6NlR-0006Mx-O5 for bug-gnu-emacs@gnu.org; Thu, 14 Oct 2010 09:22:34 -0400 Original-Received: from webmail.anubex.com ([194.78.75.179]:50782 helo=mail.anubex.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P6NlR-0006MV-IV for bug-gnu-emacs@gnu.org; Thu, 14 Oct 2010 09:22:33 -0400 Original-Received: from localhost (kraatos.anubex.internal [127.0.0.1]) by mail.anubex.com (Postfix) with ESMTP id 37D38EC3F15; Thu, 14 Oct 2010 15:22:30 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at anubex.com Original-Received: from mail.anubex.com ([127.0.0.1]) by localhost (mail.anubex.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MWDRFg-RPgWN; Thu, 14 Oct 2010 15:22:21 +0200 (CEST) Original-Received: from leeloo.anubex.internal (leeloo.anubex.internal [192.168.14.202]) by mail.anubex.com (Postfix) with ESMTPS id 12CBAEC5C70; Thu, 14 Oct 2010 15:22:17 +0200 (CEST) Original-Received: from tim by leeloo.anubex.internal with local (Exim 4.63) (envelope-from ) id 1P6NlA-0007JB-Vs; Thu, 14 Oct 2010 15:22:16 +0200 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 14 Oct 2010 09:20:03 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:40887 Archived-At: Recipe: $ mkdir directory $ cd directory $ mkdir subdir $ cd subdir $ emacs -Q C-x C-f At this point, the minibuffer will contain (with * indicating point): Find file: .../directory/subdir/* Now delete most of "directory", leaving the minibuffer as: Find file: .../dir*/subdir/ Now press [tab]. This correctly completes "dir" back to "directory", but also moves point backwards, resulting in: Find file: .../di*rectory/subdir/ The amount point moves seems to be relative to the place it should end up at (it will always be after the "di" regardless of whether the completion was for "di", "dir" or "direc"). It also seems to be related to the size of the subsequent path component; doing the same tab completion for the portion of the path before "directory" makes point jump much further back. For the last path component (subdir in this case) it _looks_ fine, resulting in Find file: .../directory/subdir*/ But simply adding a single letter after the trailing '/' shows that this is just the one case where it looks like it's doing the right thing; trying to complete "subdir" from "sub" then yields: Find file: .../directory/subdi*r/x In GNU Emacs 24.0.50.2 (i686-pc-linux-gnu, GTK+ Version 2.8.20) of 2010-10-14 on leeloo Windowing system distributor `The Cygwin/X Project', version 11.0.10503000 configured using `configure '--with-x''