aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Aspinall2008-01-28 23:46:52 +0000
committerDavid Aspinall2008-01-28 23:46:52 +0000
commit60b24ac4731ef2451fe95de5a8974c17f85e6bca (patch)
tree41bcb17826309598e15d42bbc94c31b0b00d31b9
parent075c9e5fa23e69563a637a9ffbcab5d1402edd19 (diff)
Don't give error when loaded during "make doc" with old emacs version
-rw-r--r--lib/holes.el8
1 files changed, 4 insertions, 4 deletions
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)