From: Christopher Dimech <dimech@gmx.com>
To: Drew Adams <drew.adams@oracle.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]
Date: Fri, 16 Oct 2020 00:12:01 +0200 [thread overview]
Message-ID: <trinity-22c7c4a0-44dd-40e0-bce3-93afd0442af3-1602799921245@3c-app-mailcom-bs01> (raw)
In-Reply-To: <4b391ea8-ef95-42f8-990b-6ff2bfccd201@default>
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]")
Sent: Thursday, October 15, 2020 at 11:46 PM
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: How to detect end of buffer? [was: Deleting a word using
keybinding]
> > Is there a way to detect end of buffer?
>
> Function `eobp'
FYI, for asking Emacs itself:
`C-h d end buffer' or `C-h d buffer end'
finds `eobp' for you. That's command
`apropos-documentation'. It searches doc
strings for the words or regexp you give it.
(Actually, it doesn't find it with Emacs 26,
for some reason. But it does with Emacs 27.)
next prev parent reply other threads:[~2020-10-15 22:12 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-15 21:46 How to detect end of buffer? [was: Deleting a word using keybinding] Drew Adams
2020-10-15 22:12 ` Christopher Dimech [this message]
2020-10-15 22:38 ` Stephen Berman
2020-10-16 4:12 ` Stefan Monnier
2020-10-16 12:18 ` Stephen Berman
2020-10-15 23:02 ` Drew Adams
2020-10-15 23:54 ` Christopher Dimech
2020-10-16 1:39 ` Drew Adams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=trinity-22c7c4a0-44dd-40e0-bce3-93afd0442af3-1602799921245@3c-app-mailcom-bs01 \
--to=dimech@gmx.com \
--cc=drew.adams@oracle.com \
--cc=help-gnu-emacs@gnu.org \
--cc=ttn@gnuvola.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.