all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Richard Riley'" <rileyrgdev@gmail.com>, <help-gnu-emacs@gnu.org>
Subject: RE: Grab and yank
Date: Sun, 24 Jan 2010 09:39:45 -0800	[thread overview]
Message-ID: <C65CD08D88724733B527B3279CEA0A7A@us.oracle.com> (raw)
In-Reply-To: <hji029$p16$1@ger.gmane.org>

> >> 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	other threads:[~2010-01-24 17:39 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-23 21:31 Grab and yank andrea
2010-01-24 10:34 ` andrea
2010-01-24 16:43   ` Drew Adams
2010-01-24 11:24 ` Lennart Borgman
2010-01-24 11:50   ` Andrea Crotti
2010-01-24 12:05     ` Lennart Borgman
2010-01-24 13:48       ` Lennart Borgman
2010-01-24 15:13         ` Richard Riley
2010-01-24 15:16           ` Lennart Borgman
2010-01-24 17:29             ` Richard Riley
2010-01-24 17:39               ` Drew Adams [this message]
2010-01-24 17:47                 ` Richard Riley
2010-01-24 14:32 ` Andreas Röhler
     [not found] ` <mailman.99.1264332314.14305.help-gnu-emacs@gnu.org>
2010-01-25 18:07   ` Stefan Monnier

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=C65CD08D88724733B527B3279CEA0A7A@us.oracle.com \
    --to=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=rileyrgdev@gmail.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.
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.