all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dmitry Gutov <dgutov@yandex.ru>
To: Tom Tromey <tom@tromey.com>, 26612@debbugs.gnu.org
Subject: bug#26612: 25.2; find-file.el -vs- project.el
Date: Mon, 1 May 2017 05:05:27 +0300	[thread overview]
Message-ID: <3c1c8559-f70e-f27c-ef0c-59de3b16a282@yandex.ru> (raw)
In-Reply-To: <87bmro42lt.fsf@tromey.com>

Hi Tom,

On 22.04.2017 23:19, Tom Tromey wrote:
> 
> I use find-file.el to switch between headers and implementations for C
> and C++ code.
> 
> It seems like it would be a good idea for this to integrate with
> project.el, so that if a project is set up, by default
> ff-find-other-file will look in the project's directories for the
> relevant file.

It sounds useful, at least for C/C++ programmers.

What would that command be called, though? And what generic function(s) 
on projects will we need to add?

Ideally, this would help different kinds of projects, but if the 
C/C++-specific command is easier to do by itself, that's okay too.

For instance, we already have project-roots, and all directories that 
don't match project-ignores are considered to be inside the project.

So maybe do a search inside project-file-completion-table, for a file 
name matching the current (but with swapped extension)?





  reply	other threads:[~2017-05-01  2:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-22 20:19 bug#26612: 25.2; find-file.el -vs- project.el Tom Tromey
2017-05-01  2:05 ` Dmitry Gutov [this message]
2017-08-06  0:41   ` Tom Tromey
2017-08-06 20:59     ` 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

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

  git send-email \
    --in-reply-to=3c1c8559-f70e-f27c-ef0c-59de3b16a282@yandex.ru \
    --to=dgutov@yandex.ru \
    --cc=26612@debbugs.gnu.org \
    --cc=tom@tromey.com \
    /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.