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: Mon, 26 Jan 2015 19:34:25 +0200 Message-ID: <83y4opphsu.fsf@gnu.org> References: <8361cucl3u.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> <83zj96rgs3.fsf@gnu.org> <83k30ar7dk.fsf@gnu.org> <83fvayqenf.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1422293691 28957 80.91.229.3 (26 Jan 2015 17:34:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 26 Jan 2015 17:34:51 +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 Mon Jan 26 18:34:49 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 1YFnYl-0004CV-MJ for ged-emacs-devel@m.gmane.org; Mon, 26 Jan 2015 18:34:47 +0100 Original-Received: from localhost ([::1]:43194 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFnYl-0000xZ-7s for ged-emacs-devel@m.gmane.org; Mon, 26 Jan 2015 12:34:47 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52432) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFnYh-0000wV-H5 for emacs-devel@gnu.org; Mon, 26 Jan 2015 12:34:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YFnYe-0000iB-6H for emacs-devel@gnu.org; Mon, 26 Jan 2015 12:34:43 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:58038) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFnYd-0000hE-Ue for emacs-devel@gnu.org; Mon, 26 Jan 2015 12:34:40 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NIS00M00OM2O200@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Mon, 26 Jan 2015 19:34:38 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NIS00MGLOTPGU80@a-mtaout20.012.net.il>; Mon, 26 Jan 2015 19:34:37 +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.166 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:181796 Archived-At: > From: Stefan Monnier > Cc: dgutov@yandex.ru, emacs-devel@gnu.org > Date: Mon, 26 Jan 2015 10:11:09 -0500 > > >> Normally, this should magically happen when you visit a file in that > >> other project, at which point, your Emacs session has 2 projects active > >> and the user will then, when using project-dependent operations from > >> a buffer not explicitly linked to any project, choose which project to use. > > I have just described a few messages ago why this logic will sometimes > > misfire. > > I'm not sure which case you're referring to, but I have no doubt it won't > always do the right thing. As mentioned, there is no single solution > that will always do the right thing without reading the user's mind. > But this solution should provide predictable behavior and when it > doesn't automatically do what the user wants, it's easy for the user to > instruct tell Emacs what she wants (i.e. by switching buffer). Why not instruct Emacs without switching buffers? That seems easy enough, and eliminates an annoyance of the buffer switch.