unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Word at cursor
@ 2002-11-20 18:50 Peter Lee
  2002-11-20 19:24 ` Michael Slass
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Lee @ 2002-11-20 18:50 UTC (permalink / raw)


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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Word at cursor
  2002-11-20 18:50 Word at cursor Peter Lee
@ 2002-11-20 19:24 ` Michael Slass
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Slass @ 2002-11-20 19:24 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-11-20 19:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-20 18:50 Word at cursor Peter Lee
2002-11-20 19:24 ` Michael Slass

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