Commit Graph

337 Commits

Author SHA1 Message Date
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
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
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 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
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 a07156ca80 compatible with 4.03: unattached doc comment 2019-05-27 13:49:48 +08:00
ZAN DoYe 55ff32027c remove outdated doc comment 2019-05-27 13:49:48 +08:00
ZAN DoYe 928bba9896 add get_load_path and set_load_path 2019-05-27 13:49:48 +08:00
ZAN DoYe 97224e635f remove aux code 2019-05-27 13:49:48 +08:00
ZAN DoYe ad510daa99 compatible with 4.08 2019-05-27 13:49:48 +08:00
ZAN DoYe 3b1f930dfb follow the api changes of Zed_string.ends_with 2019-05-17 12:01:04 +08:00
ZAN DoYe da0fa23a05 Utop_lexer: to keep semantic consistent with the ocaml compiler, we now consider a combined double-quote to be a legal mark to start a string 2019-05-15 01:11:58 +08:00
ZAN DoYe 1ae50d3201 UTop_lexer: support editing, displaying malformed Zed_char (start with combining marks) 2019-05-15 01:11:58 +08:00
ZAN DoYe 99f28d9f17 UTop_lexer: support combined glyph for more kind of token, Symbol, Ident, Blanks, Literals... 2019-05-15 01:11:58 +08:00
ZAN DoYe dd1f834985 UTop_lexer: support combined glyph 2019-05-15 01:11:58 +08:00
ZAN DoYe fa6f1ee90f follow the changes of LTerm_history, perf regression fixed 2019-05-15 01:11:58 +08:00
ZAN DoYe 7df33e500a depend on new zed and lambda-term 2019-05-15 01:11:58 +08:00
Dmitry Bely 5637c67a7c Correct quoting for Windows command shell (#272) 2019-04-23 07:48:21 +01:00
Jeremie Dimino 4e9b9d1c66 Fix compat with 403
Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
2019-01-24 12:12:26 -05:00
Jeremie Dimino fa3880d2a2 Automatically install printers marked with [@@ocaml.toplevel_printer]
Scan newly loaded cmi files for values marked with the
[@@ocaml.toplevel_printer] attribute and automatically install them as
toplevel printers.
2019-01-24 12:12:26 -05:00
Anil Madhavapeddy 3212401775 fix or suppress some warnings in dune dev build mode 2019-01-15 09:50:54 +00:00
Anil Madhavapeddy 641af3fd63 port build from jbuilder to dune 2019-01-15 09:50:54 +00:00
Mario Rodas ea38850e60 Company backend only complete on utop buffers 2018-10-10 17:55:03 -04:00
Anton Kochkov 53db99356e Env.Env_copy_types should work also on OCaml 4.06 2018-08-31 11:35:51 -04:00
ncihnegn cf8e423f58 Replace deprecated CamomileLibraryDyn with CamomileLibraryDefault for camomile >= 1.0.0 2018-08-29 18:46:43 +01:00
ncihnegn 098d2f854b Replace deprecated String.capitalize with String.capitalize_ascii 2018-08-29 18:46:43 +01:00
ncihnegn 9dcb51fea8 Replace deprecated String.lowercase with String.lowercase_ascii 2018-08-29 18:46:43 +01:00
ncihnegn 239e6aad95 Replace deprecated Lwt_sequence with LTerm_dlist 2018-08-29 18:46:43 +01:00
Guillaume Petiot 081e49d882 Make more functions tail-recursive, and use tail-rec List functions (#251) 2018-08-23 17:53:07 +01:00
sliquister 601973c953 Clflags.include_dirs is expected to hold unexpanded directories (#242) 2018-07-09 10:28:08 +01:00
Wilfred Hughes 2d358b2d9c Fix utop-eval-phrase on recent tuareg-mode
tuareg-next-phrase was moved to tuareg_indent.el in
ocaml/tuareg@b40e733c1 and removed entirely in
ocaml/tuareg@b2ad75f3d5 (September 2017).

As a result, utop-eval-phrase crashes due to the missing function.

Instead, write a small function to move to the next phrase, similar to
the movement logic in tuareg-eval-phrase.
2018-07-06 21:02:29 +01:00
Hezekiah M. Carty 0bee8c9297 Minimal update to make utop build on OCaml 4.07.0+rc1 (#238) 2018-06-23 00:05:49 +01:00
Rudi Grinberg 90bd622f85 Don't discard line if the protocol-version isn't matched 2018-02-28 16:59:04 +07:00
Rudi Grinberg e65468882b Add version detection based on utop printing protocol-version 2018-02-28 16:28:35 +07:00
Rudi Grinberg c36f20bf12 Print protocol-version in emacs mode 2018-02-28 16:26:19 +07:00
Rudi Grinberg 27ae188261 Replace while loops with dolist 2018-02-27 01:38:12 +07:00
Rudi Grinberg 49de3344f7 Make company completion conditional 2018-02-27 00:50:42 +07:00
Rudi Grinberg 1f295f49da Add support for detecting utop version 2018-02-27 00:42:01 +07:00
Rudi Grinberg 1f3a5d66ef Company backend for utop completion 2018-02-26 22:30:00 +07:00
Rudi Grinberg 730a8aeac1
Merge pull request #216 from rgrinberg/dev
Emacs mode renovation
2018-02-26 22:29:27 +07:00
Rudi Grinberg fe8b2b8aae Prefix unused argument with _ 2018-02-26 22:23:00 +07:00
Rudi Grinberg e1e589b5ea fix cond default clause 2018-02-26 22:23:00 +07:00
Rudi Grinberg f54d1291b1 enable lexical scoping 2018-02-26 22:23:00 +07:00