1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-22 07:09:54 +00:00

Document that functions in 'ffap-alist' can use the match data

* lisp/ffap.el (ffap-alist): Document that ffap sets the match data
while walking 'ffap-alist'.
This commit is contained in:
Philipp Stephani 2017-01-03 17:19:36 +01:00
parent 2e2a806803
commit 8dd624c8ac

View File

@ -792,7 +792,10 @@ specify actions to try creating such a string. A pair matches if either
KEY is a symbol, and it equals `major-mode', or
KEY is a string, it should match NAME as a regexp.
On a match, (FUNCTION NAME) is called and should return a file, an
URL, or nil. If nil, search the alist for further matches.")
URL, or nil. If nil, search the alist for further matches.
While calling FUNCTION, the match data is set according to KEY if KEY
is a string, so that FUNCTION can use `match-string' and friends
to extract substrings.")
(put 'ffap-alist 'risky-local-variable t)