[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 00:38:27 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
On Fri, 16 Oct 2020 00:12:01 +0200 Christopher Dimech <dimech@gmx.com> wrote:
> I think I have done it now. But I would be happy should someone spot
> some problem.
>
> Regarding the condition below, I think it takes care of the ranges
> appropriately,
> so that I can go to the beginning of the word. It should determine
> whether the
> current point is on a number or a letter.
>
> if (looking-at "[0-9a-zA-Z]")
That regexp recognizes only ASCII letters. If you want any letters
supported by the current locale, use [[:alnum:]].
Steve Beramn