unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Richard Riley <rileyrgdev@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Grab and yank
Date: Sun, 24 Jan 2010 18:47:14 +0100	[thread overview]
Message-ID: <hji132$rou$1@ger.gmane.org> (raw)
In-Reply-To: C65CD08D88724733B527B3279CEA0A7A@us.oracle.com

"Drew Adams" <drew.adams@oracle.com> writes:

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

That was my thinking of it. And to be honest I'm not sure yank is out of
the realms of a "thing at pt" functionality. Anyway, I wanted to bring
attention to the library too since that might well help Andrea. I know
it did me when I first started scratching around trying to find simple
functions to get the word or region at pt without needing to learn about
the myriad of ways mark and point interact.

-- 
Google Talk : rileyrgdev@googlemail.com  http://www.google.com/talk
ASCII ribbon campaign ( )
 - against HTML email  X
             & vCards / \





  reply	other threads:[~2010-01-24 17:47 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
2010-01-24 17:47                 ` Richard Riley [this message]
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

  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='hji132$rou$1@ger.gmane.org' \
    --to=rileyrgdev@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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).