diff options
author | Makarius Wenzel <makarius@sketis.net> | 2009-11-28 18:07:08 +0000 |
---|---|---|
committer | Makarius Wenzel <makarius@sketis.net> | 2009-11-28 18:07:08 +0000 |
commit | 894b4a2d13850f43dcc8c0eac815c1c51a67648d (patch) | |
tree | fdc792a3e2742a93f0c63ffb23f30614320711ed /isar/isabelle-system.el | |
parent | d02eaddd89f29d212c2e8f43b65047048a0d958f (diff) |
isabelle-set-prog-name: more robust treatment of spaces in arguments;
Diffstat (limited to 'isar/isabelle-system.el')
-rw-r--r-- | isar/isabelle-system.el | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/isar/isabelle-system.el b/isar/isabelle-system.el index 040fb959..1ccb18a8 100644 --- a/isar/isabelle-system.el +++ b/isar/isabelle-system.el @@ -117,9 +117,6 @@ The logic image name is tagged onto the end." :type 'file :group 'isabelle) -(defvar isabelle-prog-name nil - "Set from `isabelle-set-prog-name', has name of logic appended sometimes.") - (defun isa-tool-list-logics () "Generate a list of available object logics." (if (isa-set-isabelle-command) @@ -170,7 +167,7 @@ at the top of your theory file, like this: (defun isabelle-set-prog-name (&optional filename) "Make proper command line for running Isabelle. -This function sets `isabelle-prog-name' and `proof-prog-name'." +This function sets `proof-prog-name' and `isar-prog-args'." (let* ;; The ISABELLE_PROCESS and PROOFGENERAL_LOGIC values (set when ;; run under the interface wrapper script) indicate command line @@ -180,18 +177,17 @@ This function sets `isabelle-prog-name' and `proof-prog-name'." (getenv "ISABELLE_PROCESS") ; command line override (isa-getenv "ISABELLE_PROCESS") ; choose to match isabelle "isabelle-process")) ; to - (isabelle-opts (getenv "ISABELLE_OPTIONS")) - (opts (concat " -PI" ;; Proof General + Isar - (if proof-shell-unicode " -m PGASCII" "") - (if (and isabelle-opts (not (equal isabelle-opts ""))) - (concat " " isabelle-opts) ""))) + (isabelle-opts (split-string (getenv "ISABELLE_OPTIONS"))) + (opts (append (list "-PI") ;; Proof General + Isar + (if proof-shell-unicode (list "-m" "PGASCII") nil) + isabelle-opts)) (logic (or isabelle-chosen-logic (getenv "PROOFGENERAL_LOGIC"))) (logicarg (if (and logic (not (equal logic ""))) - (concat " " logic) ""))) + (list logic) nil))) (setq isabelle-chosen-logic-prev isabelle-chosen-logic) - (setq isabelle-prog-name (concat isabelle opts logicarg)) - (setq proof-prog-name isabelle-prog-name))) + (setq isar-prog-args (append opts logicarg)) + (setq proof-prog-name isabelle))) (defun isabelle-choose-logic (logic) "Adjust isabelle-prog-name and proof-prog-name for running LOGIC." |