From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: Grab and yank Date: Sun, 24 Jan 2010 09:39:45 -0800 Organization: Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1264354837 27937 80.91.229.12 (24 Jan 2010 17:40:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 24 Jan 2010 17:40:37 +0000 (UTC) To: "'Richard Riley'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jan 24 18:40:29 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NZ6Rp-0001E1-0J for geh-help-gnu-emacs@m.gmane.org; Sun, 24 Jan 2010 18:40:29 +0100 Original-Received: from localhost ([127.0.0.1]:41490 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NZ6Rq-0003Ud-1v for geh-help-gnu-emacs@m.gmane.org; Sun, 24 Jan 2010 12:40:30 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NZ6RJ-0003Sj-TQ for help-gnu-emacs@gnu.org; Sun, 24 Jan 2010 12:39:57 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NZ6RF-0003MX-BO for help-gnu-emacs@gnu.org; Sun, 24 Jan 2010 12:39:57 -0500 Original-Received: from [199.232.76.173] (port=48910 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NZ6RF-0003MK-5m for help-gnu-emacs@gnu.org; Sun, 24 Jan 2010 12:39:53 -0500 Original-Received: from acsinet12.oracle.com ([141.146.126.234]:38482) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NZ6RE-0003uO-Ou for help-gnu-emacs@gnu.org; Sun, 24 Jan 2010 12:39:53 -0500 Original-Received: from rcsinet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by acsinet12.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o0OHdnPn007660 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 24 Jan 2010 17:39:50 GMT Original-Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by rcsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o0OHdjb4025326; Sun, 24 Jan 2010 17:39:45 GMT Original-Received: from abhmt021.oracle.com by acsmt357.oracle.com with ESMTP id 1464641001264354778; Sun, 24 Jan 2010 11:39:38 -0600 Original-Received: from dradamslap1 (/24.5.185.59) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 24 Jan 2010 09:39:38 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AcqdGrXmET7tBgnwQSy2EvFHlFXxmwAAHVJQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Source-IP: acsmt354.oracle.com [141.146.40.154] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090209.4B5C85E5.0029:SCFMA4539814,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:71426 Archived-At: > >> 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.