aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Pierre Courtieu <courtieu@lri.fr>2009-04-16 08:21:58 +0000
committerGravatar Pierre Courtieu <courtieu@lri.fr>2009-04-16 08:21:58 +0000
commit11dca786bc67950483b12f8e9e1c8cda8341ec15 (patch)
treebf0c469448fcabfde30109c0172163c41b70c15c
parent8e13538bbf73e43eca3e2fe421373910e2c8796d (diff)
fixed a bug with region-exists-p not defined in some emacsen.
-rw-r--r--coq/coq.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/coq/coq.el b/coq/coq.el
index c9471692..f36a2b2e 100644
--- a/coq/coq.el
+++ b/coq/coq.el
@@ -669,14 +669,15 @@ happen since one of them is necessarily set to t in coq-syntax.el."
)
-;; region-exists-p does not exist in emacs <= 22
+;; region-exists-p does not exist in some emacs
(cond
- ((string-match "NU Emacs 22" (emacs-version))
+ ((not (featurep 'region-exists-p))
(defmacro region-exists-p nil
"Returns t if the mark is active, nil otherwise."
`(not (eq mark-active nil)))))
+
(defun coq-guess-or-ask-for-string (s &optional dontguess)
(let ((guess
(cond