diff options
author | 2009-05-27 08:34:31 +0000 | |
---|---|---|
committer | 2009-05-27 08:34:31 +0000 | |
commit | 21e826b7cc3076364d72f6d4e453d4ffffed0982 (patch) | |
tree | 2a7e021047d29b756857c5b10b013609bbb5f690 /coq/coq.el | |
parent | e3016def0716977cb6a147c6b852e474eb1d69d1 (diff) |
Cleanup more Emacs compatibility
Diffstat (limited to 'coq/coq.el')
-rw-r--r-- | coq/coq.el | 12 |
1 files changed, 1 insertions, 11 deletions
@@ -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))))) |