From: Evan Driscoll <evaned@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Using ffap to open paths relative to a different directory
Date: Fri, 6 Dec 2013 14:53:54 -0600 [thread overview]
Message-ID: <CAAR9PsXcHSM5hFggmmgC8ZgkSA_UT3n_ZixpsQ+bfn-7AvPoPQ@mail.gmail.com> (raw)
At my place of work, for our C/C++ projects we have a directory
structure such as:
src
+--- dir1
| +---- subdir1
| +---- library.h
+--- dir2
+---- prog.c
where source and headers are in the same directory (though that
doesn't really matter for this question).
We "always" provide full include paths relative to src/, so for
example if src/dir2/prog.c needs to include library.h, it will say
#include "dir1/subdir1/library.h"
and then the files will be compiled with src/ in the include paths.
The problem is that ffap doesn't work on these paths, presumably
because it looks for dir1/subdir1/library.h relative to src/dir2 (the
location of the file that contains that line). Is there a way I can
configure it with a set of directories (really even a single directory
would be sufficient) to get it to work nicely in our environment? Or
an alternative to ffap that will do so?
Thanks,
Evan
next reply other threads:[~2013-12-06 20:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-06 20:53 Evan Driscoll [this message]
2013-12-07 14:55 ` Using ffap to open paths relative to a different directory Kevin Rodgers
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=CAAR9PsXcHSM5hFggmmgC8ZgkSA_UT3n_ZixpsQ+bfn-7AvPoPQ@mail.gmail.com \
--to=evaned@gmail.com \
--cc=help-gnu-emacs@gnu.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.