[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Word at cursor

From: Michael Slass
Subject: Re: Word at cursor
Date: Wed, 20 Nov 2002 19:24:22 GMT
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Peter Lee <> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]