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:
/tmp/helm-other-file/.
/tmp/helm-other-file/..
I expected that selecting the first would mean to create the buffer at that location: /tmp/helm-other-file/a.h
.
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 C-l
after ff-find-other-file
, then select helm-other-file/
, I go back to this: /tmp/helm-other-file/a.h/a.h
.
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.