emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] fix/bug-3133-pcase-doc dc67ead 08/13: (docstring) use ‘EX


From: Thien-Thi Nguyen
Subject: [Emacs-diffs] fix/bug-3133-pcase-doc dc67ead 08/13: (docstring) use ‘EXPVAL’ more
Date: Fri, 11 May 2018 12:50:52 -0400 (EDT)

branch: fix/bug-3133-pcase-doc
commit dc67eadb1232e939822989b2858e15777ad84cc9
Author: Thien-Thi Nguyen <address@hidden>
Commit: Thien-Thi Nguyen <address@hidden>

    (docstring) use ‘EXPVAL’ more
---
 lisp/emacs-lisp/pcase.el | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/lisp/emacs-lisp/pcase.el b/lisp/emacs-lisp/pcase.el
index 2e1d6e9..fa4cfd3 100644
--- a/lisp/emacs-lisp/pcase.el
+++ b/lisp/emacs-lisp/pcase.el
@@ -143,21 +143,21 @@ The complete list of standard patterns is as follows:
                 the second occurrence becomes an `eq'uality test.
   (or PAT...)  matches if any of the patterns matches.
   (and PAT...) matches if all the patterns match.
-  \\='VAL              matches if the object is `equal' to VAL.
+  \\='VAL              matches if EXPVAL is `equal' to VAL.
   KEYWORD      shorthand for \\='KEYWORD
   INTEGER      shorthand for \\='INTEGER
   STRING       shorthand for \\='STRING
-  (pred FUN)   matches if FUN applied to the object returns non-nil.
+  (pred FUN)   matches if FUN applied to EXPVAL returns non-nil.
   (guard BOOLEXP)      matches if BOOLEXP evaluates to non-nil.
   (let PAT EXP)        matches if EXP matches PAT.
-  (app FUN PAT)        matches if FUN applied to the object matches PAT.
+  (app FUN PAT)        matches if FUN applied to EXPVAL matches PAT.
 
 Additional patterns can be defined using `pcase-defmacro'.
 
 The FUN argument in the `app' pattern may have the following forms:
   SYMBOL or (lambda ARGS BODY)  in which case it's called with one argument.
-  (F ARG1 .. ARGn) in which case F gets called with an n+1'th argument
-                        which is the value being matched.
+  (F ARG1 .. ARGn) in which case F gets called with EXPVAL as
+                        the n+1'th argument.
 So a FUN of the form SYMBOL is equivalent to (FUN).
 FUN can refer to variables bound earlier in the pattern.
 



reply via email to

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