diff options
author | Pierre Courtieu <courtieu@lri.fr> | 2009-04-16 08:21:58 +0000 |
---|---|---|
committer | Pierre Courtieu <courtieu@lri.fr> | 2009-04-16 08:21:58 +0000 |
commit | 11dca786bc67950483b12f8e9e1c8cda8341ec15 (patch) | |
tree | bf0c469448fcabfde30109c0172163c41b70c15c | |
parent | 8e13538bbf73e43eca3e2fe421373910e2c8796d (diff) |
fixed a bug with region-exists-p not defined in some emacsen.
-rw-r--r-- | coq/coq.el | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |