aboutsummaryrefslogtreecommitdiffhomepage
path: root/coq/coq.el
diff options
context:
space:
mode:
authorGravatar David Aspinall <da@inf.ed.ac.uk>2009-05-27 08:34:31 +0000
committerGravatar David Aspinall <da@inf.ed.ac.uk>2009-05-27 08:34:31 +0000
commit21e826b7cc3076364d72f6d4e453d4ffffed0982 (patch)
tree2a7e021047d29b756857c5b10b013609bbb5f690 /coq/coq.el
parente3016def0716977cb6a147c6b852e474eb1d69d1 (diff)
Cleanup more Emacs compatibility
Diffstat (limited to 'coq/coq.el')
-rw-r--r--coq/coq.el12
1 files changed, 1 insertions, 11 deletions
diff --git a/coq/coq.el b/coq/coq.el
index f36a2b2e..cff203bd 100644
--- a/coq/coq.el
+++ b/coq/coq.el
@@ -668,21 +668,11 @@ happen since one of them is necessarily set to t in coq-syntax.el."
)
)
-
-;; region-exists-p does not exist in some emacs
-(cond
- ((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
(dontguess nil)
- ((region-exists-p)
+ ((not (eq mark-active nil)) ; region exists
(buffer-substring-no-properties (region-beginning) (region-end)))
((fboundp 'symbol-near-point) (symbol-near-point))
((fboundp 'symbol-at-point) (symbol-at-point)))))