all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Felician Nemeth <felician.nemeth@gmail.com>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: Eli Zaretskii <eliz@gnu.org>, Damien Cassou <damien@cassou.me>,
	emacs-devel@gnu.org
Subject: Re: Comparison of tools to search for related files
Date: Thu, 06 Oct 2022 18:50:49 +0200	[thread overview]
Message-ID: <87k05crj4m.fsf@betli.tmit.bme.hu> (raw)
In-Reply-To: <87zge9ywyf.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 06 Oct 2022 14:10:16 +0200")

>> I'm also interested in the opinions of others.

As a developer of foo-mode, I'd like to implement a related file
functionality for just one backend (find-file or related-file).  As a
user, I'd like to bind just one (global) key to this functionality and
be ignorant how foo-mode or bar-mode implements it.

To paraphrase what Lars wrote earlier, we had
completion-at-point-functions providing a clear completion API between
backends and frontends.  Does a similar API exist for related files?

If I understand correctly find-sibling-file primarily solves a
different problem: to easily switch among different versions of the same
file when for example multiple branches of a project is checked out in
parallel.

But maybe I misunderstand the purpose of related-files.el.  If it's the
user who configures related-files because the user has a special naming
convention, for example, to have files like page.html, page.css,
page.js, then I don't think a common API is necessary.  Then users can
choose to configure whatever package they like.



  reply	other threads:[~2022-10-06 16:50 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-05 20:51 Comparison of tools to search for related files Damien Cassou
2022-09-06  4:26 ` Stefan Monnier
2022-09-06  4:45   ` Emanuel Berg
2022-09-06 12:52     ` Stefan Monnier
2022-09-06  7:22   ` Rudolf Schlatte
2022-09-06 13:00   ` Eli Zaretskii
2022-09-06 12:59 ` Eli Zaretskii
2022-10-06  6:37 ` Damien Cassou
2022-10-06 11:16   ` Eli Zaretskii
2022-10-06 12:10     ` Lars Ingebrigtsen
2022-10-06 16:50       ` Felician Nemeth [this message]
2022-10-13  7:20         ` Damien Cassou
2022-10-14 21:24           ` Richard Stallman
2022-10-17 18:34             ` Damien Cassou

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k05crj4m.fsf@betli.tmit.bme.hu \
    --to=felician.nemeth@gmail.com \
    --cc=damien@cassou.me \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=larsi@gnus.org \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.