aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Stephani2017-01-03 16:24:23 +0000
committerJohn Wiegley2017-01-03 08:40:57 -0800
commit5c6f1198d40b404573e5dfd2b0f1e5c73f71209b (patch)
treeac79bd8febb64728d978c5ad76181251b0a0b3a9
parent10444dcf77711bf3360f865fcb0d446a83e1bfb5 (diff)
downloademacs-5c6f1198d40b404573e5dfd2b0f1e5c73f71209b.tar.gz
emacs-5c6f1198d40b404573e5dfd2b0f1e5c73f71209b.zip
Small patch for ffap.el
* lisp/ffap.el (ffap-alist): Document that ffap sets the match data while walking 'ffap-alist'.
-rw-r--r--lisp/ffap.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/ffap.el b/lisp/ffap.el
index cabf3395012..8144d41f3a1 100644
--- a/lisp/ffap.el
+++ b/lisp/ffap.el
@@ -797,7 +797,10 @@ specify actions to try creating such a string. A pair matches if either
797 KEY is a symbol, and it equals `major-mode', or 797 KEY is a symbol, and it equals `major-mode', or
798 KEY is a string, it should match NAME as a regexp. 798 KEY is a string, it should match NAME as a regexp.
799On a match, (FUNCTION NAME) is called and should return a file, an 799On a match, (FUNCTION NAME) is called and should return a file, an
800URL, or nil. If nil, search the alist for further matches.") 800URL, or nil. If nil, search the alist for further matches.
801While calling FUNCTION, the match data is set according to KEY if KEY
802is a string, so that FUNCTION can use `match-string' and friends
803to extract substrings.")
801 804
802(put 'ffap-alist 'risky-local-variable t) 805(put 'ffap-alist 'risky-local-variable t)
803 806