[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to detect end of buffer? [was: Deleting a word using keybinding]
From: |
Stephen Berman |
Subject: |
Re: How to detect end of buffer? [was: Deleting a word using keybinding] |
Date: |
Fri, 16 Oct 2020 14:18:31 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
On Fri, 16 Oct 2020 00:12:07 -0400 Stefan Monnier <monnier@iro.umontreal.ca>
wrote:
>> That regexp recognizes only ASCII letters. If you want any letters
>> supported by the current locale, use [[:alnum:]].
>
> Actually, Emacs's character classes aren't quite like POSIX's: they
> don't pay attention to the locale (at least, by and large).
Thanks, didn't know that. I'd just tested that [[:alnum:]] recognizes
non-ASCII characters and assumed it was because of the locale
(en_US.UTF-8), but now I checked the code and IIUC it uses
unicode-category-table without reference to the locale.
Steve Berman