-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an ocamldebug command for back stepping #227
base: master
Are you sure you want to change the base?
Conversation
It looks like |
Ah, that is true. It seems to take the first one defined, so I didn’t notice. I can change it, but I don’t know what would be the most suitable/mnemonic. |
I'd just |
This is old, but I think it's still relevant. But do we need a new binding or could we use a numeric prefix (like |
The OCaml manual (debugger chapter) mentions I do find it convenient to have support for both |
@gasche Do you know who are the maintainers of the project these days? I've noticed there has been no activity in the past 18 months. |
This isn't necessarily such a bad sign, this is old code that is in maintenance mode -- and maybe Emacs is good about not asking for too much code churn. If you want to ask for specific changes, I would try asking @monnier. |
Align GPL version with that of `tuareg.el`. Use `macroexp-file-name` when available. Add `backstep` (C-k) and `display` (C-d) commands. (ocamldebug-track-frame): Mark it as a user option. (ocamldebug-mode-map): Comment out broken `M-?` binding. (ocamldebug-mode): Make sure \\[..] refs are resolved relative to the mode map rather than the current map. (def-ocamldebug): Prefer `when`. (ocamldebug-complete-filter): Use `push`. (ocamldebug-complete): Use `declare`. (ocamldebug): Rename arg to `file`, to match the docstring. Try and behave a bit better when `make-comint` returns another buffer than the one we expected. (ocamldebug-set-current-event): Remove `pos` argument. Use `before` instead (in the tty case) to decide whether to use `spos` or `epos`, like we already did in the GUI case. Also, set `overlay-arrow-position` in the current buffer only. (ocamldebug-display-line): Adjust caller accordingly.
Align GPL version with that of `tuareg.el`. Use `macroexp-file-name` when available. Add `backstep` (C-k) and `display` (C-d) commands. (ocamldebug-track-frame): Mark it as a user option. (ocamldebug-mode-map): Comment out broken `M-?` binding. (ocamldebug-mode): Make sure \\[..] refs are resolved relative to the mode map rather than the current map. (def-ocamldebug): Prefer `when`. (ocamldebug-complete-filter): Use `push`. (ocamldebug-complete): Use `declare`. (ocamldebug): Rename arg to `file`, to match the docstring. Try and behave a bit better when `make-comint` returns another buffer than the one we expected. (ocamldebug-set-current-event): Remove `pos` argument. Use `before` instead (in the tty case) to decide whether to use `spos` or `epos`, like we already did in the GUI case. Also, set `overlay-arrow-position` in the current buffer only. (ocamldebug-display-line): Adjust caller accordingly.
OMG, I can't believe I hadn't really registered the duplication between The new code passes the tests, but AFAIK none of our tests cover the |
Wow, very nice! (I'm not qualified to review the change unfortunately, but I'm in favor.) |
ocamldebug.el: Try and partially sync with `camldebug.el` (#227)
Wow, very nice! (I'm not qualified to review the change unfortunately, but I'm in favor.)
Well, I merged it to `master`. So I think this can be closed.
|
Actually, I was confused. The
and
As already pointed out by @gasche (sorry, I was too dense to understand that comment). |
I noticed when attempting to customize bindings for ocamldebug that Tuareg is actually missing a definition for backstep. This small change resolves that by creating an ocamldebug-back command (like the ocamldebug-next) command.