From 2c3a3c1d035e06250db54fb17ee7aec6b7c2c70a Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Wed, 2 Jun 2010 13:14:01 -0400 Subject: [PATCH] searching.texi (Regexp Special): Replace "octal 377" with "#o377" (Bug#6283). --- doc/lispref/ChangeLog | 5 +++++ doc/lispref/searching.texi | 17 +++++++++-------- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index ad8d1222827..b871c442804 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog @@ -1,3 +1,8 @@ +2010-06-02 Chong Yidong + + * searching.texi (Regexp Special): Replace "octal 377" + with "#o377" (Bug#6283). + 2010-05-30 Juanma Barranquero * minibuf.texi (Basic Completion): Add missing "@end defun". diff --git a/doc/lispref/searching.texi b/doc/lispref/searching.texi index 48780d0a348..d1e8c549679 100644 --- a/doc/lispref/searching.texi +++ b/doc/lispref/searching.texi @@ -400,14 +400,15 @@ is @samp{@var{c}..?\377}, the other is @samp{@var{c1}..@var{c2}}, where @var{c1} is the first character of the charset to which @var{c2} belongs. -You cannot always match all non-@acronym{ASCII} characters with the regular -expression @code{"[\200-\377]"}. This works when searching a unibyte -buffer or string (@pxref{Text Representations}), but not in a multibyte -buffer or string, because many non-@acronym{ASCII} characters have codes -above octal 0377. However, the regular expression @code{"[^\000-\177]"} -does match all non-@acronym{ASCII} characters (see below regarding @samp{^}), -in both multibyte and unibyte representations, because only the -@acronym{ASCII} characters are excluded. +You cannot always match all non-@acronym{ASCII} characters with the +regular expression @code{"[\200-\377]"}. This works when searching a +unibyte buffer or string (@pxref{Text Representations}), but not in a +multibyte buffer or string, because many non-@acronym{ASCII} +characters have codes above @code{#o377}. However, the regular +expression @code{"[^\000-\177]"} does match all non-@acronym{ASCII} +characters (see below regarding @samp{^}), in both multibyte and +unibyte representations, because only the @acronym{ASCII} characters +are excluded. A character alternative can also specify named character classes (@pxref{Char Classes}). This is a POSIX feature whose -- 2.11.4.GIT