From: Markus Rost Date: Wed, 24 Dec 2003 23:18:10 +0000 (+0000) Subject: (vc-dired-purge): Avoid error from `kill-line'. X-Git-Tag: ttn-vms-21-2-B4~8181 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3c85843f331a4b773ab32e4a05739b589863bcd0;p=emacs.git (vc-dired-purge): Avoid error from `kill-line'. --- diff --git a/lisp/vc.el b/lisp/vc.el index 4ee27391003..b015d56c87f 100644 --- a/lisp/vc.el +++ b/lisp/vc.el @@ -7,7 +7,7 @@ ;; Maintainer: Andre Spiegel ;; Keywords: tools -;; $Id: vc.el,v 1.359 2003/07/06 19:08:13 jpw Exp $ +;; $Id: vc.el,v 1.360 2003/09/01 15:45:17 miles Exp $ ;; This file is part of GNU Emacs. @@ -2144,7 +2144,7 @@ Called by dired after any portion of a vc-dired buffer has been read in." ;; We cannot remove the top level directory. ;; Just make it look a little nicer. (forward-line 1) - (kill-line) + (or (eobp) (kill-line)) (if (not (dired-next-subdir 1 t)) (goto-char (point-max)))))) (goto-char (point-min)))