[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#10857: ucs-insert deals inconsistently with errors
From: |
Andreas Schwab |
Subject: |
bug#10857: ucs-insert deals inconsistently with errors |
Date: |
Tue, 21 Feb 2012 10:16:02 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux) |
Juanma Barranquero <lekktu@gmail.com> writes:
> On Tue, Feb 21, 2012 at 01:37, Juri Linkov <juri@jurta.org> wrote:
>
>>> The second problem can be trivially fixed with
>>> (not (string-match-p "[^[:xdigit:]]" character)),
>>
>> In `read-char-by-name', the condition for this purpose is:
>>
>> (string-match-p "^[0-9a-fA-F]+$" input)
>
> They are equivalent, aren't they?
No. The latter ignores anything before or after a newline character, as
long as there is a match on the other side of it. That can be fixed by
using "\\`[0-9a-fA-F]+\\'".
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."