• João Távora's avatar
    Finish SLDB simplification and conversion to sly-buttons.el · 99d3365d
    João Távora authored
    * sly.el (define-sldb-faces): Remove faces `restart-type' and
    `detailed-frame-line'.
    (sly-property-bounds): Removed.
    (sly--highlight-sexp, sly--highlight-line): Moved up here and made
    internal.
    (sly--display-source-location, sly--pop-to-source-location)
    (sly-goto-next-xref): Use `sly--highlight-sexp' and
    `sly--highlight-line'.
    (sldb-mode-map): Keep only generic keybindings applicable to all
    buffer points. Don't bind TAB to `sldb-cycle', but to
    `forward-button'.
    (sldb-mode): Update doc.
    (sldb-confirm-buffer-kill): New function.
    (sldb-setup): Add it to `kill-button-query-functions'. `frames'
    are now `frame-specs'.
    (sldb-insert-condition): No need for `sly-insert-propertized'
    (sldb-insert-restarts): Use action buttons.
    (sldb-insert-more-restarts, sldb-frame.string)
    (sldb-frame.number, sldb-frame.plist): Removed.
    (sldb-prune-initial-frames): Don't use frame-spec accessors.
    (sldb-insert-frames): Rewrite to use buttons.
    (sldb-compute-frame-face): Remove.
    (sldb-insert-frame): Rewrite.
    (sldb-fetch-more-frames, sldb-restart-at-point): Removed.
    (sldb-frame-number-at-point): Rewritten.
    (sldb-frame-map): New map.
    (sldb-previous-frame-number): Removed.
    (sldb-frame-region): Removed.
    (sldb-frame, sldb-frame-button): New button type and constructor.
    (sldb-forward-frame, sldb-backward-frame): Removed.
    (sldb-frame-button-near-point): New finder.
    (sly-save-coordinates, sly-coordinates, sly-restore-coordinate)
    (sly-count-lines, sldb-default-action)
    (sldb-default-action/mouse): Removed.
    (sldb-show-frame-source): Make interactive and replaces
    `sldb-show-source'.
    (sldb-show-source): Removed.
    (sldb-toggle-details, sldb-show-frame-details)
    (sldb-hide-frame-details): Rewritten to use buttons.
    (sldb-frame-details): Removed.
    (sldb-local-variable, sldb-local-variable-button): New button type
    and constructor.
    (sldb-frame-eval-interactive, sldb-pprint-eval-in-frame)
    (sldb-inspect-in-frame, sldb-eval-in-frame): Use `frame-number'
    not `frame'
    (sldb-down): More powerful and use buttons.
    (sldb-up): Use `sldb-down'
    (sldb-sugar-move): Rewrite to use buttons.
    (sldb-details-down, sldb-details-up): Use new `sldb-sugar-move'
    protocol.
    (sldb-invoke-restart): `restart-number` arg is mandatory.
    (sldb-step, sldb-next, sldb-out, sldb-break-on-return)
    (sldb-recompile-frame-source, sldb-return-from-frame)
    (sldb-restart-frame): Take `frame-number' as interactive arg.
    (sly-inspector-part-button): This is the constructor for
    `sly-inspector-part' buttons.
    
    * contrib/sly-mrepl.el (sly-mrepl): Use `sldb-local-variable', not
    `sldb-local-part' to insinuate M-RET.
    
    * lib/sly-buttons.el (sly-button-at): New function.
    (sly-button-at-point): Removed.
    (sly-button-define-part-action): Use `sly-button-at'
    (sly-button): New button type which is the supertype of all others
    sly-related.
    99d3365d