aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2001-03-29 15:52:56 +0000
committerEli Zaretskii2001-03-29 15:52:56 +0000
commit96e29ebe342e404efe7e2d4516eb40b375e205b0 (patch)
treed8f4bdd1534410d411f0ce54af0a98acb30fb116
parentaea51abefd008ad14a61979321e6ccfc428c5d28 (diff)
downloademacs-96e29ebe342e404efe7e2d4516eb40b375e205b0.tar.gz
emacs-96e29ebe342e404efe7e2d4516eb40b375e205b0.zip
(Regexps): Say up front that backslashes must be doubled in a Lisp program.
-rw-r--r--man/search.texi4
1 files changed, 3 insertions, 1 deletions
diff --git a/man/search.texi b/man/search.texi
index 9727075ebe1..56b5f37710f 100644
--- a/man/search.texi
+++ b/man/search.texi
@@ -385,7 +385,9 @@ character is a simple regular expression which matches that same
385character and nothing else. The special characters are @samp{$}, 385character and nothing else. The special characters are @samp{$},
386@samp{^}, @samp{.}, @samp{*}, @samp{+}, @samp{?}, @samp{[}, @samp{]} and 386@samp{^}, @samp{.}, @samp{*}, @samp{+}, @samp{?}, @samp{[}, @samp{]} and
387@samp{\}. Any other character appearing in a regular expression is 387@samp{\}. Any other character appearing in a regular expression is
388ordinary, unless a @samp{\} precedes it. 388ordinary, unless a @samp{\} precedes it. (When you use regular
389expressions in a Lisp program, each @samp{\} must be doubled, see the
390example near the end of this section.)
389 391
390 For example, @samp{f} is not a special character, so it is ordinary, and 392 For example, @samp{f} is not a special character, so it is ordinary, and
391therefore @samp{f} is a regular expression that matches the string 393therefore @samp{f} is a regular expression that matches the string