unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Michael Slass <miknrene@drizzle.com>
Subject: Re: Word at cursor
Date: Wed, 20 Nov 2002 19:24:22 GMT	[thread overview]
Message-ID: <m3u1icca2w.fsf@localhost.localdomain> (raw)
In-Reply-To: uk7j8krdp.fsf@swbell.net

Peter Lee <pete_lee@swbell.net> writes:

>I have a lisp function that I would like to bind to a key such that
>when I press a key it will call my function and pass as a parameter
>the word under the cursor.
>
>I know this is probably trivial, but I'm not familiar with lisp at all
>and any pointers would be appreciated.  Thanks.

,----[ C-h f current-word RET ]
| current-word is a compiled Lisp function in `simple'.
| (current-word &optional STRICT)
| 
| Return the word point is on (or a nearby word) as a string.
| If optional arg STRICT is non-nil, return nil unless point is within
| or adjacent to a word.
`----

-- 
Mike Slass

      reply	other threads:[~2002-11-20 19:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-20 18:50 Word at cursor Peter Lee
2002-11-20 19:24 ` Michael Slass [this message]

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3u1icca2w.fsf@localhost.localdomain \
    --to=miknrene@drizzle.com \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).