changeset 8341:7198dbca1d01

(dissociated-press): Error at start if buffer is empty.
author Richard M. Stallman <rms@gnu.org>
date Tue, 26 Jul 1994 15:51:56 +0000
parents d1ea9505eab3
children 95c011057e51
files lisp/play/dissociate.el
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/play/dissociate.el	Tue Jul 26 15:26:13 1994 +0000
+++ b/lisp/play/dissociate.el	Tue Jul 26 15:51:56 1994 +0000
@@ -45,6 +45,8 @@
 	 (move-amount (if (> arg 0) arg (- arg)))
 	 (search-function (if (> arg 0) 'search-forward 'word-search-forward))
 	 (last-query-point 0))
+    (if (= (point-max) (point-min))
+	(error "The buffer contains no text to start from"))
     (switch-to-buffer outbuf)
     (erase-buffer)
     (while