# HG changeset patch # User Richard M. Stallman # Date 775237916 0 # Node ID 7198dbca1d012aa68dad60b9f623e319b4e82132 # Parent d1ea9505eab3eedfed3a742bcd49f1e6eefa3d06 (dissociated-press): Error at start if buffer is empty. diff -r d1ea9505eab3 -r 7198dbca1d01 lisp/play/dissociate.el --- 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