Commit Graph

651 Commits

Author SHA1 Message Date
Bozhidar Batsov dee6a8752a Use the kbd macro for all keybindings
This makes more complex keybindings easier to read and write.
2022-07-16 11:32:15 -05:00
Bozhidar Batsov b24f94243f Update a few URL references 2022-07-16 11:32:15 -05:00
Bozhidar Batsov 4be7bee6c1 Update CODEOWNERS
Seems the @diml user no longer exists and GH flagged this as an error.
2022-07-16 11:12:42 -05:00
Bozhidar Batsov a779b0515c Remove leftovers from Travis CI
These days utop is using GitHub Actions.
2022-07-15 17:48:45 +01:00
Etienne Millon e56a75d282 Prepare 2.10.0 2022-07-06 09:57:24 +02:00
Etienne Millon 8e748884ce
Merge pull request #384 from emillon/logs-lwt
Use logs.lwt instead of lwt_logs
2022-07-05 17:58:53 +02:00
Etienne Millon 6c55ea7996 Use logs.lwt instead of lwt_logs
The latter is deprecated and incompatible with OCaml 5.0.
2022-07-05 17:20:22 +02:00
Etienne Millon 2569162157 Compatibility with zed 3.2.0
This updates utop to use the uu packages instead of camomile, following
ocaml-community/zed#46 and ocaml-community/lambda-term#109.
2022-07-05 15:41:25 +01:00
Etienne Millon a0f19fd4da Doc: only mention dependencies in the opam file 2022-07-05 15:26:14 +01:00
Etienne Millon 511e713353
Merge pull request #379 from oemmerson/patch-1
Update README.md with correct filepath.
2022-06-20 10:34:37 +02:00
oemmerson 705986a866
Update readme with correct filepath.
Readme states 'Key bindings in the terminal can be changed by writing a ~/.lambda-term-inputrc file. For example:'

However, after writing this file and exiting utop after it's next restart generates the below warning:

`Warning: it is recommended to move `/home/owen/.lambda-term-inputrc` to `$XDG_CONFIG_HOME`, see:
http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html`
2022-06-19 17:51:50 +01:00
Kate cb7ecfc8bb Version 2.9.2 2022-06-15 16:23:41 +01:00
Kate ecda59a261
Merge pull request #377 from dra27/lib-layout
Support new Load_path.init API
2022-06-15 16:18:46 +01:00
David Allsopp fbbaec6be8 Support new Load_path.init API 2022-06-09 10:35:44 +01:00
David Allsopp 42614160c2 Adapt to new mechanism for loading topdirs.cmi 2022-04-16 10:36:40 -05:00
Kate 5d72a0ab34
Merge pull request #371 from favonia/ocaml5
Remove -safe-string for OCaml 5. See ocaml/ocaml#10893
2022-03-28 16:17:00 +01:00
favonia df448e9ccd Remove -safe-string for OCaml 5. See ocaml/ocaml#10893 2022-03-27 22:11:51 -05:00
Nymphium d5dbad6b80 Add build / develop environment in Nix 2022-02-06 13:01:58 -07:00
Etienne Millon 676e2cd654 Update changelog 2021-12-09 14:22:45 +01:00
Christian Lindig 137b50eee5 fixup! Document utop(1) options in manual page
Signed-off-by: Christian Lindig <lindig@gmail.com>
2021-12-02 17:47:48 -05:00
Christian Lindig c0054c41b2 Document utop(1) options in manual page
Add all options as decribed by the output by --help to the manual page.
This was done manually and some automation would be nicer.

Signed-off-by: Christian Lindig <christian.lindig@citrix.com>
2021-12-02 17:47:48 -05:00
Christian Lindig 3145c3f77d Update OPTIONS section in utop manual page
Point to utop --help for the list of options and explain --require in
particular.

Signed-off-by: Christian Lindig <christian.lindig@citrix.com>
2021-11-30 14:42:34 -05:00
Kate 560617c64f Add support for OCaml 4.14 2021-11-18 10:10:53 -05:00
Anil Madhavapeddy c87b8b2817 update CHANGES and fixes to opam file to pass lint 2021-06-18 09:31:46 +01:00
Rudi Grinberg bac3946079
Merge pull request #352 from chripell/fix-emacs-completion
Fix emacs completion returning bogus candidates.
2021-06-07 12:41:30 -07:00
Christian Pellegrin ec469bb839 Fix emacs completion returning bogus candidates.
In standalone mode, utop returns all the possible completions when no
one matches what the user has typed. This is surprising in emacs
because of the different UI/UX. For this reason, we keep a list of
prefixes for which completion has started and return only the
candidates which match the prefixes.

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
2021-06-07 12:40:48 -07:00
Rudi Grinberg 10502c50a0
Merge pull request #355 from kit-ty-kate/413
Update the OCaml 4.13 compatibility after the merge of ocaml/ocaml#10252
2021-06-02 12:59:42 -07:00
Kate 82fe82dad0 Update the OCaml 4.13 compatibility after the merge of ocaml/ocaml#10252 2021-06-02 19:20:59 +01:00
Rudi Grinberg 480c9f7a88
Merge pull request #353 from kit-ty-kate/413
Add support for OCaml 4.13
2021-05-25 14:00:59 -07:00
Kate 9fe8b5d838 Get rid of deprecated functions in OCaml 4.13 2021-05-25 21:00:33 +01:00
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