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: Fri, 30 Jan 2015 23:34:28 +0200 Message-ID: <83d25wkl5n.fsf@gnu.org> References: <8361cucl3u.fsf@gnu.org> <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> <54C429D8.6010302@yandex.ru> <83twzerges.fsf@gnu.org> <838ugkn62m.fsf@gnu.org> <83k304l1qg.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1422653683 16161 80.91.229.3 (30 Jan 2015 21:34:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Jan 2015 21:34:43 +0000 (UTC) Cc: dgutov@yandex.ru, john@yates-sheets.org, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 30 22:34:43 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 1YHJD7-0008Tx-Gh for ged-emacs-devel@m.gmane.org; Fri, 30 Jan 2015 22:34:41 +0100 Original-Received: from localhost ([::1]:38819 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHJD6-0001k8-KF for ged-emacs-devel@m.gmane.org; Fri, 30 Jan 2015 16:34:40 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35055) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHJD2-0001jU-Ue for emacs-devel@gnu.org; Fri, 30 Jan 2015 16:34:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YHJCy-00024T-6V for emacs-devel@gnu.org; Fri, 30 Jan 2015 16:34:36 -0500 Original-Received: from mtaout25.012.net.il ([80.179.55.181]:60333) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHJCx-00023V-UI for emacs-devel@gnu.org; Fri, 30 Jan 2015 16:34:32 -0500 Original-Received: from conversion-daemon.mtaout25.012.net.il by mtaout25.012.net.il (HyperSendmail v2007.08) id <0NJ000L00E9AQU00@mtaout25.012.net.il> for emacs-devel@gnu.org; Fri, 30 Jan 2015 23:29:37 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout25.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NJ000L9AEDDYW00@mtaout25.012.net.il>; Fri, 30 Jan 2015 23:29:37 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.181 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:182096 Archived-At: > From: Stefan Monnier > Date: Fri, 30 Jan 2015 13:14:42 -0500 > Cc: emacs-devel@gnu.org, dgutov@yandex.ru, John Yates > > > better. You could do this via find-file-hook, for example, or some > > other device. Emacs has enough features that can be used for this. > > The files of the various branches may (and often are) all be opened at > the same time. I "switch project" simply by moving from one buffer > to another (which often amounts to moving the mouse from one window to > another). > > Often I switch back-and-forth repeatedly, e.g. while comparing the code > in the different branches, and I'd want M-. to always jump to the > corresponding code. So "switch project" needs to be fully implicit. Fine, then this use case should be added to requirements. It doesn't invalidate others, though. > Determining the current project dynamically based on default-directory > is the most obvious and straightforward way to make it work. That's one implementation, but it's not the only one.