| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
|
|
|
| |
This fixes a bunch of compilation warnings
|
|\
| |
| | |
[WIP] ELPA/MELPA support
|
| | |
|
|/ |
|
| |
|
| |
|
|
|
|
|
|
| |
Split coq-par-emergency-cleanup into two functions, one for
reacting on user interrupts and one for cleaning up after
compilation errors.
|
| |
|
|\
| |
| | |
Keep going
|
|\ \
| | |
| | | |
Remove default absolute name from coq-prog-name (Fixes #76), but keep displaying…
|
| | |
| | |
| | |
| | | |
when asking for it.
|
| |/
|/|
| |
| |
| |
| | |
With this option set, compilation continues after the first error
to compile as much as possible and to potentially report more
than one error.
|
|/ |
|
|
|
|
| |
Fixes #65
|
|
|
|
|
|
| |
See https://github.com/cpitclaudel/company-coq/issues/8 and
https://github.com/cpitclaudel/company-coq/issues/32 for some background
info.
|
| |
|
|
|
|
|
| |
Added a "stop silent" if needed in proof-add-queue. This allows to
recover verbosity when an error left the prover in silent mode.
|
| |
|
|
|
|
|
| |
(coq-smie-backward-token): Don't burp at EOB.
(coq-smie-rules): Indent top-level ":" like ":=".
|
|
|
|
| |
- prooftree protocol change to version 3
|
| |
|
|
|
|
| |
- fix aborting background compilation on error
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
| |
|
|
|
|
| |
right modes for output from init commands
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
ignored junk (val it : goalstack =).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
| |
proof-shell-end-goals-regexp is defined but does not match
- add coq setting for hiding additional subgoals
|
| |
|
|
|
|
| |
expected, see Trac #430
|
| |
|
|
|
|
| |
argument and allow nil setting for proof-shell-start-goals-regexp.
|
| |
|
| |
|
| |
|
|
|
|
| |
Erik Martin-Dorel.
|
| |
|
|
|
|
| |
* more complete callback listing in proof-action list doc
|
|
|
|
| |
- improve internal docs for unlocking
|