emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Horizontal Tab and Line Feed are non-ASCII according to the ASCII ca


From: Chris Moore
Subject: Re: Horizontal Tab and Line Feed are non-ASCII according to the ASCII category
Date: Tue, 13 Feb 2007 01:58:11 +0100

On 2/11/07, Chris Moore <address@hidden> wrote:
  (eval-expression (quote (skip-chars-forward "[:ascii:]")) nil)

seems to know that tab and newline are ASCII characters.

The code responsible for this behaviour is in src/regex.c:

/* Map a string to the char class it names (if any).  */
[...]
 else if (STREQ (string, "ascii"))     return RECC_ASCII;

and

   case RECC_ASCII: return IS_REAL_ASCII (ch);

and

/* 1 if C is an ASCII character.  */
# define IS_REAL_ASCII(c) ((c) < 0200)

ie. [:ascii:] matches all characters < 128




reply via email to

[Prev in Thread] Current Thread [Next in Thread]