unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: 54228@debbugs.gnu.org
Cc: manuel.uberti@inventati.org
Subject: bug#54228: 29.0.50; project.el: Support local projects
Date: Fri, 04 Mar 2022 18:48:30 +0100	[thread overview]
Message-ID: <m1o82llic1.fsf@yahoo.es> (raw)
In-Reply-To: <c6b7c2f4-28a2-400e-04a8-dc30e5cbd84e@inventati.org> (Manuel Uberti via's message of "Thu, 3 Mar 2022 08:15:06 +0100")

Manuel Uberti via "Bug reports for GNU Emacs, the Swiss army knife of
text editors" <bug-gnu-emacs@gnu.org> writes:

> Hi,
>
> I attached a small patch which simply adds to project.el some code I
> have been using for a while for projects that I do not intend to handle with Git.
>
> The gist of it is that adding a `.project` (empty) file to the root
> directory of your project make it possible for commands such as 'C-x p
> f' to work on it.
>
> Is this of any interest?
>

I use similar code in my config.  It's specially useful for monorepos,
where there is only one big .git folder, but multiple projects that you
want to handle separately.

If we want to contribute this to project.el, I wonder if it makes sense
to generalize it a little bit by making ".project" the default value of
a customization variable.  That'd avoid the name clash with some Eclipse
files.  We could also detect files from common build systems, but I
don't know if that would be out of scope for the rather minimalist
project.el (vs projectile.el, for example).





  parent reply	other threads:[~2022-03-04 17:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-03  7:15 bug#54228: 29.0.50; project.el: Support local projects Manuel Uberti via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-03-03 12:36 ` Rudolf Schlatte
2022-03-04 17:48 ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2022-03-04 18:15   ` Manuel Uberti via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-03-05  1:31     ` Dmitry Gutov
2022-03-05  7:42       ` Manuel Uberti via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-03-05 16:15   ` Rudolf Adamkovič via Bug reports for GNU Emacs, the Swiss army knife of text editors

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=m1o82llic1.fsf@yahoo.es \
    --to=bug-gnu-emacs@gnu.org \
    --cc=54228@debbugs.gnu.org \
    --cc=manuel.uberti@inventati.org \
    --cc=mardani29@yahoo.es \
    /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).