]> git.eshelyaron.com Git - emacs.git/commitdiff
(dissociated-press): Error at start if buffer is empty.
authorRichard M. Stallman <rms@gnu.org>
Tue, 26 Jul 1994 15:51:56 +0000 (15:51 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 26 Jul 1994 15:51:56 +0000 (15:51 +0000)
lisp/play/dissociate.el

index 6939f320f7993d91f7d1b94bfd02711338640b5b..2f564151db7ed67d9425794d0833f7249a7502aa 100644 (file)
@@ -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