[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 5c6f119: Small patch for ffap.el
From: |
John Wiegley |
Subject: |
[Emacs-diffs] master 5c6f119: Small patch for ffap.el |
Date: |
Tue, 3 Jan 2017 16:41:03 +0000 (UTC) |
branch: master
commit 5c6f1198d40b404573e5dfd2b0f1e5c73f71209b
Author: Philipp Stephani <address@hidden>
Commit: John Wiegley <address@hidden>
Small patch for ffap.el
* lisp/ffap.el (ffap-alist): Document that ffap sets the match data
while walking 'ffap-alist'.
---
lisp/ffap.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/lisp/ffap.el b/lisp/ffap.el
index cabf339..8144d41 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
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)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 5c6f119: Small patch for ffap.el,
John Wiegley <=