From unknown Sat Aug 16 13:45:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7215: 24.0.50; Minibuffer path completion mispositions point 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: To: 7215@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.1287062346806 (code B ref -1); Thu, 14 Oct 2010 13:20:03 +0000 Received: (at submit) by debbugs.gnu.org; 14 Oct 2010 13:19:06 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 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 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 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 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 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 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) 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) 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 From: Tim Van Holder Date: Thu, 14 Oct 2010 15:22:16 +0200 Message-ID: <87aamgc3jr.fsf@leeloo.anubex.internal> MIME-Version: 1.0 Content-Type: text/plain 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-Spam-Score: -5.6 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.7 (-----) 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'' From unknown Sat Aug 16 13:45:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7215: 24.0.50; Minibuffer path completion mispositions point Resent-From: Stephen Berman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Oct 2010 14:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7215 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Tim Van Holder Cc: 7215@debbugs.gnu.org Received: via spool by 7215-submit@debbugs.gnu.org id=B7215.128715152225156 (code B ref 7215); Fri, 15 Oct 2010 14:06:01 +0000 Received: (at 7215) by debbugs.gnu.org; 15 Oct 2010 14:05:22 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P6kuP-0006Xh-NY for submit@debbugs.gnu.org; Fri, 15 Oct 2010 10:05:21 -0400 Received: from mailout-de.gmx.net ([213.165.64.22] helo=mail.gmx.net) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1P6kuN-0006Xc-BQ for 7215@debbugs.gnu.org; Fri, 15 Oct 2010 10:05:20 -0400 Received: (qmail invoked by alias); 15 Oct 2010 14:08:52 -0000 Received: from i59F54169.versanet.de (EHLO escher.home) [89.245.65.105] by mail.gmx.net (mp040) with SMTP; 15 Oct 2010 16:08:52 +0200 X-Authenticated: #20778731 X-Provags-ID: V01U2FsdGVkX1/ZpMtZ44nZZGA6yV8DZlmHpqwhjFNcZO6SoOwUQ4 I97C3kd64CfBd5 Received: by escher.home (Postfix, from userid 1000) id 3924110303; Fri, 15 Oct 2010 16:08:52 +0200 (CEST) From: Stephen Berman References: <87aamgc3jr.fsf@leeloo.anubex.internal> Date: Fri, 15 Oct 2010 16:08:51 +0200 In-Reply-To: <87aamgc3jr.fsf@leeloo.anubex.internal> (Tim Van Holder's message of "Thu, 14 Oct 2010 15:22:16 +0200") Message-ID: <8762x3v98s.fsf@escher.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Y-GMX-Trusted: 0 X-Spam-Score: -3.0 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.0 (---) --=-=-= Content-Type: text/plain On Thu, 14 Oct 2010 15:22:16 +0200 Tim Van Holder wrote: > 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 The following patch appears to fix this problem (that is, it leaves point before the `/' following the current path component; note that in Emacs 23.1, path completion leaves point after the `/'): --=-=-= Content-Type: text/x-patch Content-Disposition: inline Content-Description: completion patch *** /data/steve/bzr/emacs/trunk/lisp/minibuffer.el 2010-10-08 13:54:31.000000000 +0200 --- /data/steve/bzr/emacs/quickfixes/lisp/minibuffer.el 2010-10-15 15:46:18.000000000 +0200 *************** *** 574,580 **** ;; Insert in minibuffer the chars we got. (completion--replace beg end completion)) ;; Move point to its completion-mandated destination. ! (forward-char (- comp-pos (length completion))) (if (not (or unchanged completed)) ;; The case of the string changed, but that's all. We're not sure --- 574,580 ---- ;; Insert in minibuffer the chars we got. (completion--replace beg end completion)) ;; Move point to its completion-mandated destination. ! ;; (forward-char (- comp-pos (length completion))) (if (not (or unchanged completed)) ;; The case of the string changed, but that's all. We're not sure --=-=-= Content-Type: text/plain Clearly, the movement calculation doesn't DTRT for path completion. I tried the patch with other types of completion, e.g. function and variable names, and it also seemed fine. But the movement is obviously intended, so there must be cases I have overlooked where it is needed; maybe for certain completion styles? Steve Berman --=-=-=-- From unknown Sat Aug 16 13:45:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7215: 24.0.50; Minibuffer path completion mispositions point Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 17 Oct 2010 17:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7215 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Tim Van Holder Cc: 7215@debbugs.gnu.org Received: via spool by 7215-submit@debbugs.gnu.org id=B7215.128733647923161 (code B ref 7215); Sun, 17 Oct 2010 17:28:02 +0000 Received: (at 7215) by debbugs.gnu.org; 17 Oct 2010 17:27:59 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P7X1a-00061W-FC for submit@debbugs.gnu.org; Sun, 17 Oct 2010 13:27:58 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P7X1X-00061Q-80 for 7215@debbugs.gnu.org; Sun, 17 Oct 2010 13:27:55 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AusJAO/PukxMCpO7/2dsb2JhbACgM3dywxeFSQSSGQ X-IronPort-AV: E=Sophos;i="4.57,342,1283745600"; d="scan'208";a="79871988" Received: from 76-10-147-187.dsl.teksavvy.com (HELO pastel.home) ([76.10.147.187]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 17 Oct 2010 13:31:35 -0400 Received: by pastel.home (Postfix, from userid 20848) id 8DC1BA8112; Sun, 17 Oct 2010 13:31:34 -0400 (EDT) From: Stefan Monnier Message-ID: References: <87aamgc3jr.fsf@leeloo.anubex.internal> Date: Sun, 17 Oct 2010 13:31:34 -0400 In-Reply-To: <87aamgc3jr.fsf@leeloo.anubex.internal> (Tim Van Holder's message of "Thu, 14 Oct 2010 15:22:16 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.1 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) > 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/ I've installed the patch below into the emacs-23 branch. This should fix the problem. Please confirm, Stefan === modified file 'lisp/minibuffer.el' --- lisp/minibuffer.el 2010-10-03 19:50:14 +0000 +++ lisp/minibuffer.el 2010-10-17 17:26:12 +0000 @@ -498,10 +498,11 @@ (setq suffix-len (1+ suffix-len))) (unless (zerop suffix-len) (setq end (- end suffix-len)) - (setq newtext (substring newtext 0 (- suffix-len))))) + (setq newtext (substring newtext 0 (- suffix-len)))) (goto-char beg) (insert newtext) - (delete-region (point) (+ (point) (- end beg)))) + (delete-region (point) (+ (point) (- end beg))) + (forward-char suffix-len))) (defun completion--do-completion (&optional try-completion-function) "Do the completion and return a summary of what happened. From unknown Sat Aug 16 13:45:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7215: 24.0.50; Minibuffer path completion mispositions point 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: Mon, 18 Oct 2010 06:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7215 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier Cc: 7215@debbugs.gnu.org Received: via spool by 7215-submit@debbugs.gnu.org id=B7215.128738479611174 (code B ref 7215); Mon, 18 Oct 2010 06:54:02 +0000 Received: (at 7215) by debbugs.gnu.org; 18 Oct 2010 06:53:16 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P7jat-0002uB-QS for submit@debbugs.gnu.org; Mon, 18 Oct 2010 02:53:15 -0400 Received: from mail-wy0-f172.google.com ([74.125.82.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P7jas-0002u4-34 for 7215@debbugs.gnu.org; Mon, 18 Oct 2010 02:53:14 -0400 Received: by wyb29 with SMTP id 29so933253wyb.3 for <7215@debbugs.gnu.org>; Sun, 17 Oct 2010 23:56:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=SjFtW1WwZykBmYdayxe2mefNvlzjsh1aa2BL8JU1ZKw=; b=SznPWWDFzknTD7UWfrPqNgqDMdMRtPHTzjy3oX2noS6raCKFoNgxslnT93GMZeIEhz /m9V80CNsFhZLCtP3eWjoFfY9ZsE2CuCmbKyBewRwTMg3QxocWDDGHqaIYmlHeBRYxbX C+b/frA4oqIyjvYmu6ncTINqUFni5CkXgv/k4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=nEPtxynpjmITy1KYAfitaVmQ8pqrrjkFTlde7AcZArhGmrDWbJesvjVygO5uNZxUia nogBaQgohSN4CT8NkHVFkhkmsgs609p9D/WE0FyG3qDcfTfFCCH4Wk2rSue062rkAO7s 2t627SAH8fhhXmMvpfaMec6okTWTpXS6nS7is= MIME-Version: 1.0 Received: by 10.216.38.149 with SMTP id a21mr4819070web.35.1287385015955; Sun, 17 Oct 2010 23:56:55 -0700 (PDT) Received: by 10.216.16.6 with HTTP; Sun, 17 Oct 2010 23:56:55 -0700 (PDT) In-Reply-To: References: <87aamgc3jr.fsf@leeloo.anubex.internal> Date: Mon, 18 Oct 2010 08:56:55 +0200 Message-ID: From: Tim Van Holder Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.6 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) On 17 October 2010 19:31, Stefan Monnier wrote: > I've installed the patch below into the emacs-23 branch. =C2=A0This shoul= d > fix the problem. =C2=A0Please confirm, I'm on trunk, not the emacs-23 branch. However, I (manually) applied the same change to trunk and the problem did indeed go away. Does mark matter in the minibuffer? If so, perhaps it should be forward-char-nomark? Note: the diff you posted seems to ignore whitespace, which made it slightly harder to twig that you were extending the let, because the goto-char and indent didn't change their indentation. From unknown Sat Aug 16 13:45:31 2025 X-Loop: help-debbugs@gnu.org Subject: bug#7215: 24.0.50; Minibuffer path completion mispositions point Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 18 Oct 2010 14:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7215 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Tim Van Holder Cc: 7215@debbugs.gnu.org Received: via spool by 7215-submit@debbugs.gnu.org id=B7215.128741165626222 (code B ref 7215); Mon, 18 Oct 2010 14:21:02 +0000 Received: (at 7215) by debbugs.gnu.org; 18 Oct 2010 14:20:56 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P7qa8-0006ot-Ih for submit@debbugs.gnu.org; Mon, 18 Oct 2010 10:20:56 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P7qa6-0006om-Gy for 7215@debbugs.gnu.org; Mon, 18 Oct 2010 10:20:55 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ag4JABL2u0xMCpO7/2dsb2JhbACgM3lyvjiFSQSSGQ X-IronPort-AV: E=Sophos;i="4.57,345,1283745600"; d="scan'208";a="80006520" Received: from 76-10-147-187.dsl.teksavvy.com (HELO pastel.home) ([76.10.147.187]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 18 Oct 2010 10:24:24 -0400 Received: by pastel.home (Postfix, from userid 20848) id 611AAA8213; Mon, 18 Oct 2010 10:24:24 -0400 (EDT) From: Stefan Monnier Message-ID: References: <87aamgc3jr.fsf@leeloo.anubex.internal> Date: Mon, 18 Oct 2010 10:24:24 -0400 In-Reply-To: (Tim Van Holder's message of "Mon, 18 Oct 2010 08:56:55 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.1 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) >> I've installed the patch below into the emacs-23 branch. =A0This should >> fix the problem. =A0Please confirm, > I'm on trunk, not the emacs-23 branch. Yes, but the bug was there as well. It'll get merged into trunk in due tim= e. > However, I (manually) applied the same change to trunk and the problem > did indeed go away. Thank you for confirming. > Does mark matter in the minibuffer? Yes. > If so, perhaps it should be forward-char-nomark? forward-char is a low-level function which does not touch the mark. forward-char-nomark OTOH is a command (only defined if you load pc-select.el) which does affect the mark. So `forward-char' is what we want here. > Note: the diff you posted seems to ignore whitespace, which made it > slightly harder to twig that you were extending the let, because the > goto-char and indent didn't change their indentation. It's a tradeoff: OT1H you don't see that the indentation changed, but OTOH you do see that this part of the code has not been modified. Stefan From unknown Sat Aug 16 13:45:31 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Tim Van Holder Subject: bug#7215: closed (Re: bug#7215: 24.0.50; Minibuffer path completion mispositions point) Message-ID: References: <87aamgc3jr.fsf@leeloo.anubex.internal> X-Gnu-PR-Message: they-closed 7215 X-Gnu-PR-Package: emacs Reply-To: 7215@debbugs.gnu.org Date: Mon, 18 Oct 2010 20:19:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1287433142-4097-1" This is a multi-part message in MIME format... ------------=_1287433142-4097-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #7215: 24.0.50; Minibuffer path completion mispositions point which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 7215@debbugs.gnu.org. --=20 7215: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D7215 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1287433142-4097-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 7215-done) by debbugs.gnu.org; 18 Oct 2010 20:18:05 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P7w9k-00013o-KI for submit@debbugs.gnu.org; Mon, 18 Oct 2010 16:18:05 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P7vs1-0000us-DW for 7215-done@debbugs.gnu.org; Mon, 18 Oct 2010 15:59:45 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjALAJxEvExMCpO7/2dsb2JhbACgT3lywH+FSQSSGQ X-IronPort-AV: E=Sophos;i="4.57,346,1283745600"; d="scan'208";a="80046825" Received: from 76-10-147-187.dsl.teksavvy.com (HELO pastel.home) ([76.10.147.187]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 18 Oct 2010 16:03:28 -0400 Received: by pastel.home (Postfix, from userid 20848) id 1023AA822C; Mon, 18 Oct 2010 16:03:28 -0400 (EDT) From: Stefan Monnier To: Tim Van Holder Subject: Re: bug#7215: 24.0.50; Minibuffer path completion mispositions point Message-ID: References: <87aamgc3jr.fsf@leeloo.anubex.internal> Date: Mon, 18 Oct 2010 16:03:27 -0400 In-Reply-To: (Stefan Monnier's message of "Mon, 18 Oct 2010 10:24:24 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 7215-done X-Mailman-Approved-At: Mon, 18 Oct 2010 16:18:04 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) >> I'm on trunk, not the emacs-23 branch. >> However, I (manually) applied the same change to trunk and the problem >> did indeed go away. > Thank you for confirming. Closing, then, Stefan ------------=_1287433142-4097-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 14 Oct 2010 13:19:06 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 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 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 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 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 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 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) 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) 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 From: Tim Van Holder To: bug-gnu-emacs@gnu.org Subject: 24.0.50; Minibuffer path completion mispositions point Date: Thu, 14 Oct 2010 15:22:16 +0200 Message-ID: <87aamgc3jr.fsf@leeloo.anubex.internal> MIME-Version: 1.0 Content-Type: text/plain 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-Spam-Score: -5.6 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.7 (-----) 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'' ------------=_1287433142-4097-1--