# HG changeset patch # User wenzelm # Date 1451590828 -3600 # Node ID 446fcbadc6bf615e2ff082150e33833a279fe49c # Parent 92a2372a226b647f6a6bc2342e6121cc9dd8f205 documentation for "isabelle jedit_client"; diff -r 92a2372a226b -r 446fcbadc6bf NEWS --- a/NEWS Thu Dec 31 19:53:19 2015 +0100 +++ b/NEWS Thu Dec 31 20:40:28 2015 +0100 @@ -87,7 +87,7 @@ * Action "isabelle-reset" now uses keyboard shortcut C+e BACK_SPACE, instead of former C+e LEFT. -* New command-line tool "isabelle jedit_client" allows to connect to +* New command-line tool "isabelle jedit_client" allows to connect to an already running Isabelle/jEdit process. This achieves the effect of single-instance applications seen on common GUI desktops. diff -r 92a2372a226b -r 446fcbadc6bf src/Doc/JEdit/JEdit.thy --- a/src/Doc/JEdit/JEdit.thy Thu Dec 31 19:53:19 2015 +0100 +++ b/src/Doc/JEdit/JEdit.thy Thu Dec 31 20:40:28 2015 +0100 @@ -218,7 +218,10 @@ platform-specific executable wrappers for Linux, Windows, Mac OS X. Nonetheless it is occasionally useful to invoke the Prover IDE on the command-line, with some extra options and environment settings as explained - below. The command-line usage of @{tool_def jedit} is as follows: + below. + + \<^medskip> + The command-line usage of @{tool_def jedit} is as follows: @{verbatim [display] \Usage: isabelle jedit [OPTIONS] [FILES ...] @@ -261,7 +264,34 @@ Isabelle/jEdit. This is only relevant for building from sources, which also requires an auxiliary \<^verbatim>\jedit_build\ component from @{url "http://isabelle.in.tum.de/components"}. The official Isabelle release - already includes a pre-built version of Isabelle/jEdit. \ + already includes a pre-built version of Isabelle/jEdit. + + \<^medskip> + It is also possible to connect to an already running Isabelle/jEdit process + via @{tool_def jedit_client}: + @{verbatim [display] +\Usage: isabelle jedit_client [OPTIONS] [FILES ...] + + Options are: + -c only check presence of server + -n only report server name + -s NAME server name (default Isabelle) + + Connect to already running Isabelle/jEdit instance and open FILES\} + + The \<^verbatim>\-c\ option merely checks the presence of the server, producing a + process return code. + + The \<^verbatim>\-n\ option reports the server name, and the \<^verbatim>\-s\ option provides a + different server name. The default server name is the official distribution + name (e.g.\ \<^verbatim>\Isabelle2016\). Thus @{tool jedit_client} can connect to the + main Isabelle application without further options. + + The regular jEdit command line option \<^verbatim>\-server\ allows to provide a + different name, e.g.\ \<^verbatim>\isabelle jedit -j-server=\\name\. To connect to such + an alternative server process with @{tool jedit_client} requires a + corresponding option \<^verbatim>\-s\~\name\. +\ chapter \Augmented jEdit functionality\