From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs 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 Message-ID: <129DB02C013E4F3B9B4FF20BFF3D684E@us.oracle.com> References: <4CD96BA787BC4019878BF9804BA5BED7@us.oracle.com><3094FAF0D1184F7F97D964B8316BEC35@us.oracle.com> <87ty33xk73.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1328633121 22704 80.91.229.3 (7 Feb 2012 16:45:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 7 Feb 2012 16:45:21 +0000 (UTC) Cc: 10721@debbugs.gnu.org To: "'Chong Yidong'" , "'Stefan Monnier'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 07 17:45:20 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RuoAN-0003VQ-GA for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Feb 2012 17:45:15 +0100 Original-Received: from localhost ([::1]:34770 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuoAN-0002Uk-08 for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Feb 2012 11:45:15 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:43777) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuoAG-0002Na-Kh for bug-gnu-emacs@gnu.org; Tue, 07 Feb 2012 11:45:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RuoAD-000315-CP for bug-gnu-emacs@gnu.org; Tue, 07 Feb 2012 11:45:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55543) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuoAD-000311-Aw for bug-gnu-emacs@gnu.org; Tue, 07 Feb 2012 11:45:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1RuoB7-0007sD-K7 for bug-gnu-emacs@gnu.org; Tue, 07 Feb 2012 11:46:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Feb 2012 16:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10721 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10721-submit@debbugs.gnu.org id=B10721.132863311930211 (code B ref 10721); Tue, 07 Feb 2012 16:46:01 +0000 Original-Received: (at 10721) by debbugs.gnu.org; 7 Feb 2012 16:45:19 +0000 Original-Received: from localhost ([127.0.0.1]:59166 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RuoAQ-0007rE-JS for submit@debbugs.gnu.org; Tue, 07 Feb 2012 11:45:18 -0500 Original-Received: from acsinet15.oracle.com ([141.146.126.227]:48867) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RuoAN-0007qp-Jm for 10721@debbugs.gnu.org; Tue, 07 Feb 2012 11:45:16 -0500 Original-Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by acsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id q17GiB9G014672 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 7 Feb 2012 16:44:12 GMT Original-Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q17GiAZM020064 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 7 Feb 2012 16:44:11 GMT Original-Received: from abhmt106.oracle.com (abhmt106.oracle.com [141.146.116.58]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q17Gi9CA020283; Tue, 7 Feb 2012 10:44:09 -0600 Original-Received: from dradamslap1 (/10.159.44.70) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 07 Feb 2012 08:44:09 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <87ty33xk73.fsf@gnu.org> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Thread-Index: AczlXPBn1P0ZZSpaQCO5BwMA6aju/AAV77GQ X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-CT-RefId: str=0001.0A090206.4F3154DC.0126,ss=1,re=0.000,fgs=0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:56646 Archived-At: > 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.)