aboutsummaryrefslogtreecommitdiff
path: root/generic/proof-script.el
AgeCommit message (Collapse)Author
2018-12-13Use `cl-lib` instead of `cl` everywhereStefan Monnier
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.
2018-12-12Cleanup patch; Moving defvar to toplevelStefan Monnier
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.
2018-08-25Merge pull request #169 from ProofGeneral/help-span-extendedErik Martin-Dorel
Fix #158 by extending helpspan
2018-08-23Fix most doc issues raised by (checkdoc)Erik Martin-Dorel
2018-02-21Update copyright messages and improve the header of elisp files.Erik Martin-Dorel
2017-08-15Fix pg-{show,hide}-all-proofs and Move them into pg-user.el.Erik Martin-Dorel
This commit address ProofGeneral/PG#193.
2017-03-09extend helpspan, issue #158Paul Steckler
2017-03-03Remove default key-binding for proof-electric-terminator-toggle.Erik Martin-Dorel
Close ProofGeneral/PG#160
2016-09-25proof-retract-before-change: Fix #41 by saving/restoring the match data.Erik Martin-Dorel
2016-06-10Reset proof-script-buffer to nil if -ready-prover failsClément Pit--Claudel
Fixes #65
2016-01-06Fixing #25.Pierre Courtieu
proof-script-buffer was not set before calling proof-shell-ready-prover.
2015-10-13proof-retract-command-hook added + more auto adjust width in coq mode.Pierre Courtieu
2015-10-12proof-assert-command-hook added + Auto adjust width in coq mode.Pierre Courtieu
This hook was missing, it allows to send complete commands before the (set of) command(s) sent by the user. It shall be used when proof-shell-insert-hook cannot be used (because of multiple prompts appearing).
2014-06-06Don't mess with overlay priorities.Stefan Monnier
2012-08-16Add option proof-layout-windows-on-visit-file, addressing Trac #444David Aspinall
2012-08-14fix 443 by enforcing that the prover is not busy in proof-retract-until-pointHendrik Tews
2012-06-29* generic/pg-user.el (which-func-modes): Fix compiler declaration.Stefan Monnier
* generic/proof-site.el (assistants): Fix regexp.
2012-06-09Made a small change in generic code about the setting ofPierre Courtieu
comment-start-skip: if it is already set then proof-script should not change it. Ultimately if David approves we should moreover fix the setting itself which is bugged. coq-mode now sets this variable by itself.
2011-10-13Patch from Tom Prince to fix Emacs 24 byte compilation (replace ↵David Aspinall
interactive-p with called-interactively-p)
2011-06-09Add autoload.David Aspinall
2011-06-08- fix for #408: Only use the buffer name inHendrik Tews
coq-compile-response-buffer - fix typo elsewhere
2011-05-30Trac#403: wait for retraction to complete before returning, toDavid Aspinall
avoid hitting read only error in calling command.
2011-05-27ensure (integerp proof-segment-up-to-cache-end), fixes Trac #404David Aspinall
2011-05-26proof-retract-before-change: fix Trac #403 (at least partially) byDavid Aspinall
removing restriction during automatic retraction so proof-retract-until-point behaves correctly.
2011-05-16Patch for Trac#400.David Aspinall
2011-05-12Tweak for `proof-segment-up-to-using-cache': better handling ofDavid Aspinall
proof-last-edited-low-watermark.
2011-05-12Attempted fix for `proof-segment-up-to-using-cache', reDavid Aspinall
http://proofgeneral.inf.ed.ac.uk/trac/ticket/395
2011-05-05- flushed proof-done-advancing-require-function andHendrik Tews
proof-shell-require-command-regexp - TAGS updated to really flush them
2011-04-26Fix for Trac #397. Needs some exercise.David Aspinall
2011-04-13Add proof-output-tooltips option to turn off output highlighting for people ↵David Aspinall
who read or edit by waving mouse at text
2011-03-14- change to proof-restart-buffers for unlocking ancestorsHendrik Tews
- improve internal docs for unlocking
2011-01-31Support mouse action on modeline indicator for scripting modeDavid Aspinall
2011-01-25proof-deactivate-scripting: cleanup this function to make moreDavid Aspinall
intelligible, also to properly support behaviour needed for `proof-no-fully-processed-buffer'.
2011-01-24- change 'span-delete-action in 'span-delete-actions, which isHendrik Tews
now a list of functions to be run when the span is deleted. Use span-add-delete-action to add a delete action.
2011-01-23proof-protected-process-or-retract: don't give failure error if nothing to doDavid Aspinall
Addresses Trac #383
2011-01-19pg-show-all-portions: protect against empty hash tablesDavid Aspinall
2011-01-14- move proof-no-fully-processed-buffer to generic/proof-configHendrik Tews
- add documentation for it - add a test case demonstrating it in coq/ex/test-cases/retract-completely-asserted
2011-01-12Add preliminary support for multiple files for coq.Hendrik Tews
The following points are implemented already: - recompile either via an external command (make) or let ProofGeneral handle everything internally - complete dependency tracking and recompilation for coq files in internal mode - support for extending the LoadPath: does almost work, even if specified file-locally - move back to clean state if recompilation fails There are the following known problems: - coq-load-path extensions are not retracted - fails on partially qualified library names
2010-10-11proof-segment-up-to-using-cache: improve attemptDavid Aspinall
2010-10-10Fix debug message formatDavid Aspinall
2010-10-10pg-span-name: improve docstring.David Aspinall
proof-complete-buffer-atomic: simplify. Add debug message for parser cache.
2010-10-10Fix to last patch.David Aspinall
2010-10-10proof-assert-electric-terminator: prevent adding terminator if point is ↵David Aspinall
after it as well as before, as in PG 3.7. Fixes #371.
2010-10-01Move utility span-make-modifying-removing-span to span.elDavid Aspinall
2010-10-01proof-shell-handle-error-or-interrupt-hook: only run if ordinary scripting ↵David Aspinall
input (no non-nil flags in queue)
2010-10-01Adjust handling of insertion of newlines before next command.David Aspinall
2010-09-29DocDavid Aspinall
2010-09-08mapcar -> mapc to fix compile errorDavid Aspinall
2010-09-08Remove debug messageDavid Aspinall
2010-09-08Improve/fix invisibility management, using buffer-invisibility-spec. Adjust ↵David Aspinall
span regions.