I have helm-find-files bound to C-x C-f.

When I use it with a filename at point, and the file exists, it uses ffap to offer me that file, which is nice.

But when the file does not exist, it just offers the contents of a directory.

MWE: suppose in a LaTeX buffer I have


with the point on the filename, but the file itself does not exist. How could I make helm-find-files offer creating and opening it as an option?

  • The problem is thing-at-point (used in helm-find-files-1) doesn't recognise \input{/tmp/foo.tex} as a filename. If you unwrap the filename, for example, it should work as you say. Looks more like a bug with how thing-at-point handles the filename option. Tested with emacs version 26.2.
    – jagrg
    Apr 18, 2019 at 18:29
  • I am not sure about this. If the file exists, if is recognized and opened without a problem.
    – Tamas Papp
    Apr 19, 2019 at 8:24
  • It fails both ways for me, and works both ways if I unwrap the file name.
    – jagrg
    Apr 22, 2019 at 15:49

1 Answer 1


I opened an issue for helm, which Thierry Volpiatto kindly fixed, so now it is possible to

(setq helm-ff-allow-non-existing-file-at-point t)

which produces the behavior I want.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.