From: Drew Adams Date: Thu, 24 Mar 2011 16:38:12 +0000 (+0800) Subject: Add support for defun in thingatpt.el X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~498 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e8974c48ae2f265555c7772ea0989fca5e4158b8;p=emacs.git Add support for defun in thingatpt.el --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index af2d4ee5a8e..5d6b203aea2 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2011-03-24 Drew Adams + + * thingatpt.el: Support `defun'. + 2011-03-23 Leo Liu * abbrevlist.el: Move to obsolete/abbrevlist.el. diff --git a/lisp/thingatpt.el b/lisp/thingatpt.el index 020faa197cd..a56c3e4d501 100644 --- a/lisp/thingatpt.el +++ b/lisp/thingatpt.el @@ -207,6 +207,12 @@ a symbol as a valid THING." (cons opoint end)))) (error nil))))) +;; Defuns + +(put 'defun 'beginning-op 'beginning-of-defun) +(put 'defun 'end-op 'end-of-defun) +(put 'defun 'forward-op 'end-of-defun) + ;; Filenames and URLs www.com/foo%32bar (defvar thing-at-point-file-name-chars "-~/[:alnum:]_.${}#%,:"