From 60b24ac4731ef2451fe95de5a8974c17f85e6bca Mon Sep 17 00:00:00 2001 From: David Aspinall Date: Mon, 28 Jan 2008 23:46:52 +0000 Subject: Don't give error when loaded during "make doc" with old emacs version --- lib/holes.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/holes.el b/lib/holes.el index fa7f6f92..691b974c 100644 --- a/lib/holes.el +++ b/lib/holes.el @@ -612,11 +612,11 @@ Sets `holes-active-hole' to the next hole if it exists." "see `mouse-selection-click-count'" (+ mouse-selection-click-count 1))) (t - (error + (unless noninteractive + ;; da: ^^^^ avoid error in "make doc" (mouse functions undefined?) + (error "Your (X)Emacs version is not compatible with holes (too old or - new version?), sorry")) - ) - ) + new version?), sorry"))))) (defun holes-mouse-replace-active-hole (event) ; checkdoc-params: (event) -- cgit v1.2.3