From 6f8bee51a431528f6c3d8b508538d30ea3b3023a Mon Sep 17 00:00:00 2001 From: David Aspinall Date: Sat, 26 Sep 2009 13:00:03 +0000 Subject: Add pr to print state in case of linear_undo. See Trac #292. Still not ideal: when there is no proof state, we'd prefer that an empty goal screen is displayed. --- isar/isar-syntax.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'isar/isar-syntax.el') diff --git a/isar/isar-syntax.el b/isar/isar-syntax.el index 7bd45aa9..1f7d3ea6 100644 --- a/isar/isar-syntax.el +++ b/isar/isar-syntax.el @@ -1,5 +1,5 @@ ;; isar-syntax.el Syntax expressions for Isabelle/Isar -;; Copyright (C) 1994-2004 LFCS Edinburgh. +;; Copyright (C) 1994-2004, 2009 LFCS Edinburgh. ;; License: GPL (GNU GENERAL PUBLIC LICENSE) ;; ;; Authors: David Aspinall @@ -479,7 +479,8 @@ matches contents of quotes for quoted identifiers.") (defun isar-undos (linearp i) (if (> i 0) (concat (if linearp "linear_undo " "undos_proof ") - (int-to-string i) ";") + (int-to-string i) ";" + (if linearp " pr; ")) ; See Trac #292 nil)) ; was proof-no-command (defun isar-cannot-undo (cmd) -- cgit v1.2.3