From: Richard M. Stallman Date: Tue, 26 Jul 1994 15:51:56 +0000 (+0000) Subject: (dissociated-press): Error at start if buffer is empty. X-Git-Tag: emacs-19.34~7512 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8bce086749c63d6812a8df1e49592119091379ee;p=emacs.git (dissociated-press): Error at start if buffer is empty. --- diff --git a/lisp/play/dissociate.el b/lisp/play/dissociate.el index 6939f320f79..2f564151db7 100644 --- a/lisp/play/dissociate.el +++ b/lisp/play/dissociate.el @@ -45,6 +45,8 @@ Default is 2." (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