Commit Graph

671 Commits

Author SHA1 Message Date
Kate 300dd7e562 Add support for OCaml 4.13 2021-05-25 20:24:59 +01:00
Rudi Grinberg 711c24661c
Merge pull request #338 from hyphenrf/patch-1 2021-04-08 08:00:44 -07:00
Rudi Grinberg c898602882
Merge pull request #350 from chripell/master
Fix color highlight for errors.
2021-04-07 19:41:16 -07:00
Christian Pellegrin 243f7a1536 Fix color highlight for errors.
The output from the compiler changed and now mentions the line number
(non only the charters, which actually becomes columns). This patch
introduces the idea of a range of lines spanned by an error and
correctly marks the faulty region.

I think a better solution would be to introduce a "point" record of
the form {line:int;column:int}. However, such a change would
reverberate through all the source code and so it is much more
invasive. I can prepare such a patch if desired, after this one, which
fixes the regression.
2021-04-05 08:56:50 +01:00
Rudi Grinberg 1660e5989a
Merge pull request #347 from dansanduleac/patch-1
Utop correctly restarts when (not utop-edit-command)
2021-04-03 20:18:13 -07:00
Rudi Grinberg b2f15bff67
Merge pull request #340 from leungbk/byte-comp
utop.el: Placate byte-compiler
2021-04-03 20:13:38 -07:00
Brian Leung e5059d2e2f utop.el: Fix utop-tuareg-next-phrase for newer tuareg.el
tuareg--after-double-colon no longer exists in the latest rev of
Tuareg, which has received 110 additional commits since the last
release version on OPAM, so inline the old definition, which was
removed in commit 91ba1d6143558092a3920e9b5c49755c0c86caed of Tuareg.

tuareg--skip-double-colon was renamed to
tuareg--skip-double-semicolon, and also received a slight change.
Inline that as well since it's a private function.
2021-04-03 21:24:20 -04:00
Florian Angeletti ac9c21cfcf exit with the right exit status
With OCaml 4.12.0 and later, the toplevel use the Compenv.Exit_with_status
exception to communicate when and with which status we should exit.
2021-04-03 14:38:14 -04:00
Haz ee030bab0b
Use lambdaterm resources for home path instead of sys
Co-authored-by: Fabian <copy@copy.sh>
2021-03-31 09:47:39 +02:00
Dan Sănduleac ba44fc9cc2
Utop correctly restarts when (not utop-edit-command)
## Problem

If `utop-edit-command` is nil, then `utop-query-arguments` returns nil.
This breaks `utop-restart` which relies upon it returning the right arguments.

## Solution

`utop-query-arguments` always returns `(utop-arguments)` whether it sets the utop-command or not.
2021-03-18 11:31:49 +00:00
Etienne Millon a5ff52bbf6 Release 2.7.0 2021-01-06 21:00:37 +01:00
Etienne Millon 5c55cb60a3
Merge pull request #339 from emillon/build-on-4.12
Fix build on 4.12
2021-01-06 20:44:17 +01:00
Brian Leung 71faa5fb62 utop.el: Placate byte-compiler 2020-11-08 11:36:12 -08:00
Etienne Millon e31656e725 Fix build on 4.12
On 4.12, `Typemod.type_structure` does not take a location argument
anymore (see ocaml/ocaml#9974). This fixes the build with the 4.12
branch.
2020-10-30 16:22:14 +01:00
Haz 251228d677
Make sure we're not at $HOME before sourcing local .ocamlinit
(fixes: Github #333)
2020-09-21 22:23:36 +00:00
ZAN DoYe 7bc5117d34
update README 2020-06-01 12:10:01 +08:00
ZAN DoYe df2447a63d release 2.6.0 2020-05-30 10:16:27 +08:00
ZAN DoYe c0109a6da6 Vi edit mode: cross phrase register support 2020-05-30 09:27:14 +08:00
ZAN DoYe 952f97a460 compatible with 4.11
* use the exposed parser to parse longident
2020-05-12 08:45:24 +08:00
Kate aa832e280c Test OCaml 4.11 in CI 2020-05-09 09:38:47 +08:00
Kate 1da1f64765 Fix warnings with OCaml 4.11 2020-05-09 09:38:47 +08:00
ZAN DoYe 471cb31115 release 2.5.0 2020-04-26 12:49:42 +08:00
ZAN DoYe 09f479af69 update manpage according to the lambda-term update 2020-04-26 12:49:42 +08:00
ZAN DoYe cea5509294 add #edit_mode_default #edit_mode_vi directives 2020-04-25 23:40:41 +08:00
ZAN DoYe fd5bd4f665 UTop_main: support lambda-term 3.0 2020-04-25 23:40:41 +08:00
Jérémie Dimino 30c77ce4d7 Update CHANGES.md
Co-Authored-By: Etienne Millon <etienne.millon@gmail.com>
2020-03-25 19:38:17 +08:00
ZAN DoYe 692b92794d make the #use_output directive compatible with ocaml >= 4.02 2020-03-25 19:38:17 +08:00
Jeremie Dimino 3f735497d9 Backport the #use_output directive from OCaml 4.11
Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
2020-03-25 19:38:17 +08:00
Fabian 693ef525b1 changes 2020-03-18 11:01:23 +08:00
Fabian e8bc602746 Remove trailing whitespaces 2020-03-18 11:01:23 +08:00
Fabian 712678f959 Update docs to refer to .config/utop/init.ml 2020-03-18 11:01:23 +08:00
Fabian 53813ef663 Load init file from .config/utop/init.ml as per XDG conventions (fix #144) 2020-03-18 11:01:23 +08:00
Etienne Millon c719401992
Merge pull request #310 from kit-ty-kate/travis-409-410
Add OCaml 4.09 and 4.10.0+beta1 to the CI matrix
2020-02-13 09:33:39 +01:00
Kate 6a14761d86
Update .travis.yml 2020-02-12 15:09:57 +00:00
Kate 88bf1bdd30 Add OCaml 4.09 and 4.10.0+beta1 to the CI matrix 2020-01-13 21:00:24 +00:00
Samarth Kishor 7c99d8c904 change markdown code blocks from scheme to elisp 2020-01-09 18:16:23 -05:00
Samarth Kishor fa32fa78a2 add documentation for dune utop usage in emacs 2020-01-09 18:16:23 -05:00
ZAN DoYe ba35712f1b update CHANGES for release 2.4.3 2019-12-31 10:12:36 +08:00
ZAN DoYe 5ca210e80a opam: require dune >= 1.0 2019-12-31 10:12:36 +08:00
ZAN DoYe 0b37fd0de8 clean up 2019-12-12 17:02:57 +08:00
ZAN DoYe 5ca427f2d2 compatible with 4.10 2019-12-12 17:02:57 +08:00
Anil Madhavapeddy 83ee76fc39 opam: remove {build} directive from dune 2019-09-18 09:59:36 +01:00
Anil Madhavapeddy d4bbdf8647 release 2.4.2 2019-09-18 09:58:35 +01:00
Anil Madhavapeddy 53eca3491a
Merge pull request #299 from Octachron/fixes_for_4.09
Fixes for 4.09
2019-09-16 16:20:05 +01:00
Florian Angeletti a4896483bd 4.09: Replace TypedtreeIter with Tast_iterator 2019-09-16 14:30:29 +02:00
Florian Angeletti d8248687a3 4.09: caml_sys_modify_arg rather than Obj.truncate 2019-09-16 14:28:38 +02:00
Florian Angeletti 0debad9aaf 4.09: use Persistent_env 2019-09-16 14:28:08 +02:00
ZAN DoYe 2405c8dd8f update CHANGES for release 2.4.1 2019-08-10 09:57:26 +08:00
ZAN DoYe 9da0951274 remove more camlp4 remnants 2019-07-16 15:08:51 -04:00
Mitchell Plamann 7bd35e08ae Remove now-broken elisp that depends on utop-ocaml-preprocessor 2019-07-15 14:36:03 -04:00