From: "Drew Adams" <drew.adams@oracle.com>
To: "'Chong Yidong'" <cyd@gnu.org>,
"'Stefan Monnier'" <monnier@iro.umontreal.ca>
Cc: 10721@debbugs.gnu.org
Subject: bug#10721: 24.0.93; M-TAB for :type (file :must-match t) in Customize
Date: Tue, 7 Feb 2012 08:44:05 -0800 [thread overview]
Message-ID: <129DB02C013E4F3B9B4FF20BFF3D684E@us.oracle.com> (raw)
In-Reply-To: <87ty33xk73.fsf@gnu.org>
> But if the recipe involves face names, the bug title is
> misleading. It appears that general inline completion in
> fields is broken
> nothing to do with (file :must-match t) types.
Correct - it seems that all such completion fields are broken (or at least all
that I have tried). The bug report mentioned `(file :must-match t)' because
that is where I first noticed this regression.
Here's another recipe, this time with `(file :must-match t)'. This provides a
little more info that might help: For file names, it seems that
`default-directory' is used, even if the input file name starts with "~/".
(defcustom foobar "~/.emacs"
""
:type '(file :must-match t)
:group 'convenience)
Note: "~/" is "c:/" for me. Change the default value of the option to a
corresponding file on your system, and change the rest of the recipe
accordingly.
`M-x customize-option foobar'
Put point after the `e' in "~/.emacs", and hit C-k, so the field text is "~/.e"
and point is after the `e'.
Hit M-TAB. All files in the _current directory_, are shown in *Completions*.
That is, (a) the "~/" is ignored, and `default-directory' is used for
completion, and (b) the file names shown do not necessarily contain `e'.
IOW, as with the previous desciptions I've given, the text before point is
ignored for matching.
If I put point before the `e' then *Completions* shows the names of all files in
"~/" that start with `.' and contain `e'.
I'm not sure what matching algorithm you're using - it does not include all
names that contain both `.' and `e' or `.' followed somewhere by `e'. It
contains only the names that start with `.' and contain `e' somewhere.
If I put point before the `.' then *Completions* apparently shows all names that
contain `.e' as a substring. (That's a very different set than when point is
between the `.' and `e'.)
If I put point before the `/' then Emacs says are no matches at all.
If I put point before the `~' then *Completions* shows only the file names that
contain a (literal) `~'.
(To me, besides the bug reported, this mix of matchings does not seem very user
friendly, but I do not expect you will agree about that.)
next prev parent reply other threads:[~2012-02-07 16:44 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-04 16:35 bug#10721: 24.0.93; M-TAB for :type (file :must-match t) in Customize Drew Adams
2012-02-06 14:02 ` Stefan Monnier
2012-02-06 15:36 ` Drew Adams
2012-02-06 21:01 ` Stefan Monnier
2012-02-06 21:26 ` Drew Adams
2012-02-07 2:52 ` Stefan Monnier
2012-02-07 5:54 ` Chong Yidong
2012-02-07 16:44 ` Drew Adams [this message]
2012-03-10 9:26 ` Chong Yidong
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=129DB02C013E4F3B9B4FF20BFF3D684E@us.oracle.com \
--to=drew.adams@oracle.com \
--cc=10721@debbugs.gnu.org \
--cc=cyd@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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.