From f99fae140a5c56272ac682d7b8cfa11fe12e493b Mon Sep 17 00:00:00 2001 From: Philip Kaludercic Date: Sun, 23 Feb 2025 12:29:54 +0100 Subject: [PATCH] Prepare cond-start for addition to GNU ELPA (cherry picked from commit 4719df9f42c157e2683ac641883cff5efaa480bc) --- lisp/emacs-lisp/cond-star.el | 14 ++++++++++++-- 1 file 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 ;; 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) -- 2.39.5