summaryrefslogtreecommitdiff
path: root/lisp/play/zone.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2012-05-07 21:41:05 -0400
committerGlenn Morris <rgm@gnu.org>2012-05-07 21:41:05 -0400
commit5075bdb576c96ffba8eee9ae8bbf70c23315f8ed (patch)
tree4ddc2f9ec406de5f7afaf06d42e2a99b257ff302 /lisp/play/zone.el
parent06f679a7941bdb0ca787021a89702fbed668d3a3 (diff)
downloademacs-5075bdb576c96ffba8eee9ae8bbf70c23315f8ed.tar.gz
* lisp/play/zone.el (zone-pgm-stress): Don't pollute kill-ring. (Bug#11388)
Diffstat (limited to 'lisp/play/zone.el')
-rw-r--r--lisp/play/zone.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/play/zone.el b/lisp/play/zone.el
index f47e273d612..b64099844e2 100644
--- a/lisp/play/zone.el
+++ b/lisp/play/zone.el
@@ -1,6 +1,6 @@
;;; zone.el --- idle display hacks
-;; Copyright (C) 2000-2012 Free Software Foundation, Inc.
+;; Copyright (C) 2000-2012 Free Software Foundation, Inc.
;; Author: Victor Zandy <zandy@cs.wisc.edu>
;; Maintainer: Thien-Thi Nguyen <ttn@gnu.org>
@@ -595,8 +595,7 @@ If the element is a function or a list of a function and a number,
(when (< 50 (random 100))
(goto-char (point-max))
(forward-line -1)
- (let ((kill-whole-line t))
- (kill-line))
+ (delete-region (point) (line-beginning-position 2))
(goto-char (point-min))
(insert (nth (random (length lines)) lines)))
(message (concat (make-string (random (- (frame-width) 5)) ? ) "grrr"))