From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.devel Subject: Re: Project support and completions Date: Sun, 01 Feb 2015 14:42:00 -0600 Message-ID: <85k301cqjr.fsf@stephe-leake.org> References: <8361cucl3u.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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1422823356 11755 80.91.229.3 (1 Feb 2015 20:42:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 Feb 2015 20:42:36 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 01 21:42:32 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 1YI1Lj-0001qJ-US for ged-emacs-devel@m.gmane.org; Sun, 01 Feb 2015 21:42:32 +0100 Original-Received: from localhost ([::1]:51871 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YI1Lj-0007TB-B4 for ged-emacs-devel@m.gmane.org; Sun, 01 Feb 2015 15:42:31 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35246) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YI1Lf-0007QU-EQ for emacs-devel@gnu.org; Sun, 01 Feb 2015 15:42:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YI1Lb-0005UV-9w for emacs-devel@gnu.org; Sun, 01 Feb 2015 15:42:27 -0500 Original-Received: from gproxy10-pub.mail.unifiedlayer.com ([69.89.20.226]:40840) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1YI1Lb-0005M8-2B for emacs-devel@gnu.org; Sun, 01 Feb 2015 15:42:23 -0500 Original-Received: (qmail 3248 invoked by uid 0); 1 Feb 2015 20:42:16 -0000 Original-Received: from unknown (HELO cmgw4) (10.0.90.85) by gproxy10.mail.unifiedlayer.com with SMTP; 1 Feb 2015 20:42:16 -0000 Original-Received: from host114.hostmonster.com ([74.220.207.114]) by cmgw4 with id nFi91p00m2UdiVW01FiC8r; Sun, 01 Feb 2015 20:42:14 -0700 X-Authority-Analysis: v=2.1 cv=GubRpCFC c=1 sm=1 tr=0 a=CQdxDb2CKd3SRg4I0/XZPQ==:117 a=CQdxDb2CKd3SRg4I0/XZPQ==:17 a=DsvgjBjRAAAA:8 a=f5113yIGAAAA:8 a=TeMFXEv2S7AA:10 a=9i_RQKNPAAAA:8 a=hEr_IkYJT6EA:10 a=jrwKn-8xaegA:10 a=0HtSIViG9nkA:10 a=O3R6p12ocgtDOK9hYWMA:9 Original-Received: from [70.94.38.149] (port=54934 helo=takver) by host114.hostmonster.com with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.82) (envelope-from ) id 1YI1LP-0002R1-G1 for emacs-devel@gnu.org; Sun, 01 Feb 2015 13:42:11 -0700 In-Reply-To: (Stefan Monnier's message of "Fri, 30 Jan 2015 13:14:42 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (windows-nt) X-Identified-User: {2442:host114.hostmonster.com:stephele:stephe-leake.org} {sentby:smtp auth 70.94.38.149 authed with stephen_leake@stephe-leake.org} X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 69.89.20.226 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:182217 Archived-At: Stefan Monnier writes: >> 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. > Determining the current project dynamically based on default-directory > is the most obvious and straightforward way to make it work. I agree this is one mode that is useful. Another useful mode is "only switch on user command. Is there any reason we can't have both? -- -- Stephe