From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Newsgroups: gmane.emacs.devel Subject: Re: (thing-at-point 'defun) Date: Tue, 6 Apr 2010 16:53:57 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1270569252 2555 80.91.229.12 (6 Apr 2010 15:54:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 6 Apr 2010 15:54:12 +0000 (UTC) Cc: emacs-devel@gnu.org To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 06 17:54:09 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NzB6O-0007My-Q0 for ged-emacs-devel@m.gmane.org; Tue, 06 Apr 2010 17:54:09 +0200 Original-Received: from localhost ([127.0.0.1]:47769 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NzB6O-0003VP-CH for ged-emacs-devel@m.gmane.org; Tue, 06 Apr 2010 11:54:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NzB6I-0003Ur-8y for emacs-devel@gnu.org; Tue, 06 Apr 2010 11:54:02 -0400 Original-Received: from [140.186.70.92] (port=38369 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NzB6G-0003Ud-Qr for emacs-devel@gnu.org; Tue, 06 Apr 2010 11:54:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NzB6F-0002m9-Fu for emacs-devel@gnu.org; Tue, 06 Apr 2010 11:54:00 -0400 Original-Received: from ey-out-1920.google.com ([74.125.78.150]:21623) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NzB6F-0002m0-BO for emacs-devel@gnu.org; Tue, 06 Apr 2010 11:53:59 -0400 Original-Received: by ey-out-1920.google.com with SMTP id 4so15142eyg.34 for ; Tue, 06 Apr 2010 08:53:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:cc:content-type; bh=2DHOGK6uK5ywQevPr9UVVe3gFh7lJNc/dkp/MMvlACk=; b=CuAE/2+py9QT8y2BX+mR9JsMSKJr25mL/C4RW2s61jUQIT5zGEwZO5DXJ/Dvt5uh3Z 8nWSSGQ3w+1ayIGzEnTT/8k49iJJsIbqJaQcYaZDBxd8UKEsMaC/AJU+NYdwJuPPt56b qvSidhfTQhaGbLOhKl6Wl2DVmRebJML/6tqn4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=rszg+bjB4HGOJI9Fzm+hKzRo0MpS/ZZ61j3Jygn2s0YGnhNepu4D7FmYFo7DIPxPQx oc/Hcid2AhPhnMCXMutyoVot0P+aZF6qlYvyrNhUXWxHNSz61/bs2s8Wm49QJ4vqPgTY EG/1VUWEE/niUtpIL1zL9ZrFCoajCY8Ns8Bg4= Original-Received: by 10.103.167.11 with HTTP; Tue, 6 Apr 2010 08:53:57 -0700 (PDT) In-Reply-To: Original-Received: by 10.102.197.36 with SMTP id u36mr3875340muf.105.1270569237110; Tue, 06 Apr 2010 08:53:57 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:123271 Archived-At: On 6 April 2010 16:49, Drew Adams wrote: >> 'defun is listed in thing-at-point's doc string. What is this supposed >> to do? I eval (thing-at-point 'defun) in various places and it seems >> always return nil. > > It's a bug (IMO). I use this in thingatpt+.el; it is missing from thingatpt.el: > > ;; `defun' type > (put 'defun 'beginning-op 'beginning-of-defun) > (put 'defun 'end-op 'end-of-defun) > (put 'defun 'forward-op 'end-of-defun) Many thanks for this. Leo