branch: master
commit 431bb447c523ed2114d7989a7127d2fd864f62b6
Author: Michael Heerdegen <[email protected]>
Commit: Michael Heerdegen <[email protected]>
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.