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, 22 Jun 2020 01:49:12 +0300 Organization: LINKOV.NET Message-ID: <87366ohw5z.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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="77336"; 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 To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 22 01:20:48 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 1jn9Ga-000K2K-FG for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 22 Jun 2020 01:20:48 +0200 Original-Received: from localhost ([::1]:38866 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jn9GZ-0000XO-Hg for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 21 Jun 2020 19:20:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55960) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jn9Fr-0007ep-CR for bug-gnu-emacs@gnu.org; Sun, 21 Jun 2020 19:20:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49511) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jn9Fr-0006gZ-2M for bug-gnu-emacs@gnu.org; Sun, 21 Jun 2020 19:20:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jn9Fq-0006Rx-UZ for bug-gnu-emacs@gnu.org; Sun, 21 Jun 2020 19:20: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, 21 Jun 2020 23:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41821 X-GNU-PR-Package: emacs Original-Received: via spool by 41821-submit@debbugs.gnu.org id=B41821.159278156024704 (code B ref 41821); Sun, 21 Jun 2020 23:20:02 +0000 Original-Received: (at 41821) by debbugs.gnu.org; 21 Jun 2020 23:19:20 +0000 Original-Received: from localhost ([127.0.0.1]:32817 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jn9FA-0006QO-2K for submit@debbugs.gnu.org; Sun, 21 Jun 2020 19:19:20 -0400 Original-Received: from relay10.mail.gandi.net ([217.70.178.230]:56817) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jn9F8-0006Q7-58 for 41821@debbugs.gnu.org; Sun, 21 Jun 2020 19:19:19 -0400 Original-Received: from mail.gandi.net (m91-129-108-6.cust.tele2.ee [91.129.108.6]) (Authenticated sender: juri@linkov.net) by relay10.mail.gandi.net (Postfix) with ESMTPSA id 62742240004; Sun, 21 Jun 2020 23:19:11 +0000 (UTC) In-Reply-To: (Dmitry Gutov's message of "Sun, 21 Jun 2020 03:12:22 +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:182264 Archived-At: >>> +;; Or use project-try-vc after all. But this should be faster in the >>> +;; event when there actually are non-VC based projects in the list. >>> +(defun vc--known-vc-roots () >>> + (require 'project) >>> + (defvar project--list) >>> + (project--ensure-read-project-list) >> >> Calling internal project.el functions from vc.el? Really? > > The alternative would be to create a function like that in project.el. > > But I hesitate to make it public, sorry. Why not? We have to decide which of them should be dependent. It would be fine either way: project.el to use vc.el public functions, or vice versa. >>> Personally, though, when I want behavior like this, I would probably just >>> type 'C-x p v'. >> 'C-x p v' is not a replacement for 'C-x v L'. > > 'C-x p v L', then? 'C-x v L' needs to provide a list of recently used repositories. Actually, this feature doesn't depend on project.el, so recently used repositories could be recorded independently without project.el. But it would be nice to share these directories between project.el and vc.el.