From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: skip-chars-forward error "Invalid ISO C character class" Date: 15 Jun 2004 11:45:19 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1087292740 7382 80.91.224.253 (15 Jun 2004 09:45:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 15 Jun 2004 09:45:40 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Jun 15 11:45:33 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BaAVZ-0003MH-00 for ; Tue, 15 Jun 2004 11:45:33 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BaAVY-000652-00 for ; Tue, 15 Jun 2004 11:45:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BaAWU-0007jr-RL for emacs-devel@quimby.gnus.org; Tue, 15 Jun 2004 05:46:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BaAWK-0007jY-9i for emacs-devel@gnu.org; Tue, 15 Jun 2004 05:46:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BaAWH-0007im-Sg for emacs-devel@gnu.org; Tue, 15 Jun 2004 05:46:19 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BaAWH-0007hp-MP for emacs-devel@gnu.org; Tue, 15 Jun 2004 05:46:17 -0400 Original-Received: from [212.88.64.25] (helo=mail-relay.sonofon.dk) by monty-python.gnu.org with smtp (Exim 4.34) id 1BaAV8-0004e6-2I for emacs-devel@gnu.org; Tue, 15 Jun 2004 05:45:06 -0400 Original-Received: (qmail 72666 invoked from network); 15 Jun 2004 09:45:01 -0000 Original-Received: from unknown (HELO kfs-l.imdomain.dk.cua.dk) (213.83.150.2) by 0 with SMTP; 15 Jun 2004 09:45:01 -0000 Original-To: bob@rattlesnake.com In-Reply-To: Original-Lines: 34 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:24982 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:24982 "Robert J. Chassell" writes: > > (skip-chars-forward "[:.,\t\n ]+") > > When the line is in the *scratch* buffer, this error message will be > generated: > > Debugger entered--Lisp error: (error "Invalid ISO C character class") Well, unless the author actually intended to also match the characters []+ the proper form of the above call is: (skip-chars-forward ":.,\t\n ") so I guess it's a bug in the code (the arg is a string not a regexp). But the reason the error only reveals is head now is because RMS has installed a patch to allow character classes to be specified, e.g. (skip-chars-forward "[:alpha:]") The implementation is a bit brute force though, so it triggers errors for things which clearly are not intended to be interpreted as a character class. E.g. (skip-chars-forward "[:]") I have installed a change which checks that [:class:] has the proper format before interpretion it as a class spec. -- Kim F. Storm http://www.cua.dk