diff options
| author | Philipp Stephani | 2017-01-03 16:24:23 +0000 |
|---|---|---|
| committer | John Wiegley | 2017-01-03 08:40:57 -0800 |
| commit | 5c6f1198d40b404573e5dfd2b0f1e5c73f71209b (patch) | |
| tree | ac79bd8febb64728d978c5ad76181251b0a0b3a9 | |
| parent | 10444dcf77711bf3360f865fcb0d446a83e1bfb5 (diff) | |
| download | emacs-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.el | 5 |
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. |
| 799 | On a match, (FUNCTION NAME) is called and should return a file, an | 799 | On a match, (FUNCTION NAME) is called and should return a file, an |
| 800 | URL, or nil. If nil, search the alist for further matches.") | 800 | URL, or nil. If nil, search the alist for further matches. |
| 801 | While calling FUNCTION, the match data is set according to KEY if KEY | ||
| 802 | is a string, so that FUNCTION can use `match-string' and friends | ||
| 803 | to extract substrings.") | ||
| 801 | 804 | ||
| 802 | (put 'ffap-alist 'risky-local-variable t) | 805 | (put 'ffap-alist 'risky-local-variable t) |
| 803 | 806 | ||