[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] feature/gnus-select 6e30330 041/218: Clarify that nil does
From: |
Andrew G Cohen |
Subject: |
[Emacs-diffs] feature/gnus-select 6e30330 041/218: Clarify that nil doesn't match itself as a cl-case clause (Bug#30749) |
Date: |
Fri, 14 Dec 2018 03:34:52 -0500 (EST) |
branch: feature/gnus-select
commit 6e30330f47d8c2903f88df72ebe6aaad4a5bbbd0
Author: Noam Postavsky <address@hidden>
Commit: Andrew G Cohen <address@hidden>
Clarify that nil doesn't match itself as a cl-case clause (Bug#30749)
* lisp/emacs-lisp/cl-macs.el (cl-case): Mention that the ATOM
=> (ATOM) short form is only for non-nil ATOMs.
---
lisp/emacs-lisp/cl-macs.el | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
diff --git a/lisp/emacs-lisp/cl-macs.el b/lisp/emacs-lisp/cl-macs.el
index 4d4640c..9600230 100644
--- a/lisp/emacs-lisp/cl-macs.el
+++ b/lisp/emacs-lisp/cl-macs.el
@@ -771,13 +771,15 @@ The result of the body appears to the compiler as a
quoted constant."
;;;###autoload
(defmacro cl-case (expr &rest clauses)
"Eval EXPR and choose among clauses on that value.
-Each clause looks like (KEYLIST BODY...). EXPR is evaluated and compared
-against each key in each KEYLIST; the corresponding BODY is evaluated.
-If no clause succeeds, cl-case returns nil. A single atom may be used in
-place of a KEYLIST of one atom. A KEYLIST of t or `otherwise' is
-allowed only in the final clause, and matches if no other keys match.
-Key values are compared by `eql'.
-\n(fn EXPR (KEYLIST BODY...)...)"
+Each clause looks like (KEYLIST BODY...). EXPR is evaluated and
+compared against each key in each KEYLIST; the corresponding BODY
+is evaluated. If no clause succeeds, cl-case returns nil. A
+single non-nil atom may be used in place of a KEYLIST of one
+atom. A KEYLIST of t or `otherwise' is allowed only in the final
+clause, and matches if no other keys match. Key values are
+compared by `eql'.
+
+\(fn EXPR (KEYLIST BODY...)...)"
(declare (indent 1) (debug (form &rest (sexp body))))
(macroexp-let2 macroexp-copyable-p temp expr
(let* ((head-list nil))
- [Emacs-diffs] feature/gnus-select 3b92c80 068/218: * lisp/subr.el (focus-frame, unfocus-frame): Remove obsolete no-ops., (continued)
- [Emacs-diffs] feature/gnus-select 3b92c80 068/218: * lisp/subr.el (focus-frame, unfocus-frame): Remove obsolete no-ops., Andrew G Cohen, 2018/12/14
- [Emacs-diffs] feature/gnus-select 64c4ec0 082/218: More hydra.nixos.org logging for unfinished tests, Andrew G Cohen, 2018/12/14
- [Emacs-diffs] feature/gnus-select 066e71d 056/218: More changes in the Emacs manual, Andrew G Cohen, 2018/12/14
- [Emacs-diffs] feature/gnus-select 212e217 064/218: * lisp/loadhist.el (unload-hook-features-list): Remove obsolete alias., Andrew G Cohen, 2018/12/14
- [Emacs-diffs] feature/gnus-select 88a19e4 080/218: * lisp/desktop.el: Make use some "new" functionality, Andrew G Cohen, 2018/12/14
- [Emacs-diffs] feature/gnus-select d27fdc5 085/218: Fix an error in tramp-archive-test42-auto-load, Andrew G Cohen, 2018/12/14
- [Emacs-diffs] feature/gnus-select e3338f2 078/218: Extend ert to print duration of single tests, Andrew G Cohen, 2018/12/14
- [Emacs-diffs] feature/gnus-select 7928693 020/218: Fix 'window-text-pixel-size' when display properties are around, Andrew G Cohen, 2018/12/14
- [Emacs-diffs] feature/gnus-select 850e683 023/218: ; Tiny fix for recent doc change, Andrew G Cohen, 2018/12/14
- [Emacs-diffs] feature/gnus-select 7a082db 022/218: Minor change in the manual, Andrew G Cohen, 2018/12/14
- [Emacs-diffs] feature/gnus-select 6e30330 041/218: Clarify that nil doesn't match itself as a cl-case clause (Bug#30749),
Andrew G Cohen <=
- [Emacs-diffs] feature/gnus-select eeda1f8 015/218: Update from Gnulib, Andrew G Cohen, 2018/12/14
- [Emacs-diffs] feature/gnus-select e269430 039/218: Document the "URL" keyword in library headers, Andrew G Cohen, 2018/12/14
- [Emacs-diffs] feature/gnus-select ecb867a 027/218: Replace uses of the obsolete local-write-file-hooks, Andrew G Cohen, 2018/12/14
- [Emacs-diffs] feature/gnus-select 9be7eb4 034/218: Quieten --without-json compilation of json-tests.el, Andrew G Cohen, 2018/12/14
- [Emacs-diffs] feature/gnus-select 496ccae 036/218: * Makefile.in (check-declare): Also check test/ directory., Andrew G Cohen, 2018/12/14
- [Emacs-diffs] feature/gnus-select e16a1e7 028/218: Replace the obsolete process-kill-without-query in documentation, Andrew G Cohen, 2018/12/14
- [Emacs-diffs] feature/gnus-select 672b68c 043/218: Let warning about (:foo) be suppressible (Bug#30499), Andrew G Cohen, 2018/12/14
- [Emacs-diffs] feature/gnus-select f3b9db1 038/218: Improve support for desktop restoration in daemon mode, Andrew G Cohen, 2018/12/14
- [Emacs-diffs] feature/gnus-select b8c0e0c 045/218: Fix create_process bug breaking eudc-expand-inline, Andrew G Cohen, 2018/12/14
- [Emacs-diffs] feature/gnus-select 77705ff 046/218: eshell-eval-using-options: Avoid compiler warning differently, Andrew G Cohen, 2018/12/14