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
Rudi Grinberg
89c3355a2b
Naive fix for 4.06.0
2017-11-06 18:45:27 +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
Jeremie Dimino
202917d9d3
Resurect UTop_main.interact
2017-05-26 15:26:27 +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
Jérémie Dimino
fa27469e60
typo
2017-05-04 17:55:47 +01:00
Fabian
8ed78f2e39
Add command line option to enable implicitly generated bindings
2017-04-28 09:25:39 +01:00
Fabian
1639367765
Bind expressions to _0, _1, etc. ( #161 , #193 )
2017-04-28 09:25:39 +01:00
Jérémie Dimino
e0b4e635c7
Fix #205
2017-04-26 08:41:43 +01:00
Andrea Richiardi
d9f198899b
Refactor hooks for better handling of phrase eval, closes #201 .
...
The patch tries to improve on the current way of evaluating a phrase and
skipping to the next. It removes both `utop-skip-to-end-of-phrase` and
`utop-skip-blank-and-comments`, but adds `utop-next-phrase-beginning`.
We assume `utop-discover-phrase` is always returning the end position as
at end of a `;;`. Thereafter we use `utop-next-phrase-beginning` to skip
to the next phase if `utop-skip-after-eval-phrase` is non-nil.
2017-04-24 07:54:13 +01:00
Deokhwan Kim
644278311d
Simplify #if directives
...
UTop does not support OCaml < 4.02 anymore.
2017-04-20 13:55:08 +01:00
Deokhwan Kim
5e419e3f82
Run ppx preprocessors for both "input" and "input-multi" commands
...
Fix #192
2017-04-20 11:03:27 +01:00
Jeremie Dimino
a71455b2fd
Fix directive name
2017-04-11 17:36:56 +01:00
Fabian
4661944155
Add #utop_stash and #utop_save
...
- Strip colour terminal escapes from errors
- Store inputs and outputs seperately in UTop_history
- Add #utop_save, which prints inputs and outputs similar to a simple
prompt
2017-04-11 17:31:58 +01:00
chrismamo1
6b8c78de58
stashing rebased (by chrismamo1)
2017-04-11 17:31:58 +01:00
Jeremie Dimino
f5ee983845
Link the toplevel with -linkall
2017-04-10 18:13:54 +01:00
Jeremie Dimino
4abe1ca311
Topfind.don't_load --> Topfind.don't_load_deeply
...
Since we don't use `ocamlfind ocamlmktop` anymore
2017-04-10 18:13:32 +01:00
Richard Bonichon
f64e9d2e78
Replace handwritten ppf with Format.formatter_of_buffer call
...
- Behavior is identical
- Makes utop forward compatible with merged PR 595 of ocaml trunk
2017-04-05 13:34:41 +01:00
Jeremie Dimino
2f64eb4785
restore expunge
2017-04-04 13:36:28 +01:00
Jérémie Dimino
eae41f42a6
Removed camlp4/camlp5
2017-04-04 13:36:28 +01:00
Jérémie Dimino
ba3d278b32
Switch to jbuilder
2017-04-04 13:36:28 +01:00
Fabian
f2015062fa
Mention #help in #utop_help ( #190 )
2016-11-16 07:47:24 +00:00
Leonid Rozenberg
7dcdfaa6a9
Tab complete mod_use directives.
2016-10-07 12:14:58 -04:00
Jeremie Dimino
c6f3647a45
fix build on 4.02
2016-08-15 10:20:41 +01:00
Jeremie Dimino
f630fa0afc
fix conditional
2016-08-15 10:06:33 +01:00
Jeremie Dimino
d888ee5ba9
Fix 4.04 compatibility
...
Closes #173
2016-08-15 09:32:20 +01:00
Jared Forsyth
61bfe67bfb
typo
2016-07-01 07:26:50 -06:00
Jeremie Dimino
57f8ac4437
make ppx_tools dependency optional
2016-04-25 10:57:01 +01:00
whitequark
80f4b60058
Update for Asttypes.arg_label changes in 4.03.
...
This is required for utop to compile on 4.03.0+beta2.
2016-04-11 20:05:02 +00:00
Jeremie Dimino
35c740c312
fix 4.01 compatibility
2016-04-08 09:52:11 +01:00
Jeremie Dimino
8d12d48d32
cut search for UTop_main.interact to avoid loops
2016-03-11 16:37:46 +00:00
Jeremie Dimino
eff7153821
fix compatibility with 4.03
2016-03-02 17:46:55 +00:00
Jeremie Dimino
5bfd1ba632
setup directories properly
2016-02-24 11:08:20 +00:00
Jeremie Dimino
c816baf8fb
register missing compiler error printer
2016-02-24 11:03:51 +00:00
Jeremie Dimino
a51d79079a
handle errors in UTop_main.interact
2016-02-24 10:46:18 +00:00
Jeremie Dimino
05a0816d95
make UTop_main.interact work and add an example
2016-02-23 11:27:22 +00:00
Jeremie Dimino
fa05edcc93
first try at UTop_main.interact
2016-02-23 11:06:52 +00:00
Jérémie Dimino
fd7c663264
#156 : start of support for quoted strings
2016-02-04 08:06:11 +00:00
Jeremie Dimino
b63e0f9225
fallback to latin-1 instead of escaping with \yHH
...
Fixes #155
2016-02-01 08:55:17 +00:00
Jeremie Dimino
9e41bf85da
Better check for async rewrite
...
Resolve the types Async.Std.Deferred.t instead of hard-coding a list
of aliases.
Fix #137
2016-01-07 10:30:53 +00:00
Jeremie Dimino
e608977856
add a `#pwd` directive
...
Closes #149
2015-11-23 12:48:27 +00:00
Syohei YOSHIDA
5c58afb3de
Fix non-exist function
...
Emacs does not have 'replace-in-string' function.
2015-11-05 19:32:03 +09:00
Jeremie Dimino
0003236802
attempt at fixing #141
2015-11-02 15:10:51 +00:00
Jeremie Dimino
c41969dc62
allow to configure the external editor
2015-10-29 10:07:28 +00:00
Jeremie Dimino
8d104762ce
set temporary file for external editor
2015-10-29 09:55:31 +00:00
Jeremie Dimino
2a8762c0f7
update definition of Deferred.t
...
It is now Async_kernel.Deferred0.t.
Fixes #137
2015-08-17 10:19:49 +01:00
Jeremie Dimino
d1419acbb7
make sure is never called
...
This cause a failure when pressing Enter in history search mode
2015-08-07 11:03:25 +01:00