all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#7215: 24.0.50; Minibuffer path completion mispositions point
@ 2010-10-14 13:22 Tim Van Holder
  2010-10-15 14:08 ` Stephen Berman
  2010-10-17 17:31 ` Stefan Monnier
  0 siblings, 2 replies; 6+ messages in thread
From: Tim Van Holder @ 2010-10-14 13:22 UTC (permalink / raw)
  To: 7215


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''





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-10-18 20:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-14 13:22 bug#7215: 24.0.50; Minibuffer path completion mispositions point Tim Van Holder
2010-10-15 14:08 ` Stephen Berman
2010-10-17 17:31 ` Stefan Monnier
2010-10-18  6:56   ` Tim Van Holder
2010-10-18 14:24     ` Stefan Monnier
2010-10-18 20:03       ` Stefan Monnier

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.