diff options
| author | David Aspinall | 2003-02-19 13:34:19 +0000 |
|---|---|---|
| committer | David Aspinall | 2003-02-19 13:34:19 +0000 |
| commit | bbc6145531ff3db5ee7809b2ecd400e378b667f7 (patch) | |
| tree | 2f53841ea964406b9970d49399ed6dfe4f80cc04 /generic/proof-mmm.el | |
| parent | 4868a79fcf6672778b2f195a515a42d1338f577a (diff) | |
Use bundled version off mmm first
Diffstat (limited to 'generic/proof-mmm.el')
| -rw-r--r-- | generic/proof-mmm.el | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/generic/proof-mmm.el b/generic/proof-mmm.el index c8dc61d6..bf28fbb7 100644 --- a/generic/proof-mmm.el +++ b/generic/proof-mmm.el @@ -13,9 +13,10 @@ ;; ;; ================================================================= ;; -;; NB: mmm-mode is bundled with Proof General. If you have installed -;; mmm-mode already, PG will use that version instead of the bundled -;; version. +;; NB: mmm-mode is bundled with Proof General, and PG will select +;; it's own version before any other version on the Emacs load path. +;; If you want to override this, simply load your version before +;; starting Emacs, with (require 'mmm-auto). ;; ;; Configuration for the prover is expected to reside in <foo>-mmm.el ;; It should define an MMM submode class called <foo>. @@ -25,14 +26,14 @@ "A test to see whether mmm support is available." (and (or (featurep 'mmm-auto) - (or (proof-try-require 'mmm-auto) ; local install? - (progn - ;; try bundled version - (setq load-path - (cons - (concat proof-home-directory "mmm/") - load-path)) - (proof-try-require 'mmm-auto)))) + (progn + ;; put bundled version on load path + (setq load-path + (cons + (concat proof-home-directory "mmm/") + load-path)) + ;; *should* always succeed unless bundled version broken + (proof-try-require 'mmm-auto))) ;; Load prover-specific config in <foo>-mmm.el (proof-try-require (proof-ass-sym mmm)))) |
