all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: 10721@debbugs.gnu.org
Subject: bug#10721: 24.0.93; M-TAB for :type (file :must-match t) in Customize
Date: Sat, 4 Feb 2012 08:35:55 -0800	[thread overview]
Message-ID: <FC057DE62ABF4B3D85BA839DA9BF6DB7@us.oracle.com> (raw)

(elisp) `Simple Types' says "The value must be a file name
for an existing file, and you can do completion with `M-<TAB>'."

That's vague, but I would expect that the text in the edit field is
somehow completed.  The actual behavior is not described and somewhat
surprising.
 
When I try `M-TAB' in the edit field for a must-match file name, the set
of completion candidates displayed seems to be the file names that match
the text that follows, not precedes, point in the edit field.  And
matching seems to be substring matching rather than prefix matching.
 
Is that really what this is supposed to do?  Why is the text _after_
point "completed" (matched), rather than the text before point?
 
E.g. if the text in the field is "te" and point is on the `t' then I see
substring matches for "te".  If point is after the `e' then I see
matches for _all_ files in the `default-directory' (which hardly
"completes" the text in the edit field - it is apparently completing
the empty string).
 
If this is not the intended behavior, please fix according to what is
intended (whatever that is).
 
Whatever the behavior, please document it.  The doc in the manual is too
vague: "you can do completion with `M-<TAB>'".  It tells you nothing
about what "completion" behavior to expect.  In particular, it should
say what it is that is completed (which text), and it should say what
kind of matching is used - IOW, how the text that is completed is
matched against the names of the existing files.
 
In GNU Emacs 24.0.93.1 (i386-mingw-nt5.1.2600)
 of 2012-01-29 on MARVIN
Windowing system distributor `Microsoft Corp.', version 5.1.2600
Configured using:
 `configure --with-gcc (4.6) --no-opt --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 --ldflags
 -LD:/devel/emacs/libs/gnutls-3.0.9/lib'
 






             reply	other threads:[~2012-02-04 16:35 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-04 16:35 Drew Adams [this message]
2012-02-06 14:02 ` bug#10721: 24.0.93; M-TAB for :type (file :must-match t) in Customize 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
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=FC057DE62ABF4B3D85BA839DA9BF6DB7@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=10721@debbugs.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.