mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-18 18:00:11 +00:00
Don't use 'cl' functions in ELisp manual's examples
* doc/lispref/control.texi (pcase Macro): Use 'cl-evenp' instead of 'evenp'. (Bug#41947)
This commit is contained in:
parent
229995ba2c
commit
4c81724675
1 changed files with 4 additions and 2 deletions
|
@ -959,8 +959,9 @@ For example, the following is invalid:
|
||||||
|
|
||||||
@example
|
@example
|
||||||
@group
|
@group
|
||||||
|
(require 'cl-lib)
|
||||||
(pcase (read-number "Enter an integer: ")
|
(pcase (read-number "Enter an integer: ")
|
||||||
((or (and (pred evenp)
|
((or (and (pred cl-evenp)
|
||||||
e-num) ; @r{bind @code{e-num} to @var{expval}}
|
e-num) ; @r{bind @code{e-num} to @var{expval}}
|
||||||
o-num) ; @r{bind @code{o-num} to @var{expval}}
|
o-num) ; @r{bind @code{o-num} to @var{expval}}
|
||||||
(list e-num o-num)))
|
(list e-num o-num)))
|
||||||
|
@ -984,9 +985,10 @@ Reworking the above example:
|
||||||
|
|
||||||
@example
|
@example
|
||||||
@group
|
@group
|
||||||
|
(require 'cl-lib)
|
||||||
(pcase (read-number "Enter an integer: ")
|
(pcase (read-number "Enter an integer: ")
|
||||||
((and num ; @r{line 1}
|
((and num ; @r{line 1}
|
||||||
(or (and (pred evenp) ; @r{line 2}
|
(or (and (pred cl-evenp) ; @r{line 2}
|
||||||
(let spin 'even)) ; @r{line 3}
|
(let spin 'even)) ; @r{line 3}
|
||||||
(let spin 'odd))) ; @r{line 4}
|
(let spin 'odd))) ; @r{line 4}
|
||||||
(list spin num))) ; @r{line 5}
|
(list spin num))) ; @r{line 5}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue