From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dave Love Newsgroups: gmane.emacs.cc-mode.general,gmane.emacs.bugs Subject: need to recognize non-ASCII identifiers Date: 02 Apr 2003 18:05:30 +0100 Sender: cc-mode-help-admin@lists.sourceforge.net Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1049303815 18940 80.91.224.249 (2 Apr 2003 17:16:55 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 2 Apr 2003 17:16:55 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org Original-X-From: cc-mode-help-admin@lists.sourceforge.net Wed Apr 02 19:16:51 2003 Return-path: Original-Received: from lists.sourceforge.net ([66.35.250.206] helo=sc8-sf-list2.sourceforge.net) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 190lp6-0004nC-00 for ; Wed, 02 Apr 2003 19:14:52 +0200 Original-Received: from sc8-sf-list1-b.sourceforge.net ([10.3.1.13] helo=sc8-sf-list1.sourceforge.net) by sc8-sf-list2.sourceforge.net with esmtp (Exim 3.31-VA-mm2 #1 (Debian)) id 190loj-0006hM-00; Wed, 02 Apr 2003 09:14:29 -0800 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by sc8-sf-list1.sourceforge.net with esmtp (Cipher TLSv1:DES-CBC3-SHA:168) (Exim 3.31-VA-mm2 #1 (Debian)) id 190lnk-0007CP-00 for ; Wed, 02 Apr 2003 09:13:28 -0800 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.10) id 190lnc-0004Yb-00 for bug-cc-mode@gnu.org; Wed, 02 Apr 2003 12:13:20 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 190lkR-0006hs-00 for bug-cc-mode@gnu.org; Wed, 02 Apr 2003 12:10:06 -0500 Original-Received: from albion.dl.ac.uk ([148.79.80.39]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 190lg4-0004w8-00; Wed, 02 Apr 2003 12:05:32 -0500 Original-Received: from fx by albion.dl.ac.uk with local (Exim 3.36 #1 (Debian)) id 190lg3-0001r1-00; Wed, 02 Apr 2003 18:05:31 +0100 Original-To: bug-cc-mode@gnu.org Original-Lines: 18 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Errors-To: cc-mode-help-admin@lists.sourceforge.net X-BeenThere: cc-mode-help@lists.sourceforge.net X-Mailman-Version: 2.0.9-sf.net Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports, feature requests, and general talk about CC Mode. List-Unsubscribe: , List-Archive: X-Original-Date: 02 Apr 2003 18:05:30 +0100 Xref: main.gmane.org gmane.emacs.cc-mode.general:483 gmane.emacs.bugs:4698 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4698 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. 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. (It should be safe to make the replacement generally.) To make it work also with XEmacs, you can test for the relevant features with something like `(string-match "[[:alpha:]]" "x")' and conditionalize on the result at compile time. I tried to make suitable changes but then failed to build the result properly because of the way it's compiled, which I don't understand; I've commented on that before... I guess it's easy to start from scratch on the replacements. ------------------------------------------------------- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/