From: Chu Maeda <maedaqu@gmail.com>
To: Dmitry Gutov <dmitry@gutov.dev>
Cc: 74614@debbugs.gnu.org
Subject: bug#74614: Fwd: bug#74614: Problem of finding the project root when working on submodules of a submodule
Date: Tue, 3 Dec 2024 10:25:14 +0800 [thread overview]
Message-ID: <CAEhDdq8WTS6Cd+Dsr+nkbm8JudJ0dOafnTjLuiYv6fp0yjiFrw@mail.gmail.com> (raw)
In-Reply-To: <61ff7773-b4f6-4e22-9f36-10adcc13fc29@gutov.dev>
[-- Attachment #1: Type: text/plain, Size: 1252 bytes --]
It works. Thanks.
Dmitry Gutov <dmitry@gutov.dev> 于2024年12月3日周二 10:15写道:
> On 02/12/2024 07:15, Chu Maeda wrote:
> >
> > Of course, I created such a project on github, you could clone it by
> > command:
> >
> > git clone --recurse-submodules https://github.com/chu-mirror/A.git
> > <https://github.com/chu-mirror/A.git>
> >
> > The problem is clear when you open the file A/B/C/README.md, and run
> > command project-find-file(C-x p f by default)
>
> Thanks!
>
> It seems we should switch from checking for modules once to doing it in
> a loop. Try this out:
>
> diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el
> index cf1c94a6d20..3cc063a5d99 100644
> --- a/lisp/progmodes/project.el
> +++ b/lisp/progmodes/project.el
> @@ -591,7 +591,7 @@ project-try-vc--search
> last-matches))
> vc-handled-backends))
> project)
> - (when (and
> + (while (and
> (eq backend 'Git)
> (project--vc-merge-submodules-p root)
> (project--submodule-p root))
>
> Note you might need to restart Emacs after applying the patch, because
> the directory->project relation is currently cached until restart.
>
[-- Attachment #2: Type: text/html, Size: 1875 bytes --]
next prev parent reply other threads:[~2024-12-03 2:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-30 2:35 bug#74614: Problem of finding the project root when working on submodules of a submodule Chu Maeda
2024-12-02 2:14 ` Dmitry Gutov
[not found] ` <CAEhDdq9pdB9HP9M61_Hs7Dh0ea3=oLBjwxwDnh1KGHHO=z1WcQ@mail.gmail.com>
2024-12-02 5:15 ` bug#74614: Fwd: " Chu Maeda
2024-12-03 2:14 ` Dmitry Gutov
2024-12-03 2:25 ` Chu Maeda [this message]
2024-12-03 2:39 ` Dmitry Gutov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAEhDdq8WTS6Cd+Dsr+nkbm8JudJ0dOafnTjLuiYv6fp0yjiFrw@mail.gmail.com \
--to=maedaqu@gmail.com \
--cc=74614@debbugs.gnu.org \
--cc=dmitry@gutov.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).