emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] fix/bug-31311-pcase-doc 0dffb69 10/18: (docstring) do s/pr


From: Thien-Thi Nguyen
Subject: [Emacs-diffs] fix/bug-31311-pcase-doc 0dffb69 10/18: (docstring) do s/predicate function/predicate/g, s/specified/formed/g
Date: Tue, 15 May 2018 05:45:53 -0400 (EDT)

branch: fix/bug-31311-pcase-doc
commit 0dffb69c3a02ff3a0beb06fb30c6ab74b77b6f85
Author: Thien-Thi Nguyen <address@hidden>
Commit: Thien-Thi Nguyen <address@hidden>

    (docstring) do s/predicate function/predicate/g, s/specified/formed/g
    
    Re 1: Lots of hits in *.texi for simply "predicate" (sans "function").
    
    Re 2: It feels weird to say a pattern "specifies" a predicate.
    So, "formed" is shorter, and plausibly encapsulates
    "constructed via expansion from specification".
---
 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 1f22330..da7d2e3 100644
--- a/lisp/emacs-lisp/pcase.el
+++ b/lisp/emacs-lisp/pcase.el
@@ -114,8 +114,8 @@ For the first CASE whose PATTERN \"matches\" EXPVAL,
 evaluate its CODE..., and return the value of the last form.
 If no CASE has a PATTERN that matches, return nil.
 
-Each PATTERN expands, in essence, to a predicate function to
-call on EXPVAL.  When the return value of that call is non-nil,
+Each PATTERN expands, in essence, to a predicate to call
+on EXPVAL.  When the return value of that call is non-nil,
 PATTERN matches.  PATTERN can take one of the forms:
 
   _                matches anything.
@@ -909,9 +909,9 @@ QPAT can take the following forms:
   INTEGER               likewise for INTEGER.
   STRING                likewise for STRING.
 
-The list or vector QPAT is a template.  The predicate function
-specified by a backquote-style pattern is a combination of those
-specified by any sub-patterns, wrapped in a top-level condition:
+The list or vector QPAT is a template.  The predicate formed
+by a backquote-style pattern is a combination of those
+formed by any sub-patterns, wrapped in a top-level condition:
 EXPVAL must be \"congruent\" with the template.  For example:
 
   \\=`(technical ,forum)



reply via email to

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