all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
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: RE: How to detect end of buffer? [was: Deleting a word using keybinding]
Date: Fri, 16 Oct 2020 01:54:43 +0200	[thread overview]
Message-ID: <trinity-e03062a7-61dc-496a-8459-205452642c6d-1602806083871@3c-app-mailcom-bs01> (raw)
In-Reply-To: <98b2ce51-f322-480f-9e03-68f1bd473c2d@default>

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


  reply	other threads:[~2020-10-15 23:54 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
2020-10-15 23:54     ` Christopher Dimech [this message]
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-e03062a7-61dc-496a-8459-205452642c6d-1602806083871@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.