]> git.eshelyaron.com Git - emacs.git/commit
Teach ffap to look for relative file names under project-root
authorSpencer Baugh <sbaugh@janestreet.com>
Sat, 21 Oct 2023 18:35:53 +0000 (14:35 -0400)
committerDmitry Gutov <dmitry@gutov.dev>
Mon, 30 Oct 2023 00:57:33 +0000 (02:57 +0200)
commit1eae0e7edf485bdaa9fb76b905275cf08a1910e2
treee238b03f34155204bcc128a9dee40814284fc441
parentb27e2bbb347c981ad12e05161d2bee195d110dd4
Teach ffap to look for relative file names under project-root

Now file-name-at-point-functions, which runs
ffap-guess-file-name-at-point, will pick up on a file name at point if
that file name is a relative file name which exists when looked up
from the root of the project.

For example, in test/lisp/progmodes/eglot-tests.el there is the string
lisp/progmodes/eglot.el; if you put point on that and C-x C-f,
lisp/progmodes/eglot.el under the root of the Emacs repo will now be
part of future history.

* lisp/ffap.el (ffap-alist): Add entry for ffap-in-project.
(ffap-in-project): Add. (bug#66668)
lisp/ffap.el