aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDrew Adams2011-03-25 00:38:12 +0800
committerLeo Liu2011-03-25 00:38:12 +0800
commite8974c48ae2f265555c7772ea0989fca5e4158b8 (patch)
tree1799d0440661e952e15294ab1ec2e7be1432bddb
parent1149507c7fe8c24d93448eea2d0114746c580782 (diff)
downloademacs-e8974c48ae2f265555c7772ea0989fca5e4158b8.tar.gz
emacs-e8974c48ae2f265555c7772ea0989fca5e4158b8.zip
Add support for defun in thingatpt.el
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/thingatpt.el6
2 files changed, 10 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index af2d4ee5a8e..5d6b203aea2 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12011-03-24 Drew Adams <drew.adams@oracle.com>
2
3 * thingatpt.el: Support `defun'.
4
12011-03-23 Leo Liu <sdl.web@gmail.com> 52011-03-23 Leo Liu <sdl.web@gmail.com>
2 6
3 * abbrevlist.el: Move to obsolete/abbrevlist.el. 7 * 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."
207 (cons opoint end)))) 207 (cons opoint end))))
208 (error nil))))) 208 (error nil)))))
209 209
210;; Defuns
211
212(put 'defun 'beginning-op 'beginning-of-defun)
213(put 'defun 'end-op 'end-of-defun)
214(put 'defun 'forward-op 'end-of-defun)
215
210;; Filenames and URLs www.com/foo%32bar 216;; Filenames and URLs www.com/foo%32bar
211 217
212(defvar thing-at-point-file-name-chars "-~/[:alnum:]_.${}#%,:" 218(defvar thing-at-point-file-name-chars "-~/[:alnum:]_.${}#%,:"