help-gnu-emacs
[Top][All Lists]
Advanced

[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: Drew Adams
Subject: RE: How to detect end of buffer? [was: Deleting a word using keybinding]
Date: Thu, 15 Oct 2020 16:02:08 -0700 (PDT)

> determine whether the
current point is on a number or a letter.

> if (looking-at "[0-9a-zA-Z]")

As Stephen said, that matches only a decimal numeral or an ASCII letter.  Dunno 
whether that's what you want.

And if you just want a test, and don't need to also set the match data for some 
ulterior purpose, then use `looking-at-p', not `looking-at'.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]