Commit Graph

663 Commits

Author SHA1 Message Date
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 1b4bd052c6 Update CHANGES 2018-02-28 18:34:24 +07:00
Rudi Grinberg 4a5ae8058e
Merge pull request #233 from rgrinberg/company-mode
Company mode
2018-02-28 18:05:28 +07: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
Jeremie Dimino ff5212cd81 Remove the new maintainer banner
Doesn't seem to work
2018-02-27 10:17:03 +00: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 42953e4f6a ignore .elc files 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
Rudi Grinberg 4aafcfbbe7 remove tabuluated-list compatibility
the package already requires emacs 24, there's no need for this shim.
2018-02-26 22:23:00 +07:00
Rudi Grinberg afca031099 refactor utop-set-state, utop-cannot-edit, utop-process-line
Make them all use pcase and and gets rid of some duplicate code in the process
2018-02-26 22:23:00 +07:00
Rudi Grinberg e838896e53 Use pcase in utop-compat-resolve
Simpler than cond (and pcase is available since emacs 24)
2018-02-26 22:23:00 +07:00
Rudi Grinberg 14c2282449 fix indentation
no semantic changes here
2018-02-26 22:23:00 +07:00
Rudi Grinberg b46cf690a7 fix docstring of utop-compat-resolve
It forgot to mention the recently supported reason mode
2018-02-26 22:23:00 +07:00
tuncer 262539ae26 Fix utop -vnum (#231)
The handler for 'utop -vnum' failed to terminate after printing the
version number.
2018-02-26 12:34:37 +00:00
Rudi Grinberg d6e873cafc
Merge pull request #214 from Chris00/master
Make clear that toplevel = REPL
2017-11-27 19:14:54 +08:00
Christophe Troestler 673608a0a0 Make clear that toplevel = REPL
This is to help newcomers and stems from the discussion
https://discuss.ocaml.org/t/ocaml-first-impressions/517/47
2017-11-27 11:35:51 +01:00
Rudi Grinberg 599fa4ff64 Update CHANGELOG for 2.0.2 2017-11-07 13:41:06 +08:00
Rudi Grinberg 15a02e2de5
Merge pull request #221 from rgrinberg/4.06.0-and-safe-string
4.06.0 and safe string
2017-11-07 13:38:01 +08:00
Rudi Grinberg fb0723fe48 Update travis 2017-11-07 13:36:23 +08:00
Rudi Grinberg 4f18a7b30a Add build-test to opam file 2017-11-07 13:34:55 +08:00
Rudi Grinberg e383e6ddf0 Remove no longer necessary constraint on the OCaml version
We now support >= 4.02.3
2017-11-07 13:34:14 +08:00
Rudi Grinberg 5926808b12 Fix formatting in descr 2017-11-06 18:49:49 +08:00
Rudi Grinberg ec6b3144ba Update jbuild workspace
Use latest version of 4.04, add 4.05.0, and 4.06.0
2017-11-06 18:45:40 +08:00
Rudi Grinberg 89c3355a2b Naive fix for 4.06.0 2017-11-06 18:45:27 +08:00
Rudi Grinberg fa043105fb Add lwt_react to dependencies 2017-11-06 18:35:25 +08:00
Rudi Grinberg 39d18c9541 Enable -safe-string everywhere
Useful for testing on OCaml < 4.06.0
2017-11-06 18:33:48 +08:00
Rudi Grinberg 5ca193128c Add camomile dep to utop
Right now it's being pulled transitively from zed, but it's being used directly
in utop
2017-08-04 18:20:19 +01:00
Jérémie Dimino 4fcf11ae5f Create README.md 2017-06-13 16:46:36 +01:00
Jeremie Dimino 06460235d6 Fix #211 2017-06-07 09:34:36 +01:00
Jeremie Dimino d658bd8f63 Update changelog 2017-05-30 12:17:04 +01:00
Louis Gesbert ab45d0499f Install utop.el too 2017-05-30 12:15:23 +01:00
Jeremie Dimino ede0a15b4d Update changelog 2017-05-29 11:28:59 +01:00
Jeremie Dimino 7327725f23 Fix opam file 2017-05-26 16:09:08 +01:00
Jeremie Dimino 9045874145 add description file 2017-05-26 15:34:28 +01:00
Jeremie Dimino 0d2217d3e0 Fix opam file 2017-05-26 15:32:22 +01:00
Jeremie Dimino fa6a8c7c6b Update changes 2017-05-26 15:30:41 +01:00
Jeremie Dimino 202917d9d3 Resurect UTop_main.interact 2017-05-26 15:26:27 +01:00
Jeremie Dimino a1d147022a Update the examples 2017-05-26 14:43:45 +01:00
Jeremie Dimino 4395be09da remove the css 2017-05-26 14:33:35 +01:00
Jeremie Dimino 1497232d4e findlib_top --> findlib.top, topkg setup 2017-05-26 14:33:20 +01:00
Andrea Richiardi ea49d8e947 Add support for Reason
Include the necessary hooks for phrase detection in Reason.
2017-05-09 07:43:46 +01:00