From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#41821: 28.0.50; read-directory-name in vc commands should provide defaults from projects Date: Mon, 29 Jun 2020 00:55:27 +0300 Organization: LINKOV.NET Message-ID: <87tuyuhn3k.fsf@mail.linkov.net> References: <87r1ulxk48.fsf@mail.linkov.net> <7164426e-8c37-8839-64da-563cfa829b53@yandex.ru> <87mu50j5cu.fsf@mail.linkov.net> <87y2oh8fdv.fsf@mail.linkov.net> <87366ohw5z.fsf@mail.linkov.net> <878sge7jls.fsf@mail.linkov.net> <7e136435-7123-fa42-e4a8-66b82e6595da@yandex.ru> <87pn9pxris.fsf@mail.linkov.net> <83d05ottnw.fsf@gnu.org> <0b42f540-f779-446b-4411-8dae3a50d09d@yandex.ru> <837dvwtrv1.fsf@gnu.org> <835zbgtqps.fsf@gnu.org> <625de669-0715-1467-0bd1-84328b4bee5f@yandex.ru> <83wo3ws4g8.fsf@gnu.org> <83tuyzs2np.fsf@gnu.org> <87pn9kcb3x.fsf@mail.linkov.net> <83eepz2rb3.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="62399"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: 41821@debbugs.gnu.org, dgutov@yandex.ru To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 29 00:23:28 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jpfhv-000G9Z-Vo for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 29 Jun 2020 00:23:27 +0200 Original-Received: from localhost ([::1]:47488 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jpfhv-000184-2f for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 28 Jun 2020 18:23:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36358) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jpfhW-0000jw-S1 for bug-gnu-emacs@gnu.org; Sun, 28 Jun 2020 18:23:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35608) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jpfhW-0003vs-JO for bug-gnu-emacs@gnu.org; Sun, 28 Jun 2020 18:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jpfhW-0004Gc-Fc for bug-gnu-emacs@gnu.org; Sun, 28 Jun 2020 18:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 Jun 2020 22:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41821 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 41821-submit@debbugs.gnu.org id=B41821.159338292416283 (code B ref 41821); Sun, 28 Jun 2020 22:23:02 +0000 Original-Received: (at 41821) by debbugs.gnu.org; 28 Jun 2020 22:22:04 +0000 Original-Received: from localhost ([127.0.0.1]:47150 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jpfga-0004EO-F4 for submit@debbugs.gnu.org; Sun, 28 Jun 2020 18:22:04 -0400 Original-Received: from relay9-d.mail.gandi.net ([217.70.183.199]:48851) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jpfgX-0004DM-35 for 41821@debbugs.gnu.org; Sun, 28 Jun 2020 18:22:02 -0400 X-Originating-IP: 91.129.96.187 Original-Received: from mail.gandi.net (m91-129-96-187.cust.tele2.ee [91.129.96.187]) (Authenticated sender: juri@linkov.net) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 6E582FF806; Sun, 28 Jun 2020 22:21:53 +0000 (UTC) In-Reply-To: <83eepz2rb3.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 28 Jun 2020 17:33:36 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:182496 Archived-At: >> > Why not have some relevant history in VC itself? >> >> Then like the project history currently is saved in ~/.emacs.d/projects >> saving of a separate vc-directory history will be duplicated the same way >> in e.g. ~/.emacs.d/vc-projects? > > Not necessarily duplicated, because no one said the projects I use > will necessarily visit all (indeed, even one of) the VC roots that I > will visit via VC commands. And vice versa. > > IOW, please don't assume that, because project.el can use the VC > backend, it will always use VC in the same directories. If the roots > are different, offering the same completion candidates will be > confusing and even annoying. OTOH, it would be confusing and annoying to have duplicate histories for users who prefer project.el solely for handling vc repositories. >> > Moreover, using a command such as "C-x v d" doesn't mean I want >> > project.el record that, again because I might be using project.el >> > commands for projects that aren't based on VC. >> >> Then project.el could have a customizable variable that will prevent >> recording vc project history. > > What for? let every layer record its own history, and then use the > relevant history in each layer. > >> > And if the history is collected by VC, it could be made available to >> > project.el commands that call into VC, right? >> >> You mean to record an internal vc-history separately from project.el, >> but still to save it in the same project file ~/.emacs.d/projects? > > No, I mean provide a possibility for project.el to access the history > saved in ~/.emacs.d/vc-history, in addition to project.el's own > history. If the user wants that. This is what I meant by a customizable variable mentioned above to toggle recording of a separate vc history.