[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RE: How to detect end of buffer? [was: Deleting a word using keybind
From: |
Christopher Dimech |
Subject: |
Re: RE: How to detect end of buffer? [was: Deleting a word using keybinding] |
Date: |
Fri, 16 Oct 2020 01:54:43 +0200 |
It should be ok, because I am usihg the check to know if I am in the
middle of a word
rather than at the beginning. I then just move to the beginning of the
word before
killing the work. Otherwise I simply call (kill word).
Sent: Friday, October 16, 2020 at 1:02 AM
From: "Drew Adams" <drew.adams@oracle.com>
To: "Christopher Dimech" <dimech@gmx.com>
Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>, "Thien-Thi Nguyen"
<ttn@gnuvola.org>
Subject: RE: How to detect end of buffer? [was: Deleting a word using
keybinding]
> 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'.