[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug using "-" last in `skip-chars-forward'
From: |
Martin Stjernholm |
Subject: |
Bug using "-" last in `skip-chars-forward' |
Date: |
Fri, 05 Dec 2003 02:32:57 +0100 |
User-agent: |
Gnus/5.090016 (Oort Gnus v0.16) Emacs/20.7 (gnu/linux) |
The following bug exists both in Emacs 21.3 and XEmacs 21.4 (patch
14):
1. Start (X)Emacs with -q -no-site-file.
2. Create a buffer and type "-" in it.
3. Go back to the beginning of the buffer.
4. Evaluate (skip-chars-forward "y-").
The point does not move, whereas I expected it to skip forward past
the "-". That since a "-" last in a normal regexp character
alternative is not special. `skip-chars-forward' does not use quite
the same syntax, but according to the manual that detail should still
be the same.
Furthermore, if "-" in the buffer is replaced with "y", it still
doesn't skip forward past it.
I.e. when the string to `skip-chars-forward' or `skip-chars-backward'
ends with a "-" that doesn't also start it, both it and the preceding
character are ignored.
- Bug using "-" last in `skip-chars-forward',
Martin Stjernholm <=