aboutsummaryrefslogtreecommitdiff
path: root/generic
diff options
context:
space:
mode:
authorDavid Aspinall1999-10-06 10:49:24 +0000
committerDavid Aspinall1999-10-06 10:49:24 +0000
commit73a83abb1e77ee70e94ec64c40e27c850cd01810 (patch)
tree6bc243d15e91812ff77f3e790a04dc4f92182324 /generic
parent9ad47b1591d039b43fdbb9ca83234c338ce26d64 (diff)
settings for (de)activating scripting, and proof-tidy-response.
Diffstat (limited to 'generic')
-rw-r--r--generic/proof-config.el75
1 files changed, 59 insertions, 16 deletions
diff --git a/generic/proof-config.el b/generic/proof-config.el
index 64eae290..67df7e54 100644
--- a/generic/proof-config.el
+++ b/generic/proof-config.el
@@ -141,22 +141,45 @@ Note: this feature has not been implemented yet, it is only an idea."
:type 'boolean
:group 'proof-general)
-(defcustom proof-auto-retract-other-buffers
+(defcustom proof-query-file-save-when-activating-scripting
+ t
+"*If non-nil, query user to save files when activating scripting.
+
+Often, activating scripting or executing the first scripting command
+of a proof script will cause the proof assistant to load some files
+needed by the current proof script. If this option is non-nil, the
+user will be prompted to save some unsaved buffers in case any of
+them corresponds to a file which may be loaded by the proof assistant.
+
+You can turn this option off if the save queries are annoying, but
+be warned that with some proof assistants this may risk processing
+files which are out of date with respect to the lodead buffers!"
+ :type 'boolean
+ :group 'proof-general)
+
+(defcustom proof-auto-action-when-deactivating-scripting
nil
- "*If non-nil, retract automatically when switching scripting buffer.
-With this option active, when scripting is activated in a new
-buffer with an old one partly processed, the old buffer will be
-retracted automatically.
+ "*If 'retract or 'process, do that when deactivating scripting.
-With this option inactive, the user is questioned instead.
+With this option set to 'retract or 'process, when scripting
+is turned off in a partly processed buffer, the buffer will be
+retracted or processed automatically.
-Proof General insists that only one script buffer can be partly
-processed: all others have to be completely processed or
-completely unprocessed. This is to make sure that handling of
-multiple files makes sense withing the proof assistant."
- :type 'boolean
- :group 'proof-general)
+With this option unset (nil), the user is questioned instead.
+Proof General insists that only one script buffer can be partly
+processed: all others have to be completely processed or completely
+unprocessed. This is to make sure that handling of multiple files
+makes sense within the proof assistant.
+
+NB: A buffer is completely processed when all non-whitespace is
+locked (coloured blue); a buffer is completely unprocessed when there
+is no locked region."
+ :type '(choice
+ (const :tag "No automatic action; query user" nil)
+ (const :tag "Automatically retract" retract)
+ (const :tag "Automatically process" process))
+ :group 'proof-general)
(defcustom proof-script-indent nil
;; Particular proof assistants can enable this if they feel
@@ -214,6 +237,20 @@ selected frame will be automatically deleted."
:type 'boolean
:group 'proof-general)
+(defcustom proof-tidy-response
+ nil
+ "*Non-nil indicates that the response buffer should be cleared often.
+The response buffer can be set either to accumulate output, or to
+clear frequently.
+
+With this variable non-nil, the response buffer is kept tidy by
+clearing it often, typically between successive commands (just like the
+goals buffer).
+
+Otherwise the response buffer will accumulate output from the prover."
+ :type 'boolean
+ :group 'proof-general)
+
;;
@@ -493,7 +530,12 @@ If a function, it should return the command string to insert."
:type '(choice string function)
:group 'prover-config)
-
+(defcustom proof-show-debug-messages t
+ "Whether to display debugging messages in the response buffer.
+If non-nil, debugging messages are displayed in the response giving
+information about what Proof General is doing."
+ :type 'boolean
+ :group 'prover-config)
@@ -938,7 +980,7 @@ The default value is \"\\n\" to match up to the end of the line."
If REGEXP matches output, then the function FUNCTION is invoked on the
output string chunk. It must return a script file name (with complete
-path) the system is currently processing. In practice, FUNCTION is
+path) the system has successfully processed. In practice, FUNCTION is
likely to inspect the match data. If it returns the empty string,
the file name of the scripting buffer is used instead. If it
returns nil, no action is taken.
@@ -952,10 +994,11 @@ name is added to the front of `proof-included-files-list'."
;; FIXME da: why not amalgamate the next two into a single
-;; variable as above?
+;; variable as above? Maybe because removing one
+;;
(defcustom proof-shell-retract-files-regexp nil
- "A REGEXP to match that the prover has retracted across file boundaries.
+ "Matches a message that the prover has retracted a file.
At this stage, Proof General's view of the processed files is out of
date and needs to be updated with the help of the function