branch: externals/embark
commit 2422d4e86f24b2b4204f2441f953e8407d011a2e
Author: Omar Antolín Camarena <[email protected]>
Commit: Omar Antolín Camarena <[email protected]>
Fix wikipedia link example code (fix #545)
---
README.org | 4 ++--
embark.texi | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/README.org b/README.org
index d7747923e5..a67e8f2d88 100644
--- a/README.org
+++ b/README.org
@@ -803,8 +803,8 @@ included in the list =embark-indicators=).
(save-match-data
(when (string-match "wikipedia:\\([[:alnum:]_]+\\)" str)
`(url
- (format "https://en.wikipedia.org/wiki/%s"
- (match-string 1 str))
+ ,(format "https://en.wikipedia.org/wiki/%s"
+ (match-string 1 str))
,beg . ,end))))))
(add-to-list 'embark-target-finders 'my-short-wikipedia-link)
diff --git a/embark.texi b/embark.texi
index ae24ab6d86..d81439a442 100644
--- a/embark.texi
+++ b/embark.texi
@@ -975,8 +975,8 @@ included in the list @samp{embark-indicators}).
(save-match-data
(when (string-match "wikipedia:\\([[:alnum:]_]+\\)" str)
`(url
- (format "https://en.wikipedia.org/wiki/%s"
- (match-string 1 str))
+ ,(format "https://en.wikipedia.org/wiki/%s"
+ (match-string 1 str))
,beg . ,end))))))
(add-to-list 'embark-target-finders 'my-short-wikipedia-link)