diff options
author | Pierre Courtieu <courtieu@lri.fr> | 2013-07-04 12:32:16 +0000 |
---|---|---|
committer | Pierre Courtieu <courtieu@lri.fr> | 2013-07-04 12:32:16 +0000 |
commit | 7631d9f15d97ec82eb121650032b99ccba2621ff (patch) | |
tree | 8a1dcbe996a8de3c5bb30fc2f34caaa143f78b9e | |
parent | 8dc8561b71646db2342d6aac86d654a386478219 (diff) |
Fixing a compilation warning for a ml4pg function in coq.el.
-rw-r--r-- | coq/coq.el | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -2201,10 +2201,11 @@ are non-nil at the same time, this gives priority to the former." ;(define-key coq-mode-map (kbd ";") 'coq-terminator-insert) ; for french keyboards ;; Activation of ML4PG functionality +(declare-function ml4pg-select-mode "ml4pg") ;; Avoids copilation warnings (defun coq-activate-ml4pg () - (load-file (concatenate 'string proof-home-directory "contrib/ML4PG/ml4pg.el")) - (ml4pg-select-mode)) + (let ((filename (concatenate 'string proof-home-directory "contrib/ML4PG/ml4pg.el"))) + (when (file-exists-p filename) (load-file filename) (ml4pg-select-mode)))) |