diff options
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/cond-star.el | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/cond-star.el b/lisp/emacs-lisp/cond-star.el index 18a1c344860..7e21f74e2d2 100644 --- a/lisp/emacs-lisp/cond-star.el +++ b/lisp/emacs-lisp/cond-star.el @@ -4,6 +4,11 @@ ;; Maintainer: Richard Stallman <rms@gnu.org> ;; Package: emacs +;; Version: 1.0 +;; Package-Requires: ((emacs "24.3")) + +;; This is a GNU ELPA :core package. Avoid functionality that is not +;; compatible with the version of Emacs recorded above. ;; This file is part of GNU Emacs. @@ -22,7 +27,12 @@ ;;; Commentary: -;; This library implements `cond*', an alternative to `pcase'. +;; This library implements the `cond*' macro, that extends `cond' with +;; pattern-matching capabilities. It provides an alternative to +;; `pcase'. Consult the Info note `(elisp) cond* Macro' for details on +;; how to use it. + +;;; Implementation Notice: ;; Here is the list of functions the generated code is known to call: ;; car, cdr, car-safe, cdr-safe, nth, nthcdr, null, eq, equal, eql, =, @@ -75,7 +85,7 @@ Instead, control always falls through to the next clause (if any). All bindings made in CONDITION for the BODY of the non-exit clause are passed along to the rest of the clauses in this `cond*' construct. -\\[match*\\] for documentation of the patterns for use in `match*'." +\\[match*] for documentation of the patterns for use in `match*'." (cond*-convert clauses)) (defmacro match* (pattern _datum) |