aboutsummaryrefslogtreecommitdiffhomepage
path: root/generic/proof-shell.el
Commit message (Collapse)AuthorAge
* Reduce the impact of proof-site, in case PG is not usedGravatar Stefan Monnier2018-12-25
| | | | | | | | | | | | | | | | * generic/proof-autoloads.el: Remove `require`s; not needed. * generic/proof-site.el: Don't require `pg-vars`. (proof-ready-for-assistant): Move to proof-script.el. * generic/proof-menu.el (proof-assistant-format): Make dynamically scoped var explicit (preparation for lexical-binding). * generic/proof-script.el: Require `pg-vars`. (proof-ready-for-assistant): Move from proof-site.el. * generic/proof-syntax.el (proof-replace-regexp-in-string): * generic/proof-shell.el (proof-shell-live-buffer): Don't mark it as inlinable: it's not performance sensitive.
* Fixes the fix of #407. Is this temporary.Gravatar Pierre Courtieu2018-12-14
| | | | | | | | | | | | | | This fix is not completely satisfying for the following reason: 1- I had to add a new hook in generic code. But I don't see how we could avoid this: the computation of options must happen AFTER the proof-prog-name is asked to the user, because this computation depends on the version of coq. 2- We should fix the synchronization between coq-prog-name and proof-prog-name. Either remove coq-prog-name and use only proof-prog-name, or have the generic coq always point to some (proof-ass-sym prog-name).
* Use `cl-lib` instead of `cl` everywhereGravatar Stefan Monnier2018-12-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use lexical-binding in a few files where it was easy. Don't require `proof-compat` when it's not used. * coq/coq-db.el: Use lexical-binding. * coq/coq-system.el: Use lexical-binding. (coq--extract-prog-args): Use concatenated-args rather than recomputing it. * coq/coq.el: Require `span` to silence some warnings. * generic/pg-user.el: Use lexical-binding. (complete, add-completion, completion-min-length): Silence warnings. * generic/pg-xml.el: Use lexical-binding. (pg-xml-string-of): Prefer mapconcat to reduce+concat. * generic/proof-depends.el: Use lexical-binding. (proof-dep-split-deps): Use `push`. * generic/proof-shell.el: Require `span` to silence some warnings. (proof-shell-invisible-command): Don't use lexical-let just to build a wasteful η-redex! * lib/holes.el: Use lexical-binding. Remove redundant :group args. * lib/span.el: Use lexical-binding. (span-read-only-hook): Use user-error. (span-raise): Remove, unused.
* Cleanup patch; Moving defvar to toplevelGravatar Stefan Monnier2018-12-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move `defvar`s used to silence warnings outside of eval-when-compile. Make sure they don't actually give a value to the var. * pg-init.el: Simplify. Use (if t ...) to avoid running `require` at compile-time. Don't add subdirs to load-path here since this code is never used. (pg-init--script-full-path, pg-init--pg-root): Inline their definition into their sole user. * generic/proof-utils.el (proof-resize-window-tofit): Inline definitions of window-leftmost-p and window-rightmost-p previously in proof-compat.el. * lib/proof-compat.el (proof-running-on-win32): Remove, not used. (mac-key-mode): Remove, there's no carbon-emacs-package-version in Emacs≥24.3. (pg-custom-undeclare-variable): Use dolist. (save-selected-frame): Remove, save-selected-window also saves&restores the selected frame at the same time. Update all users (which already used save-selected-window around it). (window-leftmost-p, window-rightmost-p, window-bottom-p) (find-coding-system): Remove, unused. * hol-light/hol-light.el (caml-font-lock-keywords): Don't try to defvar it to a dummy value and... (hol-light): ...check its existence before using it instead. * coq/coq.el (coq-may-use-prettify): Simplify initialization.
* Fix most doc issues raised by (checkdoc)Gravatar Erik Martin-Dorel2018-08-23
|
* Update copyright messages and improve the header of elisp files.Gravatar Erik Martin-Dorel2018-02-21
|
* Fixing bug #187 by removing trailing spaces from prog name.Gravatar Pierre Courtieu2017-06-06
|
* Change (eval-when (compile) ...) to (eval-when-compile ...)Gravatar Clément Pit--Claudel2017-05-05
| | | | This fixes a bunch of compilation warnings
* Merge pull request #157 from ProofGeneral/elpaGravatar Clément Pit-Claudel2017-05-05
|\ | | | | [WIP] ELPA/MELPA support
* | Fixing #167.Gravatar Pierre Courtieu2017-03-13
| |
| * Remove unnecessary calls to 'eval-and-compile'Gravatar Clément Pit--Claudel2017-03-08
|/
* Removing spurious debug messages.Gravatar Pierre Courtieu2017-02-24
|
* Fixing #154.Gravatar Pierre Courtieu2017-02-23
|
* split emergency-cleanup to handle interrupts properly (fixes #143)Gravatar Hendrik Tews2017-01-18
| | | | | | Split coq-par-emergency-cleanup into two functions, one for reacting on user interrupts and one for cleaning up after compilation errors.
* fix generic interrupt procedure to interrupt parallel background compilationGravatar Hendrik Tews2016-12-14
|
* Merge pull request #129 from hendriktews/keep-goingGravatar hendriktews2016-12-14
|\ | | | | Keep going
* \ Merge pull request #132 from Matafou/masterGravatar Pierre Courtieu2016-12-14
|\ \ | | | | | | Remove default absolute name from coq-prog-name (Fixes #76), but keep displaying…
| * | remove default absolute name from coq-prog-name, but keep dipsplaying it ↵Gravatar Pierre Courtieu2016-12-12
| | | | | | | | | | | | when asking for it.
| | * option coq-compile-keep-going for parallel compilationGravatar Hendrik Tews2016-12-08
| |/ |/| | | | | | | | | With this option set, compilation continues after the first error to compile as much as possible and to potentially report more than one error.
* | fix 2 compilation warnings (fixes #33)Gravatar Hendrik Tews2016-11-30
|/
* Reset proof-script-buffer to nil if -ready-prover failsGravatar Clément Pit--Claudel2016-06-10
| | | | Fixes #65
* Fix spurious scrolling of *goals* and *response* buffersGravatar Clément Pit--Claudel2015-12-31
| | | | | | See https://github.com/cpitclaudel/company-coq/issues/8 and https://github.com/cpitclaudel/company-coq/issues/32 for some background info.
* Trying to not delete frames too eagerly when laying out.Gravatar Pierre Courtieu2015-10-09
|
* Fixes #503.Gravatar Pierre Courtieu2015-03-09
| | | | | Added a "stop silent" if needed in proof-add-queue. This allows to recover verbosity when an error left the prover in silent mode.
* cleaned previous commits (generic variable to disable error coloring).Gravatar Pierre Courtieu2015-02-04
|
* * coq-smie.el (coq-smie-.-deambiguate): Proofs don't start with a definition.Gravatar Stefan Monnier2014-06-04
| | | | | (coq-smie-backward-token): Don't burp at EOB. (coq-smie-rules): Indent top-level ":" like ":=".
* - support bullets and braces in ProoftreeGravatar Hendrik Tews2013-01-15
| | | | - prooftree protocol change to version 3
* fix parallel overlapping calls of proof-shell-filterGravatar Hendrik Tews2013-01-10
|
* - fix asserting when parallel background compilation is in progressGravatar Hendrik Tews2013-01-03
| | | | - fix aborting background compilation on error
* - first version of parallel asynchronous compilation for coq inGravatar Hendrik Tews2012-11-13
| | | | | | | | | | | | | | coq-par-compile.el (must be activated via coq-compile-parallel-in-background) - items in the queue region are not necessarily in proof-action-list any more! Require commands and the following items are stored elsewhere until the compilation finishes. Variable proof-second-action-list-active notifies the generic machinery if queue items are stored elsewhere. In this case, Proof General must neither release the proof shell lock nor delete the queue span when proof-action-list is empty. - to kill background processes as early as possible, the new hook proof-shell-signal-interrupt-hook is used
* Doc for pg-finish-tracing-displayGravatar David Aspinall2012-11-09
|
* Add option proof-layout-windows-on-visit-file, addressing Trac #444Gravatar David Aspinall2012-08-16
|
* kill windows showing response and goals buffers on proof-shell-exitGravatar Hendrik Tews2012-05-24
|
* proof-shell-start: initialise associated buffers before shell mode, so in ↵Gravatar David Aspinall2012-02-08
| | | | right modes for output from init commands
* TypoGravatar David Aspinall2012-01-19
|
* Tweak message and display model, in particular, make sure that when aGravatar David Aspinall2012-01-10
| | | | | | | | | | | | | | | | response appears above a goals output, the goals output is displayed second, so it is the one that remains visible to the user in the default 2-pane mode. This works with output like this in HOL Light: Warning: Free variables in goal: A, B val it : goalstack = 1 subgoal (1 total) ... and similar cases in Isabelle and Coq. The fix involves some ugly messing with the flags for clearing the response buffer (see `pg-response-maybe-erase'). This could surely be streamlined.
* Improve configuration for HOL Light. Allow goals display to be prefixed by ↵Gravatar David Aspinall2012-01-09
| | | | ignored junk (val it : goalstack =).
* merge ProofTreeBranch into main trunk:Gravatar Hendrik Tews2012-01-03
| | | | | | | | | | | | | | | | - add support for proof-tree displays (currently Coq only) - new file generic/proof-tree.el contains generic code - Coq specific code has been added to coq/coq.el Changes to existing Proof General functions: - proof-shell-exec-loop and proof-shell-filter-manage-output call proof-tree display functions, when the proof-tree display is on - proof-shell-exec-loop returns t if proof-action-list is empty _or_ contains only items for updating the proof-tree - proof-shell-should-be-silent returns nil when the proof-tree display is on - coq-last-prompt-info, coq-last-prompt-info-safe return as additional 4th element the name of the current proof
* - protect proof-shell-handle-delayed-output against the case whereGravatar Hendrik Tews2011-12-07
| | | | | proof-shell-end-goals-regexp is defined but does not match - add coq setting for hiding additional subgoals
* use the start of proof-shell-end-goals-regexp, as documentedGravatar Hendrik Tews2011-12-06
|
* Quick stab at support for switching to proof shell when interactive support ↵Gravatar David Aspinall2011-11-15
| | | | expected, see Trac #430
* Add fix and regression test for Trac #138Gravatar David Aspinall2011-10-17
|
* To fix pgshell mode, restore proof-shell-insert support for a single string ↵Gravatar David Aspinall2011-10-13
| | | | argument and allow nil setting for proof-shell-start-goals-regexp.
* fix #421 with solution 1Gravatar Hendrik Tews2011-09-14
|
* Fix typoGravatar David Aspinall2011-09-14
|
* Remove contentious call to set-process-query-on-exit-flag, ref Trac#424Gravatar David Aspinall2011-09-14
|
* Fix proof-shell-exit optional argument with (interactive) thanks toGravatar Pierre Courtieu2011-09-11
| | | | Erik Martin-Dorel.
* * small doc fixGravatar Hendrik Tews2011-04-19
|
* * fix overwriting setq coq-prog-name before loading Proof GeneralGravatar Hendrik Tews2011-04-15
| | | | * more complete callback listing in proof-action list doc
* - change to proof-restart-buffers for unlocking ancestorsGravatar Hendrik Tews2011-03-14
| | | | - improve internal docs for unlocking