From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Project support and completions Date: Sun, 25 Jan 2015 18:01:16 +0200 Message-ID: <83zj96rgs3.fsf@gnu.org> References: <8361cucl3u.fsf@gnu.org> <83vbkl99vm.fsf@gnu.org> <54B8878A.4050506@yandex.ru> <54B8C22B.3080200@gmx.at> <54BC7A77.5020307@yandex.ru> <54BCC033.2010104@gmx.at> <83oapuy8ew.fsf@gnu.org> <54BDC34C.5070309@yandex.ru> <83wq4hwejl.fsf@gnu.org> <54BEBF63.9050709@yandex.ru> <8361c0w16n.fsf@gnu.org> <54C063E3.8020401@yandex.ru> <83a91avglz.fsf@gnu.org> <54C1655E.4050403@yandex.ru> <83r3uluawd.fsf@gnu.org> <54C28635.8070606@yandex.ru> <83twzhryyq.fsf@gnu.org> <54C2C9DC.1050908@yandex.ru> <83h9vgsehi.fsf@gnu.org> <54C3E7B6.2020006@yandex.ru> <837fwbstls.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1422201716 28028 80.91.229.3 (25 Jan 2015 16:01:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 25 Jan 2015 16:01:56 +0000 (UTC) Cc: emacs-devel@gnu.org, dgutov@yandex.ru To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 25 17:01:52 2015 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 1YFPdH-0006Ay-RZ for ged-emacs-devel@m.gmane.org; Sun, 25 Jan 2015 17:01:51 +0100 Original-Received: from localhost ([::1]:38103 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFPdG-00036b-TI for ged-emacs-devel@m.gmane.org; Sun, 25 Jan 2015 11:01:50 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53600) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFPd4-00036U-Tm for emacs-devel@gnu.org; Sun, 25 Jan 2015 11:01:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YFPd0-0003IX-32 for emacs-devel@gnu.org; Sun, 25 Jan 2015 11:01:38 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:49840) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFPcz-0003IJ-RF for emacs-devel@gnu.org; Sun, 25 Jan 2015 11:01:34 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NIQ00F00PU9F100@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Sun, 25 Jan 2015 18:01:32 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NIQ00FMUPUJ6L50@a-mtaout22.012.net.il>; Sun, 25 Jan 2015 18:01:32 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.172 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:181750 Archived-At: > From: Stefan Monnier > Cc: Dmitry Gutov , emacs-devel@gnu.org > Date: Sun, 25 Jan 2015 10:01:03 -0500 > > > For example, it sounds to me that by having an "add project" and > > "remove project" commands, we can give the user the ability to tell > > which projects' databases of symbols are relevant to what she is doing > > now. > > I'd rather have something more declarative. E.g. let the user specify > that some projects are linked Works for me. > such that whenever you're in a buffer that belongs to one of those > linked projects, Emacs knows that it should take the other linked > projects into account. This will not always DWIM. For example, it could be that a buffer belongs to none of the projects known to Emacs, in which case Emacs should somehow fall back to "the last used project", whatever that means. A case in point is when I compose mail about some problem I have working on a project. Second, sometimes I go to another buffer temporarily, for whatever reasons, like to see how a certain problem was solved there. But I still am working on the same project I was before I switched buffers, not on that other buffer's project. So there should be a way to tell Emacs about these use cases, otherwise the feature will still annoy. I don't see how automatic inference based on the current buffer can cater to those use cases. IOW, I think there should be support for "I only work on one project at a time" kind of users, which means "don't switch projects on me unless I approve".