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 1ecece4 3/9: say "Syntax error" i


From: Thien-Thi Nguyen
Subject: [Emacs-diffs] fix/bug-31311-pcase-doc 1ecece4 3/9: say "Syntax error" in last ‘evaluate’ BODY-FORM
Date: Thu, 17 May 2018 06:41:57 -0400 (EDT)

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

    say "Syntax error" in last ‘evaluate’ BODY-FORM
    
    This change is to concord w/ the explanation, which uses the
    term "syntax error", a familiar concept for most programmers.
    The original "Unknown expression" is (slightly) more demanding
    of the reader, which is arguably a good thing in general...
---
 doc/lispref/control.texi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc/lispref/control.texi b/doc/lispref/control.texi
index ec50e8d..8289e23 100644
--- a/doc/lispref/control.texi
+++ b/doc/lispref/control.texi
@@ -816,7 +816,7 @@ requires lexical binding, @pxref{Lexical Binding}):
                                                env))))
     ((pred numberp)     form)
     ((pred symbolp)     (cdr (assq form env)))
-    (_                  (error "Unknown expression %S" form))))
+    (_                  (error "Syntax error: %S" form))))
 @end example
 
 Here @code{`(add ,x ,y)} is a pattern that checks that @code{form} is a



reply via email to

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