[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 431bb44: Add comment about (pcase) backquote inside (real)
From: |
Michael Heerdegen |
Subject: |
[elpa] master 431bb44: Add comment about (pcase) backquote inside (real) backquote |
Date: |
Wed, 3 Aug 2016 00:24:26 +0000 (UTC) |
branch: master
commit 431bb447c523ed2114d7989a7127d2fd864f62b6
Author: Michael Heerdegen <address@hidden>
Commit: Michael Heerdegen <address@hidden>
Add comment about (pcase) backquote inside (real) backquote
---
packages/el-search/el-search.el | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/packages/el-search/el-search.el b/packages/el-search/el-search.el
index d79af7f..cfdf875 100644
--- a/packages/el-search/el-search.el
+++ b/packages/el-search/el-search.el
@@ -659,6 +659,19 @@ MESSAGE are used to construct the error message."
;;;; Additional pattern type definitions
+;; Hint: we sometimes need to create (pcase) backquote forms with
+;; backquote. I do this like in this example:
+;;
+;; (let ((y 2))
+;; `(,'\` ((,'\, x) ,y)))
+;; ==> `(,x 2)
+;;
+;; Note that the backslashes are mandatory, else the reader macros are
+;; interpreted as composition of the respective operations, like in
+;;
+;; `(', (+ 1 2)) ==> ('3)
+
+
(defun el-search--split (matcher1 matcher2 list)
"Helper for the append pattern type.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] master 431bb44: Add comment about (pcase) backquote inside (real) backquote,
Michael Heerdegen <=