lib/Tools/emacs
author wenzelm
Thu, 27 Feb 2014 12:37:43 +0100
changeset 55781 b3a4207fb9a6
parent 34275 8f105e6a2b88
child 57414 fe1be2844fda
permissions -rwxr-xr-x
proper update of text perspective for nodes with changed blobs, which is important to refresh the corresponding command perspective (otherwise it might refer to invalid thy_load commands and cause full execution of the node by the prover);

#!/usr/bin/env bash
#
# Author: Makarius
#
# DESCRIPTION: Proof General / Emacs interface wrapper


## diagnostics

function fail()
{
  echo "$1" >&2
  exit 2
}


## main

[ -z "$PROOFGENERAL_HOME" ] && fail "Missing Proof General installation (PROOFGENERAL_HOME)"

INTERFACE="$PROOFGENERAL_HOME/isar/interface"
[ ! -x "$INTERFACE" ] && fail "Bad interface script: \"$INTERFACE\""

#legacy settings
export ISABELLE="$ISABELLE_PROCESS"
export ISATOOL="$ISABELLE_TOOL"

exec "$INTERFACE" "$@"