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 18:11:47 +0300 Message-ID: <83h7v7xf7w.fsf@gnu.org> References: <87bllfqj82.fsf@warpmail.net> <83o8pfxhzq.fsf@gnu.org> <83imfnxgt3.fsf@gnu.org> <626efe11-0f9c-081b-11dd-0d61cee8168d@yandex.ru> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="105149"; mail-complaints-to="usenet@ciao.gmane.io" Cc: philip@warpmail.net, theo@thornhill.no, emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jun 19 17:12:57 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 1jmIhN-000RD8-Gj for ged-emacs-devel@m.gmane-mx.org; Fri, 19 Jun 2020 17:12:57 +0200 Original-Received: from localhost ([::1]:52090 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jmIhM-0005dr-HU for ged-emacs-devel@m.gmane-mx.org; Fri, 19 Jun 2020 11:12:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52650) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jmIge-0004rm-8t for emacs-devel@gnu.org; Fri, 19 Jun 2020 11:12:12 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:48055) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jmIgc-0008Kw-NZ; Fri, 19 Jun 2020 11:12:10 -0400 Original-Received: from [176.228.60.248] (port=1711 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jmIgR-00005m-6s; Fri, 19 Jun 2020 11:12:08 -0400 In-Reply-To: <626efe11-0f9c-081b-11dd-0d61cee8168d@yandex.ru> (message from Dmitry Gutov on Fri, 19 Jun 2020 17:49:00 +0300) 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:252369 Archived-At: > Cc: philip@warpmail.net, emacs-devel@gnu.org > From: Dmitry Gutov > Date: Fri, 19 Jun 2020 17:49:00 +0300 > > On 19.06.2020 17:37, Eli Zaretskii wrote: > > >>> Switch to another buffer related to the current project. > >>> A buffer is related to a project if its `default-directory' > >>> is inside the directory hierarchy of the project's root. > >> > >> Sounds good. Except some projects can be inside one another, too. > > > Does that invalidate what the text above says? > > If the current project contains a few other projects inside of its > subdirectories, project-switch-to-buffer probably should offer any of > "their" buffers for switching. "Should" or "should not"? If the former, then the text I proposed is fine as it is. > > Maybe we should step back and talk about the intended uses of this > > command? When would you want to switch to a buffer whose name you > > don't know in advance? > > When don't I? Do you use icomplete, or something similar? > > As soon as you start relying on completion hints, you don't need to > remember the names in advance. And it's also a good overview of the > current open buffers in the current project. If this is just for completion's sake, then I could understand, but still it sounds very strange to include stuff like *XREF*, Eshell, Occur, *Compilation*, *Grep*, etc. Those are basically singletons, at least by default, and a simple "C-x b" should be enough to switch to them. project-switch-to-buffer should be more helpful by offering only "useful" buffers. > Also, different projects can have files with conflicting names. That cannot be solved by completion, where only the basename is usually shown.