summaryrefslogtreecommitdiff
path: root/lisp/thingatpt.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1997-06-25 03:03:57 +0000
committerRichard M. Stallman <rms@gnu.org>1997-06-25 03:03:57 +0000
commite9c71056c15095a268339631df52babcab2cac1b (patch)
tree38418c89760af372890859db676065b0d8910d02 /lisp/thingatpt.el
parent0b296daca5e507ae82d5360d39fe716b4cd5465a (diff)
downloademacs-e9c71056c15095a268339631df52babcab2cac1b.tar.gz
(buffer): Don't use beginning-of-buffer, end-of-buffer.
Diffstat (limited to 'lisp/thingatpt.el')
-rw-r--r--lisp/thingatpt.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/thingatpt.el b/lisp/thingatpt.el
index c163b05a7f4..436f2ff3589 100644
--- a/lisp/thingatpt.el
+++ b/lisp/thingatpt.el
@@ -225,8 +225,8 @@ a symbol as a valid THING."
;; Buffer
-(put 'buffer 'end-op 'end-of-buffer)
-(put 'buffer 'beginning-op 'beginning-of-buffer)
+(put 'buffer 'end-op '(lambda () (goto-char (point-max))))
+(put 'buffer 'beginning-op '(lambda () (goto-char (point-min))))
;; Symbols