From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: master 1e3b0f2: Improve doc strings of project.el Date: Fri, 19 Jun 2020 21:03:03 +0300 Message-ID: <83a70zx7ag.fsf@gnu.org> References: <87bllfqj82.fsf@warpmail.net> <83o8pfxhzq.fsf@gnu.org> <83imfnxgt3.fsf@gnu.org> <83eeqbxevp.fsf@gnu.org> <87bllfnjy5.fsf@thornhill.no> <83d05vx9or.fsf@gnu.org> <877dw3ne2z.fsf@thornhill.no> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="38206"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, dgutov@yandex.ru To: Theodor Thornhill Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jun 19 20:07:05 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jmLPr-0009oh-NA for ged-emacs-devel@m.gmane-mx.org; Fri, 19 Jun 2020 20:07:03 +0200 Original-Received: from localhost ([::1]:38236 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jmLPq-0006pL-OV for ged-emacs-devel@m.gmane-mx.org; Fri, 19 Jun 2020 14:07:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44134) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jmLMJ-00040X-59 for emacs-devel@gnu.org; Fri, 19 Jun 2020 14:03:23 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:52662) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jmLMI-0005PA-OZ; Fri, 19 Jun 2020 14:03:22 -0400 Original-Received: from [176.228.60.248] (port=4251 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jmLMB-0000H7-Er; Fri, 19 Jun 2020 14:03:21 -0400 In-Reply-To: <877dw3ne2z.fsf@thornhill.no> (message from Theodor Thornhill on Fri, 19 Jun 2020 17:46:36 +0000) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:252388 Archived-At: > Date: Fri, 19 Jun 2020 17:46:36 +0000 > From: Theodor Thornhill > Cc: dgutov@yandex.ru, emacs-devel@gnu.org > > If for instance the project-switch-to-buffer should have to know > everything about every imaginable combination of interesting derivates > of a project, then I believe that would be a quite a bit larger > function (or at least a huge curated map of sorts). What I had in mind was a simple filtering by major mode, not unlike the current filtering by default-directory. How complicate could that be? > What I am thinking, surely without knowing all the intricacies here, is > that maybe the "switch-to-buffer" and "kill-buffers" also should be > defgenerics? Then the implementation of what to show can be put off for > later, and the "(head vc)" version can be decided now? I don't see how this is relevant. Whether the function we are talking about is switch-to-buffer or project-switch-to-buffer, the problems it will need to solve are the same, and the questions we need to answer are the same. My point was and remains that using default-directory as the single criterion for deciding whether a buffer should be offered as completion candidate to switch while working on a project, sounds like not the best idea, since it will pick up many buffers to which users are unlikely to want to switch as part of working on the project. > Otherwise, I guess the user has to specify a set of patterns, or at > least decide on major-modes to include, and that would seem like a > hassle to me. That is a one-time decision, when you start a project and decide what kind of a project will it be.