From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Making project-files the "canonical" generic Date: Fri, 18 Jan 2019 04:00:01 +0300 Message-ID: References: <20180922154639.23195.66360@vcs0.savannah.gnu.org> <20180922154640.9D58220310@vcs0.savannah.gnu.org> <54108dbc-9d12-06ff-3f1d-151118e9b234@yandex.ru> <4e729d1e-bb31-455f-fd44-e99ae5a6b9fa@yandex.ru> <86zhs5r9lr.fsf_-_@stephe-leake.org> <08de4d90-d678-0524-9356-f9a3515bf0c4@yandex.ru> <86a7k2rabi.fsf@stephe-leake.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1547773120 22472 195.159.176.226 (18 Jan 2019 00:58:40 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 18 Jan 2019 00:58:40 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:65.0) Gecko/20100101 Thunderbird/65.0 Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 18 01:58:36 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gkIUW-0005kE-4Q for ged-emacs-devel@m.gmane.org; Fri, 18 Jan 2019 01:58:36 +0100 Original-Received: from localhost ([127.0.0.1]:58203 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gkIWc-0007M0-Uw for ged-emacs-devel@m.gmane.org; Thu, 17 Jan 2019 20:00:46 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59980) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gkIVz-0007LH-Ik for emacs-devel@gnu.org; Thu, 17 Jan 2019 20:00:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gkIVy-00009p-RQ for emacs-devel@gnu.org; Thu, 17 Jan 2019 20:00:07 -0500 Original-Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f]:41735) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gkIVy-00008k-EU for emacs-devel@gnu.org; Thu, 17 Jan 2019 20:00:06 -0500 Original-Received: by mail-lf1-x12f.google.com with SMTP id c16so9245216lfj.8 for ; Thu, 17 Jan 2019 17:00:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=qk+sZwGSFRlY2r+4A+TB//iBLwUTnpkzcdy8IBHjads=; b=qi/hT6MSTg6KOsyzqXjHzz4kdwYd/o7E0rw5eWo0Nk3Q24l4jeuljrM1Dd8NttbDpg ttekROLBaGKerbx+JR/+OYhEz4owhObWNkhXTPvRuvEMw/L4Io7MZG1FiXtQ+SvI4h/T sfLw37Mr71UjUZ9BIJ8LqEnVGu2OzhtvgrFJfFD544Up4nIRcqOKj+7fFqDmgCYq9PVj a9yha+vCSbtqrHnmtpOoG+42staMcbkxZrIntcaiw6tGrjuOAKGhfTlJwAdRFVF8XXel 3khIU6CzXyGdIwNmdMZVwJsmuBjc4WPgR8F4Y5W2MsHHueuE49eu1/zRz+cMQy1uEqd5 TfLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=qk+sZwGSFRlY2r+4A+TB//iBLwUTnpkzcdy8IBHjads=; b=f81zSsQfuoYu9+L2igk61OWhjLF7uhaXMTxi3vOJ0Tan35N+bei3zeeBO8KrQm43It 7N3zirsRIZGkMEJ+oyeYsb3FrseVDGgudG563wWY7JEzhixOX/AzgnJNU/Dps/Jqiov0 LegFpj7KC3HOln7aT6dXx7t/rZOB5649VEvbJdpit7FCjfGfAM7w2DgzqxMV56TVQerF EcvVYsVOusPSZbbWhO/g9tjQOhJX7svJn15moAa/5vmDQhoZUg888qMFLRl5bL0u5KGQ oXOIJSrV6T7PIsWy84EfR3KqArpYi6cI7pJr7MpH3A+AZdR0acN3B3km+pJYaSsqdA3y 3siA== X-Gm-Message-State: AJcUukdc+JzGqKyvz9A6LcQPksS8OcNayYMeYIN/qCfuWg1aOKQDuRAW Jc+I53XMUQ65E4NaddoZw+vOGKWY X-Google-Smtp-Source: ALg8bN4JQzvKjyy/++9jUG1fQyJGFva9UqakNE3qz+s+KR8dkRlp6Z7qdDrgHQFIe7Ej8174J9YK+w== X-Received: by 2002:a19:1cb:: with SMTP id 194mr11451573lfb.61.1547773204270; Thu, 17 Jan 2019 17:00:04 -0800 (PST) Original-Received: from [192.168.0.108] ([79.175.3.65]) by smtp.googlemail.com with ESMTPSA id c15-v6sm489535ljf.76.2019.01.17.17.00.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Jan 2019 17:00:03 -0800 (PST) In-Reply-To: Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::12f X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:232447 Archived-At: On 17.01.2019 16:25, Stefan Monnier wrote: >> But again, why allow it? > > For example because of backward compatibility. We still consider project.el "experimental", and we should be allowed to roll back on bad ideas. > Or because there is one example of its possible use. The sole goal of that example is to change the UI of project-find-file for its backend, and for that backend only. That doesn't seem like a worthy goal. And right now project-find-file is incompatible with that completion table. The obvious move it to make it use project-files instead, and thus project-file-completion-table entirely unused. Another fix could be to (try to?) move the common-parent-directory logic into the default completion table. Not sure if it's feasible, but you could prove me wrong. In that case, though, different project backends will be able to show different UIs to the users. > Why disallow it? Per-backend, non-user-customizable UIs are bad. And we've seen no other use cases so far.