aboutsummaryrefslogtreecommitdiff
path: root/isar/isar-syntax.el
AgeCommit message (Collapse)Author
2018-12-22* coq-mode.el: New file to make coq-mode independent from PGStefan Monnier
Move the part of coq.el that is not specific to ProofGeneral into coq-mode.el to make `coq-mode` into a major mode that can work without PG. * coq/coq-mode.el: New file, with code extracted from coq.el. (coq-use-pg): New var. (coq-near-comment-region): Complete rewrite. * Makefile.devel (autoloads): Add `coq` to the scanned subdirectories. * generic/proof-autoloads.el: Regenerate. * generic/proof-site.el: Don't override pre-existing major-mode definitions. * coq/coq-syntax.el (coq-init-syntax-table): Delete function. Setup the syntax-table while loading coq-mode.el instead. * coq/coq-system.el (coq-prog-name, get-coq-library-directory) (coq-library-directory, coq-tags): Move to coq-mode.el. * coq/coq.el: Set proof-assistant when loaded. (coq-may-use-prettify, coq-outline-regexp) (coq-outline-heading-end-regexp, coq-mode) (coq-prettify-symbols-alist, coq-fill-paragraph-function) (coq-adaptive-fill-function): Move to coq-mode.el. (coq-shell-mode-syntax-table, coq-response-mode-syntax-table) (coq-goals-mode-syntax-table): Just reuse the already setup coq-mode-syntax-table... (coq-shell-mode-config, coq-goals-mode-config, coq-response-config): ... instead of calling coq-init-syntax-table. (coq-get-comment-region): Delete, not used any more. (coq-pg-mode-map): New var. Move top-level keymap setup here. (coq-pg-setup): Rename from coq-mode-config. Move all the non-PG specific settings to coq-mode. * generic/proof-script.el (proof-mode): Simplify call to proof-splash-message since it does the same extra tests internally. (proof-config-done-related): Don't touch font-lock-defaults if the mode doesn't provide any font-lock-defaults. * isar/isar-syntax.el: Use lexical-binding. (isar-font-lock-fontify-syntactically-region): Make it callable from font0lock-keywords. (isar-font-lock-keywords-1): Call isar-font-lock-fontify-syntactically-region. * generic/proof-syntax.el (font-lock-fontify-keywords-region): Remove advice. (proof-ids): Remove, unused. * lib/bufhist.el (bufhist-erase-buffer): Don't let-bind after-change-functions. * generic/pg-pbrpm.el (pg-pbrpm-auto-select-around-point): Fix one more left-over cl.el use. * generic/proof-utils.el (proof-with-script-buffer): Add edebug spec.
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.
2015-03-05Fix colours for dark backgroundsDavid Aspinall
2011-08-31clarified isar-improper-regexp -- "prems" is already reported as legacy by ↵Makarius Wenzel
the prover (after Isabelle2011);
2011-07-06generalized font-lock regexps: isar-text allows any non-control characters ↵Makarius Wenzel
to be marked up (e.g. notation for "free" and "skolem" variables after Isabelle2011);
2011-05-05Replace proof-boring-face -> isabelle-quote-face, reported onDavid Aspinall
Isabelle-users list by Peter Lammich.
2010-12-08some attempts to indent 'notepad' 'begin' ... 'end' like a proof body;Makarius Wenzel
2010-08-19iasbelle-string-face: Remove italic from defaults becauseDavid Aspinall
STIXRegular doesn't include italic variants of symbols, resulting in empty glyphs appearing on Mac OS X
2010-08-11isabelle-quote-face: add this face to customize vanishing quotesDavid Aspinall
2010-08-11Experiment with default string font being italic, to match STIX italic.David Aspinall
2010-08-11Support custom syntactic fontification.David Aspinall
2010-08-11isabelle-string-face: switch to a more traditional greenDavid Aspinall
(strings are brown, but logic is green)
2010-08-09Fix compile and spellingDavid Aspinall
2010-08-04isabelle-string-face: introduce custom string colour as font lock default is ↵David Aspinall
terrible
2010-08-02Fix for matching names in regexps, restores behaviour of name-aware code ↵David Aspinall
such as imenu.
2009-12-01isar-ids-to-regexp: regexp-opt with 'words arg (non-shy matching insideDavid Aspinall
\< \>) appears to work on Emacs 22, hopefully repairing http://proofgeneral.inf.ed.ac.uk/trac/ticket/300. Also replace proof-splice-separator -> mapconcat builtin.
2009-11-24define isar-pr as load-time constant;Makarius Wenzel
2009-11-23Use ProofGeneral.pr if available. See Trac #292.David Aspinall
2009-11-21tvar font-lock: allow more than one ? (as in inference parameter ??'a);Makarius Wenzel
2009-10-14named entity needed for goal-with-holeDavid Aspinall
2009-10-14Remove fume settingsDavid Aspinall
2009-10-03Start using new parser, adjusting isar-any-command-regexp.David Aspinall
2009-09-29Documentation.David Aspinall
2009-09-26Add pr to print state in case of linear_undo. See Trac #292.David Aspinall
Still not ideal: when there is no proof state, we'd prefer that an empty goal screen is displayed.
2009-09-14isar-outline-heading-alist: fix list formatDavid Aspinall
2009-09-14isar-outline-heading-alist: fix list formatDavid Aspinall
2009-09-14isar-outline-heading-alist: fix structureDavid Aspinall
2009-09-14Improve support for outline mode: additional headings and sublevel supportDavid Aspinall
2009-09-09Support linear_undo. Add minimal font-lock for readability in *isabelle*.David Aspinall
2009-09-05Clean whitespaceDavid Aspinall
2009-09-04Remove proof-no-commandDavid Aspinall
2009-09-03output-font-lock-keywords: remove unnecessary bracketsDavid Aspinall
2009-09-03Fix font-lock output keywords for tvars starting ?'David Aspinall
2009-08-18First attempt at command wrapping (see ↵David Aspinall
http://proofgeneral.inf.ed.ac.uk/trac/ticket/199)
2009-08-17isar-syntactic-context: tweak (still not perfect, loses between "--" and ↵David Aspinall
string start)
2009-08-17isar-syntactic-context: fix calls to re-search-backwardDavid Aspinall
2009-08-17isar-syntactic-context: modify proof-looking-at-syntactic-context to allowDavid Aspinall
recognition of terminating comment strings.
2009-08-14isar-output-font-lock-keywords-1: enable display of ? and ' againDavid Aspinall
2009-08-14Do not hide the spurious ASCII characters as it confuses old hands.David Aspinall
2009-05-26Remove yank-handler experiment, in favour of buffer-substring-filtersDavid Aspinall
2009-05-26isar-strip-output-markup: simple output markup strippingDavid Aspinall
Experiment with font-lock to set yank-handler.
2009-05-26Hide goals marker start again (Isabelle2009 doesn't markup subgoals)David Aspinall
2009-05-26Add highlighting for sendbackDavid Aspinall
2009-03-31isar-output-font-lock-keywords-1: simplified regexp for invisible stuff, and ↵Makarius Wenzel
added special "L", special "V";
2008-12-05Linear undo commandDavid Aspinall
2008-09-18Fix by Stephan HoheDavid Aspinall
http://proofgeneral.inf.ed.ac.uk/trac/ticket/236
2008-07-24Merge changes from Version4Branch.David Aspinall
2008-07-10removed obsolete comment;Makarius Wenzel
2008-07-07defface: using proof-face-specs makes faces appear on non-X11 window systems ↵Makarius Wenzel
as well;
2008-01-29isar-undos: fix bug trac #189 introduced by attempt to remove proof-no-command.David Aspinall