diff options
author | 1999-10-22 09:27:19 +0000 | |
---|---|---|
committer | 1999-10-22 09:27:19 +0000 | |
commit | 31a517931c72ac13e502fd6c972aa4d434a9ea28 (patch) | |
tree | fb45f94ecf6a14735bbcd3ff08e52be44232c07d /isar/isar.el | |
parent | 0ff32e8f48ac88d991df4c25e7ce12c0c0119565 (diff) |
isar-remove-file: compare basenames only;
Diffstat (limited to 'isar/isar.el')
-rw-r--r-- | isar/isar.el | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/isar/isar.el b/isar/isar.el index 5a652a7d..ab141824 100644 --- a/isar/isar.el +++ b/isar/isar.el @@ -296,12 +296,20 @@ ;;; Theory loader operations ;;; +(defun isar-remove-file (name files) + (if (not files) nil + (let ((file (car files)) (rest (cdr files))) + (if (string= (file-name-nondirectory file) name) + (isar-remove-file name rest) + (cons file (isar-remove-file name rest)))))) + (defun isar-shell-compute-new-files-list (str) "Compute the new list of files read by the proof assistant. This is called when Proof General spots output matching proof-shell-retract-files-regexp." - (remove (file-truename (match-string 1 str)) - proof-included-files-list)) + (isar-remove-file + (file-name-nondirectory (file-truename (match-string 1 str))) + proof-included-files-list)) (defun isar-activate-scripting () "Make sure the Isabelle/Isar toplevel is in a sane state.") |