aboutsummaryrefslogtreecommitdiffhomepage
path: root/generic/pg-user.el
Commit message (Collapse)AuthorAge
* * pg-init.el: Add subdirs during compilation (bug #413)Gravatar Stefan Monnier2019-01-12
| | | | | * generic/pg-user.el (proof-add-completions): `proof-assistant` can also be the empty string :-(
* Fix remaining uses of CL; Make files more declarativeGravatar Stefan Monnier2018-12-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Emacs occasionally loads Elisp files just to get more info (e.g. for C-h f), so loading a file should "no effect". Fix the most obvious such effects: the splash screen and the autotests by moving those effects into a function. * coq/coq-autotest.el: Make it declarative. Use lexical-binding. (coq-autotest): New function holding the code that used to be at top-level. * generic/proof.el: Use lexical-binding. Don't call proof-splash-message just because we're being loaded. * generic/proof-script.el: Use lexical-scoping; fix all warnings. (pg-show-all-portions): Simplify the code with a closure. (proof-activate-scripting): Declare activated-interactively as dyn-scoped. (proof--splash-done): New var. (proof-mode): Call proof-splash-message upon first use. * generic/proof-splash.el (proof-splash-message): Don't check byte-compile-current-file now that we're only called when the mode is activated. * acl2/acl2.el (auto-mode-alist): Use `add-to-list` and \'. * coq/coq-db.el (coq-build-menu-from-db-internal): Avoid silly O(N²). * coq/coq-seq-compile.el: * coq/coq-par-test.el: * coq/coq-par-compile.el: Fix leftover uses of CL's `assert`. * generic/proof-utils.el: * generic/pg-movie.el: * etc/testsuite/pg-test.el: * coq/coq-syntax.el: Fix leftover uses of CL's `incf`. * generic/pg-autotest.el: Fix leftover uses of CL's `decf`. * obsolete/plastic/plastic.el (plastic-preprocessing): Fix leftover use of CL's `loop`. * generic/pg-user.el (proof-add-completions): Do nothing if no proof-assistant is set yet (i.e. during byte-compilation). (byte-compile-current-file): No need to test this any more. * generic/proof-syntax.el (proof-regexp-alt-list): Use mapconcat. Remove unnecessary "\\(?:...\\)". (proof-regexp-alt): Redefine in terms of proof-regexp-alt-list.
* 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
|
* Fix pg-{show,hide}-all-proofs and Move them into pg-user.el.Gravatar Erik Martin-Dorel2017-08-15
| | | | This commit address ProofGeneral/PG#193.
* Fix incorrect assumption that noninteractive == byte-compilingGravatar Clément Pit--Claudel2017-03-08
| | | | | The PG Makefile does ensure (using --batch) that noninteractive is non-nil while compiling, but package.el doesn't.
* Fix (next-undo-elt) to return a relevant undo element w.r.t (undo-delta).Gravatar Erik Martin-Dorel2016-07-04
|
* Summary: Compile warning on speedbar-add-supported-extensionGravatar David Aspinall2015-03-13
|
* Summary: Fix for bug #489 (make p-electric-terminator-enable appear as minor ↵Gravatar David Aspinall2015-03-13
| | | | mode)
* Don't mess with overlay priorities.Gravatar Stefan Monnier2014-06-06
|
* Add user option proof-next-command-insert-space.Gravatar David Aspinall2012-08-14
|
* * generic/pg-user.el (which-func-modes): Fix compiler declaration.Gravatar Stefan Monnier2012-06-29
| | | | * generic/proof-site.el (assistants): Fix regexp.
* Summary: Handle the new t value of which-func-modes.Gravatar Stefan Monnier2012-06-08
|
* let proof-retract-buffer only move point when called interactivelyGravatar Hendrik Tews2012-05-31
|
* Remove dependency of pg-movie on pg-userGravatar David Aspinall2011-10-17
|
* proof-electric-terminator: allow a prefix argument to avoid electric action.Gravatar David Aspinall2011-09-14
| | | | Addresses Trac #422
* proof-undo-and-delete-last-successful-command: obey spec (Trac #407)Gravatar David Aspinall2011-06-03
|
* Improve hint messages; use proof mode keymap.Gravatar David Aspinall2011-01-31
|
* pg-create-in-span-context-menu: remove "Move up" and "Move down".Gravatar David Aspinall2011-01-19
| | | | These don't seem to be very useful or reliable.
* pg-span-context-menu: add docGravatar David Aspinall2010-10-10
|
* Clean up obsolete commentsGravatar David Aspinall2010-10-04
|
* Fixes in strings/comments from Erik Martin-DorelGravatar David Aspinall2010-10-04
|
* Add docGravatar David Aspinall2010-10-01
|
* proof-script-new-command-advance: add back some indentation attemptGravatar David Aspinall2010-10-01
| | | | | auto sending: improve messages, bind autosend-running flag lexically in case of errors query identifier: use history variable, remove key bindings
* proof-undo-and-delete-last-successful-command: repair (afterGravatar David Aspinall2010-09-22
| | | | proof-retract-until-point changed type).
* proof-autosend-loop: adjust to only update modified tick when sendingGravatar David Aspinall2010-09-21
| | | | (engages autosend slightly more often, but not quite often enough)
* CommentsGravatar David Aspinall2010-09-08
|
* Remove proof-autosend-error-pointGravatar David Aspinall2010-08-27
|
* Implement the eagerly anticipated Beyond Script Management Feature No.2 ↵Gravatar David Aspinall2010-08-27
| | | | (i.e., automatic preview of next command)
* Tidy commentsGravatar David Aspinall2010-08-24
|
* Prevent electric terminator modeline effect in non proof script modes.Gravatar David Aspinall2010-08-23
|
* Add Fast Process Buffer optionGravatar David Aspinall2010-08-19
|
* proof-autosend-loop: don't enter if shell is already busy processingGravatar David Aspinall2010-08-18
|
* Style fix in messagesGravatar David Aspinall2010-08-18
|
* Autosend: don't autosend after undoing; add proof-shell-last-queuemode to ↵Gravatar David Aspinall2010-08-17
| | | | support this.
* autosend loop: wait for shell after sending interrupt (ensures output processingGravatar David Aspinall2010-08-17
| | | | happens when proof-autosend-running is set).
* Note about fix required to proof-autosend-error-pointGravatar David Aspinall2010-08-17
|
* Autosend: prevent repeatedly sending erroneous commands (in progress)Gravatar David Aspinall2010-08-17
|
* Fix compile errors, update tagsGravatar David Aspinall2010-08-16
|
* proof-issue-new-command: remove spurious goto-char (ref Trac #330)Gravatar David Aspinall2010-08-15
|
* Preliminary and experimental support for automatically sending commands.Gravatar David Aspinall2010-08-15
|
* Checkdoc cleanupsGravatar David Aspinall2010-08-08
|
* pg-protected-undo: remove separate `proof-allow-undo-in-read-only' andGravatar David Aspinall2010-08-03
| | | | | make consistent with `proof-strict-read-only' setting. In particular, if "Edit Freely" is selected then we don't do any retraction.
* Add pg-protected-undo improved version due to Erik Martin-DorelGravatar David Aspinall2010-08-02
|
* Cleanups for save-excursion to avoid warnings in latest Emacs versionsGravatar David Aspinall2010-07-08
|
* Rework script span element hiding to avoid buffer-invisibility-spec. Add ↵Gravatar David Aspinall2009-12-03
| | | | command elements.
* Replace proof-locked-end -> proof-unprocessed-beginGravatar David Aspinall2009-11-30
|
* WhitespaceGravatar David Aspinall2009-10-14
|