From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: find-file-project Date: Thu, 7 Jan 2016 20:09:51 +0300 Message-ID: <568E9BDF.1020601@yandex.ru> References: <86pp1j4ejm.fsf@stephe-leake.org> <55F899EA.7050700@yandex.ru> <86lhc73wog.fsf@stephe-leake.org> <55F8F2FA.6060902@yandex.ru> <867fnq1oe9.fsf@stephe-leake.org> <55F9A13A.3070101@yandex.ru> <55FB01BD.1070909@yandex.ru> <568C6DE5.8040201@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1452186631 22648 80.91.229.3 (7 Jan 2016 17:10:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 Jan 2016 17:10:31 +0000 (UTC) Cc: Stephen Leake , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 07 18:10:26 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aHE4m-0002WJ-Ua for ged-emacs-devel@m.gmane.org; Thu, 07 Jan 2016 18:10:17 +0100 Original-Received: from localhost ([::1]:59748 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHE4m-0000jx-1X for ged-emacs-devel@m.gmane.org; Thu, 07 Jan 2016 12:10:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60349) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHE4V-0000jp-2m for emacs-devel@gnu.org; Thu, 07 Jan 2016 12:09:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aHE4Q-0006Nj-TR for emacs-devel@gnu.org; Thu, 07 Jan 2016 12:09:59 -0500 Original-Received: from mail-lb0-x22a.google.com ([2a00:1450:4010:c04::22a]:34188) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHE4Q-0006ME-Mb for emacs-devel@gnu.org; Thu, 07 Jan 2016 12:09:54 -0500 Original-Received: by mail-lb0-x22a.google.com with SMTP id pv2so226933348lbb.1 for ; Thu, 07 Jan 2016 09:09:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=q02Zqn4BKfO4DkHBr//VSd/lwqPnOrAHaWYd+/Kmuns=; b=XGW23BtQe3hRWm8dOp9JPKlH04voFRlDNdrvb8jIFirtB6qmA8EEOfYMqVWtAlEmx8 Dc7KXVRXVT1Zu96gBqShmrzY0ROgfAPDabLKvV/eiNqwRPowC/R8bhfGHnQ9Gq0elusW mUGTnBWp0/XkBxxz0G0fpEbpYU3djyBfpkbtU7zLNgVt3YPykA4bdKmfmy3sgLxGL1s8 RTZzjXWwKnDMWhtZ7TudDpLTvT9YsIlw1rTY/JNAfHeEJQop4hJJycpsEyZNxelcXhvO 5tgjb0qopFWpF6YpxV0mnbqs+hQuBrxb622hNKcNNxug47ENmjUhiyvHTy2QZyR7jblh nf+Q== X-Received: by 10.112.167.165 with SMTP id zp5mr37034896lbb.78.1452186593772; Thu, 07 Jan 2016 09:09:53 -0800 (PST) Original-Received: from [192.168.1.190] ([178.252.127.222]) by smtp.googlemail.com with ESMTPSA id f186sm6873761lfd.26.2016.01.07.09.09.52 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 07 Jan 2016 09:09:52 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:43.0) Gecko/20100101 Thunderbird/43.0 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c04::22a X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:197738 Archived-At: On 01/07/2016 07:52 AM, Stefan Monnier wrote: > I'm not sure I understand the question. This category is only there so > people can tweak the completion style for this particular use of > completion, so I think `project-file' is OK. I was asking if the category should be more coarse than this. But if you think this one's okay, great! > Maybe what you're getting it at, is that maybe we should introduce > a notion of hierarchy within "categories". I think we can do that later > if/when the need arise. Yes, shouldn't be hard. >> + (unicode-name (styles . (basic substring))) >> + (project-file (styles . (basic substring partial-completion)))) > ^^^^^^^^^^^^^^^^^^ > This should not be needed since it's already in completion-styles. Oh, that's a bit surprising: going by the docstrings (the `completion-styles' docstring, at least), the values in completion-category-defaults are supposed to "override" completion-styles (which I take to mean "replace"), not just get prepended. In this case, either way's fine, but there's a discrepancy with the manual as well: the bottom of (info "(emacs) Completion Styles") says: You can use different completion styles in different situations, by setting the variable ‘completion-category-overrides’. For example, the default setting says to use only ‘basic’ and ‘substring’ completion for buffer names. Note the word "only".