From: "Drew Adams" <drew.adams@oracle.com>
To: "'Glenn Morris'" <rgm@gnu.org>, <6830@debbugs.gnu.org>
Subject: bug#6830: widget-complete bad completions in :type 'file
Date: Wed, 22 Feb 2012 15:02:10 -0800 [thread overview]
Message-ID: <CDFD77D79BBA4F11B02B4D97E471F547@us.oracle.com> (raw)
In-Reply-To: <wf1upmh7sr.fsf@fencepost.gnu.org>
> > If I enter "~/aaa" in the widget field and there is no file starting
> > with "aaa" in my home directory, M-TAB does nothing except for
> > displaying "No match" in the echo area.
> >
> > This is with the latest trunk, on GNU/Linux.
>
> I also cannot reproduce this.
> If no-one can reproduce this using stock Emacs on MS Windows,
> I suggest closing this.
I can reproduce it immediately, AFAICT. I wonder how you actually tried to
reproduce it.
I tested for less than a minute, with emacs -Q:
In GNU Emacs 24.0.93.1 (i386-mingw-nt5.1.2600)
of 2012-02-15 on MARVIN
Windowing system distributor `Microsoft Corp.', version 5.1.2600
Configured using:
`configure --with-gcc (4.6) --no-opt --enable-checking --cflags
-ID:/devel/emacs/libs/libXpm-3.5.8/include
-ID:/devel/emacs/libs/libXpm-3.5.8/src
-ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include
-ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include
-ID:/devel/emacs/libs/giflib-4.1.4-1/include
-ID:/devel/emacs/libs/jpeg-6b-4/include
-ID:/devel/emacs/libs/tiff-3.8.2-1/include
-ID:/devel/emacs/libs/gnutls-3.0.9/include'
This seems to be similar to bug #6757 (?).
If I type a file name and then do `M-x widget-complete', exactly as the bug
recipe says, then, just as the bug report says, I get all of the files in the
current directory as completion candidates.
If I move point back one or more chars, so it is is not _after_ all of the text
typed into the entry field, then I get completions that correspond to the text
before point (more or less - see below). However, with point at some positions
in the field I get all of the files in the current directory again, and point
gets moved to the field end.
E.g. with `foo' as the text in the field, left justified, no spaces:
* With point after `foo', all files in the current dir are candidates.
* With point after `fo', only files (in dir) with _prefix_ `fo' are candidates.
* With point after `f', all files (in dir) are candidates, even though there are
some files that begin with `f' and others that do not. Furthermore, point is
automatically moved to the end of the field. What's that about?
* With point before `f' (cursor on `f'), only files (in dir) that contain
_substring_ `fo' are candidates.
If you add some spaces before `foo', the behavior gets even weirder. Unlike
most editing of text in Emacs (and most edit fields anywhere else), using such
an edit field is odd, because it is apparently already filled with spaces and is
in a mode similar to overwrite. It is as if you were in picture mode. Click in
the middle and point stays there, as if preceded by spaces.
Pretty incomprehensible behavior, if you ask me. I'm sure there's a logical
explanation, and perhaps some or all of the behavior is even intentional (how to
know?).
However, users will never guess the behavior pattern without some explanation.
I have no idea whether all of the behavior is intentional or there are one or
more bugs.
next prev parent reply other threads:[~2012-02-22 23:02 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-09 11:45 bug#6830: widget-complete bad completions in :type 'file Lennart Borgman
2010-09-04 17:48 ` Chong Yidong
2010-09-04 22:16 ` Lennart Borgman
2010-09-05 1:47 ` Chong Yidong
2012-02-22 21:33 ` Glenn Morris
2012-02-22 23:02 ` Drew Adams [this message]
2012-02-22 23:51 ` Drew Adams
2012-02-23 3:57 ` Glenn Morris
2012-02-23 15:27 ` Drew Adams
2012-02-24 19:38 ` Eli Zaretskii
2012-02-25 12:16 ` Richard Stallman
2012-02-24 19:35 ` Eli Zaretskii
2012-02-24 19:47 ` Drew Adams
2012-02-25 3:30 ` Chong Yidong
2012-02-25 5:26 ` Stefan Monnier
2012-02-25 7:45 ` Eli Zaretskii
2012-02-25 6:54 ` Eli Zaretskii
2012-03-04 9:37 ` Chong Yidong
2012-03-04 17:06 ` Eli Zaretskii
2012-03-05 3:07 ` Chong Yidong
2012-03-05 17:28 ` Eli Zaretskii
2012-03-05 21:28 ` Stefan Monnier
2012-03-06 3:50 ` Eli Zaretskii
2012-03-06 20:45 ` Stefan Monnier
2012-03-06 21:12 ` Eli Zaretskii
2012-03-07 22:09 ` Stefan Monnier
2012-03-09 9:14 ` Eli Zaretskii
2012-03-09 16:35 ` Stefan Monnier
2012-03-09 16:46 ` Stefan Monnier
2012-03-12 8:36 ` Paul Eggert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CDFD77D79BBA4F11B02B4D97E471F547@us.oracle.com \
--to=drew.adams@oracle.com \
--cc=6830@debbugs.gnu.org \
--cc=rgm@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.