From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Martin Stjernholm Newsgroups: gmane.emacs.bugs Subject: Re: need to recognize non-ASCII identifiers Date: Thu, 03 Apr 2003 01:15:09 +0200 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <5bznn8o5j6.fsf@lister.roxen.com> References: Reply-To: bug-cc-mode@gnu.org NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1049325487 31283 80.91.224.249 (2 Apr 2003 23:18:07 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 2 Apr 2003 23:18:07 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 03 01:18:06 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 190rUc-00088R-00 for ; Thu, 03 Apr 2003 01:18:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 190rTh-0003NO-04 for gnu-bug-gnu-emacs@m.gmane.org; Wed, 02 Apr 2003 18:17:09 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 190rT5-0002xf-00 for bug-gnu-emacs@gnu.org; Wed, 02 Apr 2003 18:16:31 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 190rT0-0002sJ-00 for bug-gnu-emacs@gnu.org; Wed, 02 Apr 2003 18:16:26 -0500 Original-Received: from godzilla.roxen.com ([194.52.182.190] helo=mail.roxen.com) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 190rS3-0002T6-00; Wed, 02 Apr 2003 18:15:27 -0500 Original-Received: by mail.roxen.com (Postfix, from userid 52) id 6AB3A99FD; Thu, 3 Apr 2003 01:15:12 +0200 (MEST) Original-Received: from lister.roxen.com (lister.roxen.com [194.52.182.147]) by mail.roxen.com (Postfix) with ESMTP id 1D1249A07; Thu, 3 Apr 2003 01:15:10 +0200 (MEST) Original-Received: from mast by lister.roxen.com with local (Exim 3.36 #1 (Debian)) id 190rRm-0000Ir-00; Thu, 03 Apr 2003 01:15:10 +0200 Original-To: Dave Love In-Reply-To: (Dave Love's message of "02 Apr 2003 18:05:30 +0100") User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/20.7 (gnu/linux) Original-cc: bug-cc-mode@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:4703 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4703 Dave Love wrote: > cc-mode needs to recognize non-ASCII identifiers. I guess this should > be done for all languages, since Java is defined to use Unicode and > you can use non-ASCII charsets in C. Yes, furthermore it would hardly be a problem if CC Mode is more lenient in this regard than the compiler. > This will only work cleanly in Emacs 21, which should use replacements > in regexp char classes like `[:alnum:]' instead of `a-zA-Z0-9' and > similar in the relevant places. Even in other versions there's the possibility to use \sw etc. The problem has been that there's no character class that matches all alphabetic characters but not the digits. However, you mentioned [:alpha:] which would presumably do just that. You said it works in Emacs 21, but I haven't been able to find any doc on these new character classes in the manual for Emacs 21.2. Where can I read about it?