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
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
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
Andrea Richiardi
ea49d8e947
Add support for Reason
...
Include the necessary hooks for phrase detection in Reason.
2017-05-09 07:43:46 +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
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
a721d13082
update error message for utop-setup-ocaml-buffer
2015-08-06 10:58:42 +01:00
Jeremie Dimino
0a386c3fb8
use simpler emacs features for utop-compat-resolve
...
Some people have complained about this in the past IIRC.
2015-01-12 09:56:50 +00:00
Jeremie Dimino
1fa1b1f0b3
simplify utop-compat-resolve
...
No need to try loading one of the major mode as utop-mode is now a
minor mode and has to be used in conjunction with the current major
mode of the buffer.
2015-01-12 09:36:54 +00:00
Mads Hartmann Jensen
6e7314861e
Code review by @diml
...
- Changed default key-binding for utop to C-c C-s to match tuareg
default
- Add some compatibility functions to make the transition easier for
existing users
2015-01-11 13:20:03 +01:00
Mads Hartmann Jensen
ff3a379c5b
Use autoload cookies
2015-01-02 13:06:48 +01:00
Mads Hartmann Jensen
1290b09521
A step closer to not relying on other major mode's variables
2015-01-02 12:11:02 +01:00
Mads Hartmann Jensen
3c958ebf2e
Use minor mode rather than overriding variables at runtime
2015-01-02 11:44:08 +01:00
Mads Hartmann Jensen
137151cca9
#108 Enable utop-command to be buffer-local
2014-11-04 17:44:28 +01:00
Mads Hartmann Jensen
064d874e61
Prettier fix for closing completion buffer
2014-08-21 22:35:26 +02:00
Mads Hartmann Jensen
081a10dadd
Close *Completions* buffer after evaluation
...
This is a quick fix for #84 . There might be a better place in the
code for the fix but this certainly does the trick.
2014-08-21 19:06:08 +02:00
Martin Trojer
3fdec164a8
better boiler plate
2014-03-07 21:47:37 +00:00
Martin Trojer
7290a63513
some boilerplate so utop.el can go up on melpa ( http://melpa.milkbox.net/ )
2014-03-07 14:59:29 +00:00
Jeremie Dimino
cb2711067f
emacs-mode: [tab] --> (kbd "TAB")
...
fixes #54
2014-01-17 09:17:53 +00:00
Matthias Andreas Benkard
c9e89f0079
Emacs: Enable the use of multi-phrase input on startup.
2013-04-14 14:01:40 +02:00
Matthias Andreas Benkard
9deca3da21
`input-multi`: Fix error highlighting.
2013-04-03 22:53:12 +02:00
Matthias Andreas Benkard
3c10f874bc
Support the `input-multi` command on the Emacs side.
2013-04-03 22:03:18 +02:00
wojciech.meyer
ee65d72abd
Showing type of an identifier at point
...
Ignore-this: 40b69923375d0ccdf6b1a98891b1bca6
darcs-hash:20120801020653-33bd9-7e0a38b19718bfe0965d9570388f9f5cb74dda48
2012-08-01 04:06:53 +02:00
wojciech.meyer
354b6d774a
Allow C-j to eval with auto-end
...
Ignore-this: 8cd09eabbc6b9d5483a5aa380e2cb278
darcs-hash:20120801001337-33bd9-a5d76dab972820c41fc2beb40818a98013f111c6
2012-08-01 02:13:37 +02:00
wojciech.meyer
718fb69db1
Print only OCaml preprocessor message loaded if it was really loaded
...
Ignore-this: b96ea788d929cf7dbb853adfa59e4213
darcs-hash:20120731235343-33bd9-711df107c2b3b4580c0c37fe8271e732a4caeada
2012-08-01 01:53:43 +02:00
wojciech.meyer
e4796c8e51
car $ cdr -> cadr
...
Ignore-this: 2b5aa46e42282ee30710daaf8d735116
darcs-hash:20120731235124-33bd9-9fd2bf3a358e2ed54eac23aaa56df50ece816004
2012-08-01 01:51:24 +02:00
wojciech.meyer
272f6f5c29
utop-ocaml-preprocessor - allow loading also pre-procesor from local file variables
...
Ignore-this: 50e32972f422612675d47fd9ce33fc43
darcs-hash:20120731234941-33bd9-16a892de7fff014771091a9a138380d665bdadd9
2012-08-01 01:49:41 +02:00
wojciech.meyer
5a47685bfb
Factor out code to utop-eval-string
...
Ignore-this: 42d0ac92ee18eb0a7865743fe5058a5c
darcs-hash:20120731234841-33bd9-68f9230ddc9e8f41b48efa62dd9d048f2ae506d4
2012-08-01 01:48:41 +02:00
wojciech.meyer
82cccd480a
Improvements for loading packages from the file local variables
...
Ignore-this: 8795ff387135ceb2b99ff8ae7f322875
darcs-hash:20120731231800-33bd9-adf29b40d61f7f63be893a8473edb6e77863b930
2012-08-01 01:18:00 +02:00
Jeremie Dimino
2691c736ef
allow to complete text in a tuareg buffer using the toplevel environment
...
Ignore-this: cdb99a49351689dc70386cf39083709
darcs-hash:20120716154000-c41ad-eac5e3f59960f62c93e1cf27f8e1ce982d9f9b95
2012-07-16 17:40:00 +02:00
Jeremie Dimino
0d5e593728
add support the caml-mode
...
Ignore-this: b691ce8780c5d177ab69d0f00b521e5c
darcs-hash:20120716151404-c41ad-658717281b5b9ce73a0e5ac9cc219d700d8aee2a
2012-07-16 17:14:04 +02:00
Jeremie Dimino
d74d29278d
escape parentheses at beginning of lines in strings in .el files
...
Ignore-this: f8adf18e5730136895bd607cc270ef43
It seems to confuse the emacs syntax highlighter...
darcs-hash:20120323193634-c41ad-fcb6a026bc31ae4fd3b6148af46744e51a82b86f
2012-03-23 20:36:34 +01:00
Jeremie Dimino
cfb648c2e1
decide whether to follow output in each windows instead of globally
...
Ignore-this: 36cd9d3b8cd1a4c41284ea8d0731506f
darcs-hash:20120322065232-c41ad-218be51b177171f6640703e504599079d8c10006
2012-03-22 07:52:32 +01:00
Jeremie Dimino
8d8f46c8b6
follow OCaml's output only if we are at the end of the buffer
...
Ignore-this: 739f69390b4952091f481cc8dfb3e144
darcs-hash:20120322064548-c41ad-a3383dfe0bfa362d15c06949cbf5c9b44c5a82d1
2012-03-22 07:45:48 +01:00
Jeremie Dimino
0fbf0ff84b
fix utop-eval-input with allow-incomplete=t when the point is before the prompt
...
Ignore-this: a3dc2b3421588911f2770105081a8355
darcs-hash:20120321231655-c41ad-166ae6880230aa1f4d4eb616d221622523081c99
2012-03-22 00:16:55 +01:00
Jeremie Dimino
4264dc3d92
follow OCaml's output in emacs
...
Ignore-this: 20e2a63a90783cbcfbe273732293188b
darcs-hash:20120321131824-c41ad-cf97daa2d551f812603bc30f955a94d0e39478e1
2012-03-21 14:18:24 +01:00
Jeremie Dimino
543b99ab35
fix utop-send-string
...
Ignore-this: a638b987e583c642e076ecc1b8a159b1
It was always calling (utop) so the utop buffer always stole the
focus.
darcs-hash:20120318015443-c41ad-21c1d8a51b532c5bb783fb3272e64b3908e43df4
2012-03-18 02:54:43 +01:00
Jeremie Dimino
241e00d0a6
typo
...
Ignore-this: 93bcb3455b94dde47d1912bbb29750a7
darcs-hash:20120318012709-c41ad-54bc2df05955ac06897efb4406c77bc3918b09cb
2012-03-18 02:27:09 +01:00
wojciech.meyer
0b4d9c8ce3
Now it's possible to load packages defined with the file variable utop-package-list, therefore they can be loaded at startup to the toplevel. Desirable user interface has been implemented as part of it. To enable put something like:
...
Ignore-this: cd594a9e2a71feadba95000a15838d82
(add-hook 'typerex-mode-hook 'utop-setup-ocaml-buffer)
(add-hook 'hack-local-variables-hook 'utop-query-load-package-list)
in your .emacs
darcs-hash:20120315031645-33bd9-c602dacabd15aaa3a63fd3c4146e7f81f16e567d
2012-03-15 04:16:45 +01:00
wojciech.meyer
4d78acb1bd
Some cleanup
...
Ignore-this: 9623774e874ab9d118b1367aedee8788
darcs-hash:20120315015621-33bd9-351724bd992d32eb1885eaa69b83f9cce8684da1
2012-03-15 02:56:21 +01:00
wojciech.meyer
afe9eed0b0
antiquote argument in macro
...
Ignore-this: 737b25283081ca375d7556539b89b6d8
darcs-hash:20120304123503-33bd9-23cae46c3a4812afa3104319891acf339f0489d2
2012-03-04 13:35:03 +01:00
wojciech.meyer
da70c2bc46
copy to kill-ring last input
...
Ignore-this: 7fda2e532886b8dcbeac63bcb55ccc7e
darcs-hash:20120304022214-33bd9-0efeff0f0392361f8f327a1a7d2cbda0f2c951a4
2012-03-04 03:22:14 +01:00