aboutsummaryrefslogtreecommitdiff
path: root/isar
diff options
context:
space:
mode:
authorDavid Aspinall2009-08-18 10:30:59 +0000
committerDavid Aspinall2009-08-18 10:30:59 +0000
commitdcb6d7eee01dfca57e3aca31f523ab16e5b0c126 (patch)
treebadb43ec9495514f8d996e7990537ed1c14427d3 /isar
parentee27105fbdb260d80fbb1cef1c275a6fa13d3df5 (diff)
Hints about setting position in command
Diffstat (limited to 'isar')
-rw-r--r--isar/isar.el9
1 files changed, 8 insertions, 1 deletions
diff --git a/isar/isar.el b/isar/isar.el
index b9381e2c..b7fe8e7a 100644
--- a/isar/isar.el
+++ b/isar/isar.el
@@ -541,10 +541,17 @@ Checks the width in the `proof-goals-buffer'"
(regexp-opt (cons "ProofGeneral.process_pgip"
isar-undo-commands)))
+(defun isar-positions-of (file line)
+ (concat ;; TODO: find out Isabelle names for position parameters
+ (if file (format "file=\"" file "\"")) ;; FIXME: wrong
+ (if line (format "line=\"" line "\"")))) ;; works
+
(defun isar-command-wrapping (string)
(if (not (proof-string-match isar-nonwrap-regexp string))
(concat
- "Isabelle.command \""
+ "Isabelle.command "
+ ; isar-positions-of <proof-script-current-file> <line-number-from-span>
+ "\""
(proof-replace-regexp-in-string
"[\000-\037\"\\\\]"
(lambda (str) (format "\\\\%03d" (string-to-char str)))