This project is mirrored from https://gitee.com/mirrors/slime.git. Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
  1. 11 Aug, 2014 13 commits
  2. 10 Aug, 2014 2 commits
    • João Távora's avatar
      Remove profiling commands. Leave metering.lisp and backend's for now. · c9258335
      João Távora authored
      * sly.el (sly-easy-menu): Remove profiling section.
      (sly-easy-menu): Remove stale "Create Trace Buffer" option.
      (sly-toggle-profile-fdefinition, sly-unprofile-all)
      (sly-profile-report, sly-profile-reset, sly-profiled-functions)
      (sly-profile-package, sly-profile-by-substring): Remove.
      
      * doc/slime.texi (Top): Remove Profiling node.
      
      * lib/lisp/swank.lisp (profiledp, toggle-profile-fdefinition)
      (profile-by-substring, swank-profile-package): Remove.
      (defpackage :swank): Remove exported profile-related functions.
      c9258335
    • 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
  3. 09 Aug, 2014 2 commits
  4. 08 Aug, 2014 7 commits
    • João Távora's avatar
      Fix incorrect sly-autodoc inhibition in sly-mrepl · 4e9fe422
      João Távora authored
      * contrib/sly-autodoc.el (sly-autodoc-inhibit-autodoc): New variable.
      (sly-autodoc): Inhibit according to
      `sly-autoloads-inhibit-autodoc' variable.
      
      * contrib/sly-mrepl.el (sly-mrepl-mode): Set
      `sly-autodoc-inhibit-autodoc' to
      `sly-mrepl-inside-string-or-comment-p'
      (sly-mrepl-inside-string-or-comment-p): New function.
      4e9fe422
    • João Távora's avatar
      Print a note everytime objects are returned to the REPL · e9768b48
      João Távora authored
      Also some sly-mrepl groundwork for returning calls to REPL
      
      * contrib/sly-mrepl.el (sly-mrepl--copy-to-repl): New function.
      (sly-mrepl--eval-for-repl): Call `sly-mrepl--copy-to-repl'
      (:copy-to-repl): Add `note' arg and insert it after the ";;"
      (sly-mrepl--eval-for-repl): Add `note' arg. Send note to lisp.
      (sldb-copy-down-to-repl, sly-trace-dialog-copy-down-to-repl)
      (sly-inspector-copy-down-to-repl): Pass a note to
      `sly-mrepl--eval-for-repl'
      (sly-inspector-copy-down-to-repl): Use
      SWANK:INSPECTOR-NTH-PART-OR-LOSE
      
      * contrib/swank-mrepl.lisp (mrepl-get-history-entry): New function.
      (mrepl-get-object-from-history): Use it.
      (globally-save-object): Saves SLAVE-SLYFUN's multiple return
      values. Pass a note to COPY-VALUES-TO-REPL
      (:copy-to-repl): Can copy multiple values to REPL.
      (copy-values-to-repl): Add NOTE arg.
      (:sync-package-and-default-directory): Pass a note to
      COPY-VALUES-TO-REPL.
      (*saved-objects*, *saved-objects-note*): New variables
      
      * lib/lisp/swank.lisp (inspector-nth-part-or-lose): New
      slyfun. Wonder if the other one is still useful.
      e9768b48
    • João Távora's avatar
      RET and mouse-2 on previous input inserts it at point · 330db2d2
      João Távora authored
      * contrib/sly-mrepl.el (sly-mrepl--commiting-text): Accept `props' arg.
      (sly-mrepl--insert): Adjust call to `sly-mrepl--commiting-text'.
      (sly-mrepl--send-input): Make input a field with a keymap.
      (sly-mrepl-insert-input): New interactive command.
      330db2d2
    • João Távora's avatar
      Finish inspector converion to sly-button.el · 4a964830
      João Távora authored
      * sly.el (sly-inspector-operate-on-point)
      (sly-inspector-property-at-point, sly-inspector-operate-on-click):
      Removed this silly function.
      (sly-curry, sly-rcurry): Make properly lexical.
      (sly-inspector-insert-more-button, sly-inspector-insert-ispec):
      Use `sly-make-action-button'.
      (sly-inspector-fetch-more): Use Emacs' button API
      4a964830
    • João Távora's avatar
      Cleanup `sly-button-define-part-action' and its callers · 6867f063
      João Távora authored
      * sly-buttons.el (sly-part-button-keymap): Keymap declaration is simpler.
      (sly-button--popup-option-name)
      (sly-button--popup-part-menu-options): Removed. Clever but horrible.
      (sly-button-popup-part-menu-keymap): New keymap.
      (sly-button-popup-part-menu): Use the rest of
      `sly-button-popup-part-menu-keymap'.
      (sly-button-define-part-action): Rewritten.
      (sly-button-not-implemented): Removed.
      
      * sly.el (sly-inspector-part): Use new action prop names.
      
      * contrib/sly-mrepl.el (sly-mrepl): Use better
      `sly-button-define-part-action'
      (sly-mrepl-part): Use new action prop names.
      
      * contrib/sly-trace-dialog.el (sly-trace-dialog-part): Use new action prop names.
      6867f063
    • João Távora's avatar
    • João Távora's avatar
      Continue sly-button refactoring, most of inspector done · d546a50a
      João Távora authored
      Probably buggy though, and `sly-button-define-part-action' could help
      much further.
      
      * sly-buttons.el (sly-part-button-keymap): Add
      `sly-button-pretty-print' and `sly-button-show-source'
      (sly-button--popup-option-name): Return just name.
      (sly-button--popup-part-menu-options, sly-button-popup-part-menu):
      Watch for `sly-button-not-implemented' when building menu.
      (sly-button-define-part-action): New macro.
      (sly-button-inspect, sly-button-describe): Defined with calls to
      new macro.
      
      * sly.el (sly-inspector-part): New button type and constructor function.
      (sly-inspector-insert-ispec-function): Remove this indirection.
      (sly-inspector-insert-ispec, sly-open-inspector): Use
      sly-inspector-part.
      (sly-inspector-insert-chunk): Don't use `sly-inspector-insert-ispec-function'
      (sly-inspector-operate-on-point, sly-inspector-property-at-point):
      Don't use `sly-part-number'
      (sly-find-inspectable-object)
      (sly-inspector-next-inspectable-object)
      (sly-inspector-previous-inspectable-object)
      (sly-inspector-pprint, sly-inspector-show-source): Remove.
      
      * contrib/sly-mrepl.el (sly-mrepl): Insinuate into inspector using
      `button-type-put'.
      (sly-button-copy-to-REPL): Defined with
      `sly-button-define-part-action'.
      (sly-inspector-copy-down-to-repl)
      (sly-trace-dialog-copy-down-to-repl): Simplify.
      
      * contrib/sly-trace-dialog.el (sly-trace-dialog-mode-map): Use
      `backward-button' and `forward-button'.
      (sly-trace-dialog--detail-mode-map): No remaps needed.
      (sly-trace-dialog-part): Skip trace parts buttons.
      (sly-trace-dialog-next-button, sly-trace-dialog-prev-button): Remove.
      d546a50a
  5. 07 Aug, 2014 1 commit
    • João Távora's avatar
      Using new sly-button.el in sly-mrepl and sly-trace-dialog contribs · f7600ea1
      João Távora authored
      * sly-buttons.el: New file.
      
      * sly.el (sly): Remove "Buttons" section in favour of requiring
      `sly-buttons.el'.
      
      * contrib/sly-mrepl.el (sly-mrepl): Setup M-RET slightly
      differently. Insinuate into new keymaps from
      sly-button.el. Insinuate into new button-type
      `sly-trace-dialog-part'.
      (sly-mrepl-part): New button type.
      (sly-button-copy-to-REPL): New function.
      (sly-mrepl-copy-to-repl, sly-mrepl--get-object-indexes-at-point)
      (sly-mrepl-inspect-object-at-point, sly-mrepl-copy-down-to-repl):
      Remove.
      
      * contrib/sly-trace-dialog.el (sly-trace-dialog-part): New button type.
      (sly-trace-dialog--format-part): Simplify.
      (sly-trace-dialog--button): Remove.
      (sly-trace-dialog--open-specs)
      (sly-trace-dialog--update-progress)
      (sly-trace-dialog--insert-trace): Use `sly-make-action-button'
      f7600ea1
  6. 06 Aug, 2014 2 commits
    • João Távora's avatar
      Fix read-only and field navigation issues in sly-mrepl · a6ddee62
      João Távora authored
      * contrib/sly-mrepl.el (sly-mrepl--insert-output): Insert newline
      explicitly, don't use `sly-mrepl--ensure-newline'. Solve read-line
      issues.
      (sly-mrepl--ensure-newline): Simplify implementation.
      (:prompt, sly-mrepl--insert-returned-values): Don't pass mark to
      `sly-mrepl--ensure-newline'
      a6ddee62
    • João Távora's avatar
      Explain teardown reason in sly-mrepl · 988e4fd1
      João Távora authored
      * sly.el (sly-maybe-start-lisp, sly-net-close, sly-net-sentinel)
      (sly-net-read-or-lose, sly-check-version, sly-disconnect)
      (sly-disconnect-all, sly-restart-sentinel, sly-quit-sentinel):
      Pass close reason to `sly-net-close'
      
      * contrib/sly-mrepl.el (sly-mrepl--teardown-repls): fetch teardown
      reason from process args.
      (sly-mrepl--teardown): Take new optional reason arg.
      988e4fd1
  7. 05 Aug, 2014 2 commits
    • João Távora's avatar
      Fix sly-mrepl's history and package navigation · 1ec38e4c
      João Távora authored
      * contrib/sly-mrepl.el (sly-mrepl--insert-returned-values): Don't
      increment the result counter if no results are reported.
      
      * contrib/swank-mrepl.lisp (mrepl-eval): Call MREPL-EVAL-1.
      (mread-eval-1): Renamed from REPL-EVAL. Fixed handling of
      *PACKAGE*.
      1ec38e4c
    • João Távora's avatar
      Better idea for freezing sly-mrepl prompts, still incomplete · e596742c
      João Távora authored
      * sly.el (sly-channel-send): Friendlier error message on unsupported operations.
      
      * contrib/sly-mrepl.el (sly-mrepl): Don't use sldb hooks.
      (sly-mrepl--frozen-prompt-overlay)
      (sly-mrepl--sldb-find-mrepl-buffer, sly-mrepl--freeze-prompt)
      (sly-mrepl--unfreeze-prompt): Deleted.
      
      * contrib/sly-mrepl.el (sly-mrepl--frozen-prompt-overlays)
      (:freeze-prompt)
      (:unfreeze-prompt): Manage prompt freezing with a hash table.
      
      * contrib/swank-mrepl.lisp (mrepl-eval): Send :freeze and :unfreeze messages.
      e596742c
  8. 04 Aug, 2014 3 commits
  9. 03 Aug, 2014 4 commits
    • João Távora's avatar
      Fix bug when killing a sly-mrepl buffer with a live sldb. · f4d50dbc
      João Távora authored
      * contrib/swank-mrepl.lisp (define-channe-method :teardown mrepl):
      New method.
      (mrepl-eval): Don't send :evaluation-aborted message if mrepl is
      being torn down.
      f4d50dbc
    • João Távora's avatar
      First attempt at freezing sly-mrepl prompts from debugger · 70dadb44
      João Távora authored
      * sly.el (sldb-exit-hook): New hook
      (sldb-exit): Run it.
      
      * contrib/sly-mrepl.el (sly-mrepl--frozen-prompt-overlay)
      (sly-mrepl--last-prompt-overlay): New variables.
      (sly-mrepl--sldb-find-mrepl-buffer, sly-mrepl--freeze-prompt)
      (sly-mrepl--unfreeze-prompt):  New functions.
      (sly-mrepl--send-input): Highlight last prompt.
      (channel-method :prompt): Unhighlight last prompt.
      (sly-mrepl--last-prompt-beg-and-end, sly-mrepl--freeze)
      (sly-mrepl--unfreeze): Delete.
      (sly-mrepl--teardown-repls): Renamed from
      `sly-mrepl-teardown-repls'
      (sly-mrepl): Setup new sldb hooks.
      70dadb44
    • João Távora's avatar
      Improvements to apropos · c13b1ebd
      João Távora authored
      New interface allows lisp implementations to use regexp
      matching. Consistently display package qualifier in results unless
      under special conditions.
      
      * sly.el (sly-apropos-all): Better prompt.
      (sly-apropos): Improve prompt. Don't use `sly-current-package'.
      
      * lib/lisp/swank-backend.lisp (make-apropos-matcher): New interface.
      
      * lib/lisp/swank.lisp (apropos-list-for-emacs): Set
      *BUFFER-PACKAGE* criteriously.
      (make-apropos-matcher): Removed.
      (apropos-symbols): Use new interface.
      c13b1ebd
    • João Távora's avatar
      Improvements to sly-mrepl teardown logic · e3ce4f63
      João Távora authored
      * sly.el (sly-net-close): Unset sentinel before killing process
      explicitly.
      
      * contrib/sly-mrepl.el (sly-mrepl): Use `sly-mrepl-teardown-repls'.
      (sly-mrepl-teardown-repls): Renamed from `sly-mrepl-close-repls'. Call
      `sly-mrepl--teardown'.
      (sly-mrepl--ensure-newline): Check for bobp
      (sly-mrepl-return): Improve assertions and messages.
      (sly-mrepl--teardown): Simplify and ignore `sly-connection' errors.
      e3ce4f63
  10. 01 Aug, 2014 1 commit
    • João Távora's avatar
      More sly-mrepl fixes to make it behave like classic SLIME repl. · 4433e3b6
      João Távora authored
      * contrib/sly-mrepl.el (sly-mrepl--insert-output): Don't always
      insert a newline.
      (sly-mrepl--ensure-newline): New function.
      (define-channel-method :prompt): Merge with `sly-mrepl--prompt'.
      (sly-mrepl--prompt): Deleted.
      (sly-mrepl--insert-returned-values): Use `sly-mrepl--ensure-newline'
      (define-channel-method :write-values): Call `accept-process-output' just before inserting
      return values.
      (sly-mrepl--debug-overlays, sly-mrepl--debug)
      (sly-mrepl--turn-on-debug, sly-mrepl--turn-off-debug): New debug
      section.
      
      * contrib/swank-mrepl.lisp (mrepl-eval): Fix bug. UNWIND-PROTECT
      wasn't doing anything.
      4433e3b6
  11. 31 Jul, 2014 3 commits