From f7dc6d8b5bb318e02a4016d93f8b34de0716f4dc Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 22 Jan 2016 09:55:52 -0800 Subject: [PATCH] Further corrections to the pcase docstring --- lisp/emacs-lisp/pcase.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lisp/emacs-lisp/pcase.el b/lisp/emacs-lisp/pcase.el index a2e05245c31..549ee96dd5f 100644 --- a/lisp/emacs-lisp/pcase.el +++ b/lisp/emacs-lisp/pcase.el @@ -111,8 +111,8 @@ CASES is a list of elements of the form (PATTERN CODE...). A structural PATTERN describes a template that identifies a class -of values. For example, the pattern (foo bar) matches any two -element list, binding its elements to symbols named `foo' and +of values. For example, the pattern `(,foo ,bar) matches any +two element list, binding its elements to symbols named `foo' and `bar' -- in much the same way that `cl-destructuring-bind' would. A significant difference from `cl-destructuring-bind' is that, if @@ -120,7 +120,7 @@ a pattern match fails, the next case is tried until either a succesful match is found or there are no more cases. Another difference is that pattern elements may be backquoted, -meaning they must match exactly: The pattern (\\='foo \\='bar) +meaning they must match exactly: The pattern \\='(foo bar) matches only against two element lists containing the symbols `foo' and `bar' in that order. (As a short-hand, atoms always match themselves, such as numbers or strings, and need not be -- 2.39.2