aboutsummaryrefslogtreecommitdiffhomepage
path: root/coq
diff options
context:
space:
mode:
authorGravatar Pierre Courtieu <courtieu@lri.fr>2008-10-02 08:09:23 +0000
committerGravatar Pierre Courtieu <courtieu@lri.fr>2008-10-02 08:09:23 +0000
commit475f196370931331d897c2307153247ac71728c6 (patch)
tree0bd6893df5dac94e25746e4418e8a73b56a80b02 /coq
parent5224af80cb0225827880b95cefd009fe7b3f1f26 (diff)
Fixing region access for emacs <= 22.
Diffstat (limited to 'coq')
-rw-r--r--coq/coq.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/coq/coq.el b/coq/coq.el
index 1c7390e6..c769ff39 100644
--- a/coq/coq.el
+++ b/coq/coq.el
@@ -667,6 +667,14 @@ happen since one of them is necessarily set to t in coq-syntax.el."
)
+;; region-exists-p does not exist in emacs <= 22
+(cond
+ ((string-match "NU Emacs 22" (emacs-version))
+ (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