all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
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]
Date: Thu, 15 Oct 2020 16:02:08 -0700 (PDT)	[thread overview]
Message-ID: <98b2ce51-f322-480f-9e03-68f1bd473c2d@default> (raw)
In-Reply-To: <trinity-22c7c4a0-44dd-40e0-bce3-93afd0442af3-1602799921245@3c-app-mailcom-bs01>

> 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'.



  parent reply	other threads:[~2020-10-15 23:02 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
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 [this message]
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=98b2ce51-f322-480f-9e03-68f1bd473c2d@default \
    --to=drew.adams@oracle.com \
    --cc=dimech@gmx.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.