diff options
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/thingatpt.el | 6 |
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 @@ | |||
| 1 | 2011-03-24 Drew Adams <drew.adams@oracle.com> | ||
| 2 | |||
| 3 | * thingatpt.el: Support `defun'. | ||
| 4 | |||
| 1 | 2011-03-23 Leo Liu <sdl.web@gmail.com> | 5 | 2011-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:]_.${}#%,:" |