获取光标所在字符串的方法?

歪个楼,如何获取候选项的路径,如下在minibuffer中:

file-name-directory

这个不是我想要的哦,我想要的是类似于dired-get-file-for-visit的函数

  • (bounds-of-thing-at-point 'string)
  • (thing-at-point 'string)
  • (string-at-point)