aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref
diff options
context:
space:
mode:
authorGlenn Morris2020-06-26 07:50:38 -0700
committerGlenn Morris2020-06-26 07:50:38 -0700
commitffb89ed5f07491e33fc79d8b4be49d9deba2ad4a (patch)
treec2305304aca119da0e4d692aad5b964ef0ba2cf6 /doc/lispref
parent89c744c380b2aed28ebf2bd8f991461d60cff934 (diff)
parent5280e118c07d738321f61b3f2bc3cd27a5ac8dbc (diff)
downloademacs-ffb89ed5f07491e33fc79d8b4be49d9deba2ad4a.tar.gz
emacs-ffb89ed5f07491e33fc79d8b4be49d9deba2ad4a.zip
Merge from origin/emacs-27
5280e118c0 (origin/emacs-27) ; * src/xdisp.c (pos_visible_p): Fix las... bb1a9481c9 Fix posn-at-point at beginning of a display string 0c4b033670 Improve documentation of Info node movement commands 632b0119e1 Add Jansson dependency to Windows Build dbfcdab837 Unbreak 'reverse-region' c37de84845 Fix typos and markup in fill column indicator docs f61bff3ee9 ; * CONTRIBUTE: Clarify the preferences for patch formatting. 368e140660 Avoid crashes in 'defconst' 11e3413cff Fix text about Lisp archives in the Emacs FQ 4c81724675 Don't use 'cl' functions in ELisp manual's examples
Diffstat (limited to 'doc/lispref')
-rw-r--r--doc/lispref/control.texi6
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/lispref/control.texi b/doc/lispref/control.texi
index 01ae94ea7dd..d2419f415bf 100644
--- a/doc/lispref/control.texi
+++ b/doc/lispref/control.texi
@@ -959,8 +959,9 @@ For example, the following is invalid:
959 959
960@example 960@example
961@group 961@group
962(require 'cl-lib)
962(pcase (read-number "Enter an integer: ") 963(pcase (read-number "Enter an integer: ")
963 ((or (and (pred evenp) 964 ((or (and (pred cl-evenp)
964 e-num) ; @r{bind @code{e-num} to @var{expval}} 965 e-num) ; @r{bind @code{e-num} to @var{expval}}
965 o-num) ; @r{bind @code{o-num} to @var{expval}} 966 o-num) ; @r{bind @code{o-num} to @var{expval}}
966 (list e-num o-num))) 967 (list e-num o-num)))
@@ -984,9 +985,10 @@ Reworking the above example:
984 985
985@example 986@example
986@group 987@group
988(require 'cl-lib)
987(pcase (read-number "Enter an integer: ") 989(pcase (read-number "Enter an integer: ")
988 ((and num ; @r{line 1} 990 ((and num ; @r{line 1}
989 (or (and (pred evenp) ; @r{line 2} 991 (or (and (pred cl-evenp) ; @r{line 2}
990 (let spin 'even)) ; @r{line 3} 992 (let spin 'even)) ; @r{line 3}
991 (let spin 'odd))) ; @r{line 4} 993 (let spin 'odd))) ; @r{line 4}
992 (list spin num))) ; @r{line 5} 994 (list spin num))) ; @r{line 5}