Commit Graph

664 Commits

Author SHA1 Message Date
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
Anton Kochkov ca00ce6146 Remove camlp4 remnants 2019-07-09 11:55:13 -04:00
Anton Kochkov 0c17ffa6b2 Add OCaml 4.08 build in Travis CI 2019-07-08 11:42:44 -04:00
Hongchang Wu a589d5caee Fix typo: mode -> modes 2019-06-15 17:32:37 +08:00
Jeremie Dimino 7e8567682d Allow to statically link utop
Fixes #285

Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
2019-06-06 13:32:57 +01:00
ZAN DoYe 1fa416862f README: update dependencies 2019-05-27 13:49:48 +08:00
ZAN DoYe a07156ca80 compatible with 4.03: unattached doc comment 2019-05-27 13:49:48 +08:00
ZAN DoYe ff6665daca utop.opam: loosen the upper bound of the ocaml version 2019-05-27 13:49:48 +08:00