When I try to use the function
ff-find-other-file on a C file, and the header file does not exist, I expect emacs to create a header file at the current location.
Since I started using helm, something else happens:
$ mkdir /tmp/helm-other-file $ cd /tmp/helm-other-file $ emacs a.c
M-x ff-find-other-file opens a helm buffer with two entries:
I expected that selecting the first would mean to create the buffer at that location:
Instead, the following is created:
/tmp/helm-other-file/a.h/a.h. That's one (new) directory too deep.
If I select the
.. version, to compensate for "too deep", I get
/tmp/a.h. That's not deep enough.
If I go up a level with
ff-find-other-file, then select
helm-other-file/, I go back to this:
How can I fix
ff-find-other-file so that unfound header file is created at the same location as the C file, with helm? I'm aware that helm-projectile might fix this, but I don't want to bring in the whole package only for that function.