help-gnu-emacs
[Top][All Lists]
Advanced

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

RE: Grab and yank


From: Drew Adams
Subject: RE: Grab and yank
Date: Sun, 24 Jan 2010 09:39:45 -0800

> >> thingatpt+ might be a good place for this?
> >> http://www.emacswiki.org/emacs/thingatpt+.el
> >
> > Why?
> 
> It's an existing documented library of things that 
> specialises in doing "things at point"...

I think Andrea wanted something that:

 (a) goes and gets a function definition
     (from a tags file or the function's source code)
 (b) returns to the original location, and
 (c) yanks the definition at point.

The thing-at-pt functions pick up stuff at or near point.
They don't (and shouldn't) do excursion stuff or yanking.

That said, these functions in `thingatpt+.el' might be of some use in this
context: `region-or-word-nearest-point', `region-or-word-at-point'. They pick up
the active region or (if inactive) the word nearest/at point.





reply via email to

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