aboutsummaryrefslogtreecommitdiffhomepage
path: root/coq/coq-compile-common.el
Commit message (Collapse)AuthorAge
* 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.
* Ignore ephemeral buffers, and buffers not pointed at files.Gravatar Calvin Beck2018-11-01
| | | | | | This helps with, for example, org-src-fontification buffers. https://lists.gnu.org/archive/html/emacs-orgmode/2016-03/msg00354.html
* 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
|
* Change (eval-when (compile) ...) to (eval-when-compile ...)Gravatar Clément Pit--Claudel2017-05-05
| | | | This fixes a bunch of compilation warnings
* Remove uses of defpacustom in coq-compile-commonGravatar Clément Pit--Claudel2017-03-08
| | | | | | This file is `require'-d from other places, at compile time. This doesn't work nicely with compilation by package.el (PG complains and says "defpacustom: Proof assistant setting compile-before-require re-defined!")
* Remove compile-time calls to proof-ready-for-assistantGravatar Clément Pit--Claudel2017-03-08
| | | | | Compilation used to run in a separate Emacs process for each file, but that's not what happens when installing PG with package.el.
* Fix incorrect uses of defvarGravatar Clément Pit--Claudel2017-03-08
| | | | | | | It didn't really matter that these variables were defined and set to nil during compilation, since we ran compilation in a clean Emacs in --batch mode; it does matter now, however, since package.el compiles PG in the user's currently running Emacs instance.
* save settings not defined with defpacustom (fixes #142)Gravatar Hendrik Tews2017-01-19
| | | | | | | - infrastructure for saving/resetting customizations not defined with defpacustom - improve Coq -> Auto Compilation menu - polish documentation and manual
* 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.
* die gracefully when visiting files in nonexisting directoriesGravatar Hendrik Tews2016-12-15
|
* documentation and CHANGES for coq-compile-keep-goingGravatar Hendrik Tews2016-12-08
|
* 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.
* style change: use when for if coq-debug-auto-compilationGravatar Hendrik Tews2016-11-30
|
* use coq-- for internal compilation variablesGravatar Hendrik Tews2016-11-30
|
* next-error support for vio2vo error messagesGravatar Hendrik Tews2016-11-30
|
* update documentationGravatar Hendrik Tews2016-11-29
|
* delay vio2vo compilationGravatar Hendrik Tews2016-11-29
| | | | | ... to make it less likely people run into the library inconsistency issue with vio2vo
* 8.4 compatibility for quick supportGravatar Hendrik Tews2016-11-29
| | | | | | | 8.4 compatibility is done by ignoring all quick settings for `coq-compile-quick' via a :set function. This does only work if this variable is only changed via the customization system and not directly via setq.
* support vio2vo background processingGravatar Hendrik Tews2016-11-29
| | | | | | | | | | | Selecting quick-and-vio2vo will start vio2vo conversion in the background on a subset of the available cores, see `coq-max-background-vio2vo-percentage'. The vio2vo conversion starts after all compilation for the require command has been finished and the require has been processed. Because of a certain incompatibility between .vio and .vo files (see coq issue 5223) slowly single stepping through require commands does not work (but processing them as a batch does).
* improve compilation when both .vio and .vo are up-to-dateGravatar Hendrik Tews2016-11-22
| | | | | | | | | | | | In this case Coq loads the younger file and emits a warning if the .vio file is the younger one. With this patch, the dependency analysis for parallel compilation continues with the older value. The interesting case to look at is when b.v depends on a.v and both are compiled with -quick and later a parallel vio2vo produces a.vo and b.vo such that b.vo is older (because, eg. b.v is shorter than a.v). Without this patch a second auto compilation would recompile b.v, because the dependency a.vo is younger.
* fix parallel compilation for the unlikely case of identical time stampsGravatar Hendrik Tews2016-11-17
| | | | | | | | | | | | Since version 24.3 Emacs supports pico second precision in time stamps and Emacs on ext4 seems to have a time precision of 5 milliseconds for file time stamps. It is therefor quite unlikely that a source and an object file have the same time stamp. This patch fixes parallel compilation for these corner cases and adds a few hundred test cases to test all combinations where some files have identical time stamps. On Emacs older than 24.3 or on file systems with a low precision (eg. ext3) this patch can cause additional compilations.
* first version for quick compilationGravatar Hendrik Tews2016-11-16
| | | | | | Select "Quick compilation mode" in the Coq menu. See also documentation of coq-compile-quick, the and-vio2vo stuff is not yet there.
* ensure coq-compile-response-buffer is not in a dedicated windowGravatar Hendrik Tews2016-10-28
| | | | This makes #54 a bit less critical.
* fix coq-require-command-regexp (fixes #75)Gravatar Hendrik Tews2016-10-28
|
* Should fix #49 and #55 (compilation of From .. Require).Gravatar Pierre Courtieu2016-03-08
|
* Refactoring. New file coq-system.el.Gravatar Pierre Courtieu2015-12-14
|
* Small refactoring of coqxxx args detection.Gravatar Pierre Courtieu2015-12-14
| | | | | | Need some more refactoring actually: Some code from coq-compile-common became necessary to coq/pg globally. We shoudl refelct this by moving these parts somewhere else.
* Fixing coq-prog-arg for auto compilation.Gravatar Pierre Courtieu2015-12-14
|
* compilation fix (coq-pre-v85).Gravatar Pierre Courtieu2015-11-13
|
* coq-pre-v85 option to fix coqdep invocation in [compile before require].Gravatar Pierre Courtieu2015-11-02
| | | | | | Command line options changed heavily betwenn 8.4 and 8.5. We need an option to force V8.4 in some cases, mainly to infer the right coqtop/coqdep invocations.
* Coqtop always restarted when switching script buffer.Gravatar Pierre Courtieu2015-03-03
| | | | | | This comes from Hendrik's compile mode and is actually needed even when this mode is off. When switching scripting buffer, restart the coq shell process, so that it applies local coqtop options.
* Fixed read-only error for compile before require option.Gravatar Pierre Courtieu2015-02-11
| | | | | | the emacs bug seems solved: the error with read-only always occur whatever locale is used. So I toggle read-only off in coq-compile-response.
* Fix coq project parsing and interpreting for coq v8.5.Gravatar Pierre Courtieu2015-01-27
|
* fixed indentation (lexing of 'with') + made local coq-load-path.Gravatar Pierre Courtieu2014-12-30
|
* - fix asserting when parallel background compilation is in progressGravatar Hendrik Tews2013-01-03
| | | | - fix aborting background compilation on error
* all-cpus option for coq-max-background-compilation-jobsGravatar Hendrik Tews2012-11-14
|
* update documentationGravatar Hendrik Tews2012-11-14
|
* - 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
* move ancestor locking back into specific partGravatar Hendrik Tews2012-11-06
|
* move ancestor locking/unlocking to coq-compile-commonGravatar Hendrik Tews2012-11-05
|
* move buffer saving to coq-compile-commonGravatar Hendrik Tews2012-11-05
|
* make coq-include-options independent of current bufferGravatar Hendrik Tews2012-11-03
|
* move another 2 functions into coq-compile-commonGravatar Hendrik Tews2012-11-03
|
* move function for coq-compile-response-buffer to coq-compile-common.elGravatar Hendrik Tews2012-11-01
|
* move some more material into coq-compile-commonGravatar Hendrik Tews2012-10-30
|
* move general part of compilation into coq-compile-common.elGravatar Hendrik Tews2012-10-30