From: storm@cua.dk (Kim F. Storm)
Cc: emacs-devel@gnu.org
Subject: Re: skip-chars-forward error "Invalid ISO C character class"
Date: 15 Jun 2004 11:45:19 +0200 [thread overview]
Message-ID: <m3y8mpduj4.fsf@kfs-l.imdomain.dk> (raw)
In-Reply-To: <m1BZzM9-000UNSC@rattlesnake.com>
"Robert J. Chassell" <bob@rattlesnake.com> 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 <storm@cua.dk> http://www.cua.dk
next prev parent reply other threads:[~2004-06-15 9:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-14 21:51 skip-chars-forward error "Invalid ISO C character class" Robert J. Chassell
2004-06-15 9:45 ` Kim F. Storm [this message]
2004-06-15 22:20 ` Robert J. Chassell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3y8mpduj4.fsf@kfs-l.imdomain.dk \
--to=storm@cua.dk \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.