file-name-at-point-functions

file-name-at-point-functions is a variable defined in `files.el'.
Its value is
(ffap-guess-file-name-at-point)

  • This variable may be risky if used as a file-local variable.

Documentation:
List of functions to try in sequence to get a file name at point.
Each function should return either nil or a file name found at the
location of point in the current buffer.

You can customize this variable.