From 04ece408bd57df950d41d5793850c2ea3db82f6b Mon Sep 17 00:00:00 2001 From: David Aspinall Date: Fri, 5 May 2000 16:50:31 +0000 Subject: Expanded explanation of selecting Isar. --- doc/ProofGeneral.texi | 32 ++++++++++++++++++++++---------- 1 file changed, 22 insertions(+), 10 deletions(-) (limited to 'doc') diff --git a/doc/ProofGeneral.texi b/doc/ProofGeneral.texi index b2995081..d7e64dba 100644 --- a/doc/ProofGeneral.texi +++ b/doc/ProofGeneral.texi @@ -1,3 +1,4 @@ + \def\fontdefs{\psfamily{bsf}{r}{c}{b}{b}{ri}{ri}{ro}{bo}\def\mainmagstep{1200}} \input texinfo @c @@ -3001,17 +3002,28 @@ below. Note that in ``classic'' Isabelle, @file{.thy} files contain definitions and declarations for a theory, while @file{.ML} contain proof scripts. So most of Proof General's functions only make sense in @file{.ML} -files, and there is no toolbar and only a short menu for @file{.thy} -files. - -There is no specific documentation here for the Isabelle/Isar instance -of Proof General. With Isabelle/Isar, @file{.thy} files contain proofs -as well as theory definitions, and so they support the toolbar and usual -scripting functions of Proof General. To load the Isabelle/Isar -instance of Proof General, you can set -@code{PROOFGENERAL_ASSISTANTS=isar} in the shell before starting Emacs, +files, and there is no toolbar and short menus for @file{.thy} files. + +In Isabelle/Isar, on the other hand, @file{.thy} files contain +definitions for theories as well as proof, so scripting takes place +there and you will see the usual toolbar and scripting functions of +Proof General. There is no specific documentation here for the +Isabelle/Isar instance of Proof General. + +Note that it is @b{not} possible to use both Isabelle and Isabelle/Isar +modes of Proof General at the same time. +To load the Isabelle/Isar instance of Proof General, you can set + @code{PROOFGENERAL_ASSISTANTS=isar} in the shell before starting Emacs, to make sure ordinary Isabelle theory file mode isn't loaded instead. - +Another way of selecting Isar is to put a special modeline comment in, +like this: +@code + (* -*- isar -*- *) +@end code +at the top of your Isar files (or at least, the first file you visit). +This Emacs feature overrides the default choice of mode based on the +file extension. Yet another way to select Isar is to use the Isabelle +scripts to start Emacs. @menu * ML files:: -- cgit v1.2.3