emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 8c22dcb 39/60: Add :group example


From: Junpeng Qiu
Subject: [elpa] master 8c22dcb 39/60: Add :group example
Date: Tue, 25 Oct 2016 17:45:15 +0000 (UTC)

branch: master
commit 8c22dcb7aaba6e7ae6ecd030fa0ce23dd88323bc
Author: Junpeng Qiu <address@hidden>
Commit: Junpeng Qiu <address@hidden>

    Add :group example
---
 README.org |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/README.org b/README.org
index b439c25..faa1805 100644
--- a/README.org
+++ b/README.org
@@ -220,6 +220,13 @@ So we can
   Lisp functions that can operate on points/regions, such as =goto-char= and
   =kill-region=.
 
+  =:group= can be specified when using =parsec-re=:
+  #+BEGIN_SRC elisp
+  (parsec-with-input "ab"
+    (parsec-query (parsec-re "\\(a\\)\\(b\\)") :group 2))
+  #+END_SRC
+
+  The above code will return "b" instead of "ab".
 * Error Messages
 
   =parsec.el= implements a simple error handling mechanism. When an error



reply via email to

[Prev in Thread] Current Thread [Next in Thread]