From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Project support and completions Date: Fri, 30 Jan 2015 13:14:42 -0500 Message-ID: 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1422641719 15096 80.91.229.3 (30 Jan 2015 18:15:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Jan 2015 18:15:19 +0000 (UTC) Cc: emacs-devel@gnu.org, dgutov@yandex.ru, John Yates To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 30 19:15:18 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 1YHG69-0003oJ-VX for ged-emacs-devel@m.gmane.org; Fri, 30 Jan 2015 19:15:18 +0100 Original-Received: from localhost ([::1]:38132 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHG68-0006TY-QV for ged-emacs-devel@m.gmane.org; Fri, 30 Jan 2015 13:15:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45230) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHG64-0006Sc-V8 for emacs-devel@gnu.org; Fri, 30 Jan 2015 13:15:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YHG63-0006s4-Tf for emacs-devel@gnu.org; Fri, 30 Jan 2015 13:15:12 -0500 Original-Received: from mercure.iro.umontreal.ca ([132.204.24.67]:56838) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHG60-0006pg-7o; Fri, 30 Jan 2015 13:15:08 -0500 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 01962850F3; Fri, 30 Jan 2015 13:15:07 -0500 (EST) Original-Received: from lechon.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 941761E5B8B; Fri, 30 Jan 2015 13:14:42 -0500 (EST) Original-Received: by lechon.iro.umontreal.ca (Postfix, from userid 20848) id 632ECB4102; Fri, 30 Jan 2015 13:14:42 -0500 (EST) In-Reply-To: <83k304l1qg.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 30 Jan 2015 17:36:23 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82, MC_TSTLAST 0.00) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 132.204.24.67 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:182083 Archived-At: > 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. Stefan