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. 20 Aug, 2014 4 commits
    • João Távora's avatar
      sly-autodoc is less noisy when there are no connections · 59d9835d
      João Távora authored
      * contrib/sly-autodoc.el (sly-autodoc): Check for live connection.
      
      * contrib/sly-mrepl.el (sly-mrepl-inside-string-or-comment-p): Check for
      live mrepl process.
      59d9835d
    • João Távora's avatar
      * sly.el (sly-display-eval-result): Use `message' · d29be9e2
      João Távora authored
      Also remove mention of sly-selector.
      d29be9e2
    • João Távora's avatar
      More apropos adjustments · 1b60b387
      João Távora authored
      * lib/lisp/swank.lisp (make-plain-matcher): Return search result
      indexes.
      (apropos-symbols): Improve CL-PPCRE fallback logic.
      
      * lib/lisp/backend/swank-allegro.lisp (describe-symbol-for-emacs):
      Ignore errors when calling DOCUMENTATION.
      1b60b387
    • João Távora's avatar
      Tweaks to the regexp apropos logic · 3f987c4d
      João Távora authored
      * lib/lisp/swank-backend.lisp (make-cl-ppcre-matcher)
      (make-plain-matcher): Removed.
      (make-apropos-matcher): Tweak docstring. No default
      implementation.
      
      * lib/lisp/swank.lisp (make-cl-ppcre-matcher)
      (make-plain-matcher): Moved here from swank-backend.lisp
      (*try-cl-ppcre-for-apropos*): New parameter.
      (apropos-symbols): Control apropos matcher to use here.
      3f987c4d
  2. 19 Aug, 2014 2 commits
    • João Távora's avatar
    • João Távora's avatar
      Redesigned mode-line fancyness · 40c64c95
      João Távora authored
      * sly.el (sly-modeline-string): Removed.
      (sly-mode-line): New face
      (sly-mode-line-format): New variable
      (sly--mode-line-format): New function
      (sly-modeline-state-string): Removed.
      (sly-cycle-connections): Handle more cases.
      (sly-dispatch-event): Update modeline more often.
      (sly-selector-methods, sly-selector-other-window, sly-selector)
      (def-sly-selector-method, etc): get rid of sly-selector.
      
      * contrib/sly-autodoc.el (sly-autodoc-mode): Don't clutter
      modeline with "Autodoc"
      
      * contrib/sly-mrepl.el (sly-mrepl-mode): Don't clutter modeline
      with dummy process status.
      (def-sly-selector-method ?m): Removed.
      
      * contrib/sly-scratch.el (sly-scratch): No :on-load section.
      
      * doc/slime.texi (Top): Remove `sly-selector' node.
      (Key bindings): Come up with another example.
      (sly-selector): Delete.
      (Multiple connections): Don't mention `sly-selector'
      40c64c95
  3. 18 Aug, 2014 3 commits
  4. 17 Aug, 2014 4 commits
    • João Távora's avatar
    • João Távora's avatar
      * swank.asd (defsystem :swank): order matters in lib/lisp/ · cfe3ab5a
      João Távora authored
      Also in /lisp/backend
      cfe3ab5a
    • João Távora's avatar
      Unbreak compilation-note-related tests · 97b45f6c
      João Távora authored
      New sophisticated in-buffer navigation of compilation notes. Perhaps
      too sophisticated...
      
      * sly-tests.el (compile-defun)
      (compile-defun-with-reader-conditionals): Restore `sly-previous-note'
      call and make slightly more readable.
      
      * sly.el (sly-next-note): New variable.
      (sly--note-buttons-at, sly--search-note): New functions.
      (sly-next-note, sly-previous-note, sly-goto-first-note): Unbreak
      them.
      (sly--add-in-buffer-note): Simplify: in-buffer notes are not
      merged.
      (sly--compilation-note-group-button): Must return the string for
      Emacs 24.3
      97b45f6c
    • João Távora's avatar
      Improved and regex-capable apropos · f2e9ec02
      João Távora authored
      * sly.el (sly-apropos-symbol): New button type.
      (sly-apropos-designator-string, sly-apropos-insert-symbol): New
      function.
      (sly-print-apropos): Rewritten. Uses more buttons.
      (sly-insert-xrefs): Add `sly-location' property to area near xref
      button.
      
      * lib/lisp/swank-backend.lisp (make-cl-ppcre-matcher)
      (make-plain-matcher): New functions.
      (make-apropos-matcher): Redesigned.
      
      * lib/lisp/swank.lisp (apropos-list-for-emacs): Rewrittern with
      for new retval of APROPOS-SYMBOLS.
      (briefly-describe-symbol-for-emacs): Designator is now a triplet.
      (apropos-symbols): Rewrite. Returns a list of lists.
      f2e9ec02
  5. 16 Aug, 2014 7 commits
    • João Távora's avatar
      Unbreak more tests · 2b3869b4
      João Távora authored
      * sly.el (sly-simple-completions): Ressurected.
      2b3869b4
    • João Távora's avatar
      Unbreak tests. · 27de7bc9
      João Távora authored
      * sly-tests.el (compile-defun)
      (compile-defun-with-reader-conditionals): Pass mandatory arg to
      `sly-previous-node'
      27de7bc9
    • João Távora's avatar
      bffbb530
    • João Távora's avatar
      Clean up context menus of some sly-part buttons · b8c58f73
      João Távora authored
      * sly.el (sly-move-to-source-location): Document NOERROR and
      return nil in that case.
      (sly--display-source-location): New optional NOERROR param.
      (sly-xref-mode): Enter sly-mode and make buffer read-only
      (sldb-frame-map): RET bound to `sldb-toggle-details'.
      (sldb-frame-menu-map): Simpler menu.
      (sldb-local-variable-button, sldb-frame-button): Simpler label.
      (sly-inspector-mode-map): Bind D, not d, to
      `sly-inspector-describe-inspectee'
      (sly-inspector-part): Implement `sly-button-describe'
      (sly-inspector-part): Pass `noerror' to
      `sly--display-source-location'
      (sly-inspector-part-button): Simpler label.
      (sly-inspector-describe-inspectee): Add docstring and rename from
      `sly-inspector-describe'
      
      * sly-mrepl.el (sly-mrepl--make-result-button): Simpler button label.
      
      * lib/sly-buttons.el (sly-button-popup-part-menu): Fix label.
      
      * lib/lisp/swank.lisp (describe-inspector-part): New slyfun.
      (pprint-inspector-part): Fix docstring.
      b8c58f73
    • João Távora's avatar
      * sly.el: Break long lines · 1329b20f
      João Távora authored
      (sldb-frame-menu-map): Use a little macrolet sugar.
      1329b20f
    • João Távora's avatar
      * swank.lisp (dispatch-event): Fix typo. · 4fbd6d03
      João Távora authored
      4fbd6d03
    • João Távora's avatar
      Restore severity-related faces for in-buffer compilation notes · ae56fb1c
      João Távora authored
      * sly.el (sly-most-severe): Removed.
      (sly-merge-notes): Removed. Done in `sly--add-in-buffer-note'.
      ("pretty colors"): Remove reference to two macros which are gone.
      (sly--add-in-buffer-note): Consider note severity.
      ae56fb1c
  6. 15 Aug, 2014 6 commits
    • João Távora's avatar
      Another 150 lines of useless window managing code gone · 44f59641
      João Távora authored
      * sly.el (sly-read-package-name): Don't use `sly-bogus-completion-alist'
      (sly-completions-buffer-name)
      (sly-complete-saved-window-configuration, sly-completions-window)
      (sly-complete-delay-restoration)
      (sly-complete-forget-window-configuration)
      (sly-complete-restore-window-configuration)
      (sly-complete-maybe-restore-window-configuration)
      (sly-completion-window-active-p, sly-display-completion-list)
      (sly-display-or-scroll-completions, sly-scroll-completions): Removed.
      (sly-simple-complete-symbol): Much simplified
      (sly-complete-symbol): Use `completion-at-point-functions'
      (sly-maybe-complete-as-filename): Removed, seems useless.
      (sly-minibuffer-respecting-message): Removed.
      (sly-indent-and-complete-symbol): Call `indent-for-tab-command'
      (sly-bogus-completion-alist): Removed.
      (sly-simple-completions): Removed.
      44f59641
    • João Távora's avatar
      Compilation notes also use buttons · e217d0a2
      João Távora authored
      * sly.el (sly-compilation-finished-hook): Remove option `sly-list-compiler-notes'.
      (sly-load-failed-fasl): Change default to a saner option 'NEVER.
      (sly-highlight-notes): Use `sly--add-in-buffer-note'.
      (sly-note-overlays, sly-remove-old-overlays, sly-filter-buffers): Removed.
      (sly-merge-notes-for-display, sly-merge-notes)
      (sly-notes-in-same-location-p): Removed.
      (sly-create-compilation-log): Enter `sly-mode' as well.
      (sly-compilation-log--notes): New variable.
      (sly-insert-compilation-log): Use buttons and fields.
      (sly-overlay-note, sly-goto-note-in-compilation-log): Removed.
      (sly-create-note-overlay, sly-merge-note-into-overlay): Removed.
      (sly-choose-overlay-for-sexp, sly-choose-overlay-region)
      (sly-choose-overlay-for-read-error): Replace `cl-values' with plain `list'
      (sly-severity-face-plist): Fix indentation.
      (sly-visit-source-path): Removed.
      (sly-next-note): Simplify.
      (sly-previous-note): Simplify.
      (sly-goto-first-note): Simplify.
      (sly-remove-notes): New function.
      (sly-merge-notes): New function.
      (sly-show-note): Redone.
      (sly-temporarily-highlight-note): Removed.
      (sly-note-at-point, sly-note-overlay-p)
      (sly-note-overlays-at-point, sly-find-next-note)
      (sly-find-previous-note): Removed.
      (sly-note, sly-in-buffer-note, sly-compilation-note-group): New
      button types.
      (sly--in-buffer-note-modification, sly--add-in-buffer-note)
      (sly--compilation-note-group-button): New functions.
      (sly-filter-buffers): Moved to SLDB section where it's used.
      (sly-menu): Replace `sly-list-compiler-notes' with
      `sly-show-compilation-log'
      e217d0a2
    • João Távora's avatar
      Xref mode also uses buttons · 5483f0f6
      João Távora authored
      * sly.el (sly-mode-map): `sly-next-location' and
      `sly-previous-location' unbound.
      (sly-xref-face, sly-xref, sly-xref-button): New button type, face
      and constructor.
      (sly-insert-xrefs): Insert buttons.
      (sly-xref-prev-line, sly-xref-next-line): Use buttons.
      (sly-next-location-function, sly-previous-location-function)
      (sly-goto-next-xref, sly-goto-previous-xref, sly-next-location)
      (sly-previous-location): Remove.
      (sly-xref--show-buffer): Don't set `sly-next-location-function' or
      `sly-previous-location-function'
      5483f0f6
    • João Távora's avatar
      47f1c951
    • João Távora's avatar
      Try to improve REPL prompt synchronization · 61424452
      João Távora authored
      * sly-mrepl.el (sly-mrepl--insert-prompt): Helper function for :prompt method.
      (define-channel-method :write-values): Don't `accept-process-output' here.
      (sly-mrepl-return): Do it here.
      61424452
    • João Távora's avatar
      Face tweaks in sly-mrepl and a shortcut to the debugger · 6c5296a2
      João Távora authored
      * contrib/sly-mrepl.el (define-channel-method :prompt): Insert a button to
      the associated debugger.
      (sly-mrepl--prompt-face): Removed.
      (sly-mrepl-prompt-face): Renamed from
      `sly-mrepl-normal-prompt-face'
      (sly-mrepl-errored-prompt-face): Removed.
      6c5296a2
  7. 14 Aug, 2014 7 commits
    • João Távora's avatar
    • João Távora's avatar
      Fix sly-mrepl's freezing/unfreezing logic · 9f2e8088
      João Távora authored
      * contrib/sly-mrepl.el (sly-mrepl-mode): Overlay should be pushed on
      insertion before.
      (sly-mrepl--insert-output): Another case for a "\n" isnertion.
      (sly-mrepl--stacked-errors, :freeze-prompt, :unfreeze-prompt):
      Delete.
      (:prompt): Takes new `error-level' and `condition' args.
      (sly-mrepl--prompt-face): Take `error-level' arg.
      
      * contrib/swank-mrepl.lisp (declass mrepl): New PENDING-ERRORS slot.
      (swank::drop-unprocessed-events): Don't SEND-PROMPT from here.
      (mrepl-eval): Redesigned and simplified (hopefully).
      (mrepl-eval-1): Renamed from MREAD-EVAL-1 (which was a typo)
      9f2e8088
    • João Távora's avatar
      Fixes to the "Copy Call to REPL" interface · 3285e13d
      João Távora authored
      * sly.el (sldb--guess-frame-name): New function.
      (sldb-frame-button): Use it.
      
      * contrib/sly-mrepl.el (define-sly-contrib sly-mrepl): Better keydindings.
      3285e13d
    • João Távora's avatar
      Fix some more contrib issues · 167cfc46
      João Távora authored
      * contrib/sly-fontifying-fu.el (sly-activate-font-lock-magic): Remove
      xemacs branch.
      
      * contrib/sly-mrepl.el (sly-mrepl--copy-objects-to-repl)
      (sly-mrepl-sync-package-and-default-directory)
      (sly-mrepl--insert-output): Simplify.
      
      * lib/sly-buttons.el (sly-part-button-keymap): Don't bind RET
      here.
      
      * lib/lisp/backend/swank-allegro.lisp (frame-restartable-p):
      Remove spurious and useless log.
      167cfc46
    • João Távora's avatar
      Improve "Copy Call to REPL" feature · 94c1e2e4
      João Távora authored
      * sly.el (sly-canonicalized-location, sly-choose-overlay-for-sexp)
      (sly--display-source-location, sly--pop-to-source-location)
      (sly-recompile-locations,sly-recompile-location): Use
      `sly-move-to-source-location'.
      (sly-move-to-source-location): Renamed from
      `sly--move-to-source-location'
      
      * sly.el (define-button-type sldb-frame): Default action is to
      toggle details.
      (sldb-frame-button): Extract spec and put it in the `part-args'
      property.
      
      * contrib/sly-mrepl.el (define-button-type sly-mrepl-part): rename
      `object-idx' to `entry-idx' for clarity.
      (sly-mrepl--copy-part-to-repl): New function just for copying REPL
      parts.
      (sly-mrepl--copy-to-repl-after): New buffer-local variable.
      (sly-mrepl--copy-objects-to-repl): New function for copying any
      object generically.
      (listener): Don't take `note' arg and execute
      `sly-mrepl--copy-objects-to-repl'
      (sly-mrepl--eval-for-repl): Better protocol.
      (sly-inspector-copy-part-to-repl, sldb-copy-part-to-repl)
      (sly-trace-dialog-copy-part-to-repl): Adapt to new protocol.
      (sly-mrepl--insert-call): Take a `spec' argument.
      (sly-trace-dialog-copy-call-to-repl): Use new protocol of
      `sly-mrepl--eval-for-repl'.
      (sly-mrepl-sync-package-and-default-directory): Set
      `sly-mrepl--copy-to-repl-after'.
      
      * contrib/sly-mrepl.el (:unfreeze-prompt): Remove frequently failing
      assertion assertion. Have to investigate.
      
      * contrib/sly-trace-dialog.el (sly-trace-dialog--shortcut-menu): Avoid compiler warning.
      (define-button-type sly-trace-dialog-spec): `part-args' property
      was simplified.
      
      * contrib/swank-mrepl.lisp (copy-values-to-repl): Don't take NOTE arg.
      (:sync-package-and-default-directory): Don't pass notes to
      COPY-VALUES-TO-REPL.
      (*saved-objects-note*): Removed.
      (globally-save-object): Don't set *SAVED-OBJECTS-NOTE*
      (:copy-to-repl): Simplified.
      
      * lib/lisp/swank-backend.lisp (frame-arguments): New interface.
      
      * lib/lisp/backend/swank-allegro.lisp (frame-arguments): New
      implementation of interface. Probably not very good.
      
      * lib/lisp/backend/swank-ccl.lisp (frame-call): Removed implementation.
      
      * lib/lisp/backend/swank-sbcl.lisp (frame-call): Removed implementation.
      94c1e2e4
    • João Távora's avatar
      Fix broken sly-fancy-inspector and sly-package-fu contribs · 1b4ad7bc
      João Távora authored
      * sly.el (sly-canonicalized-location, sly-choose-overlay-for-sexp)
      (sly--display-source-location, sly--pop-to-source-location)
      (sly-recompile-locations,sly-recompile-location): Use
      `sly-move-to-source-location'.
      (sly-move-to-source-location): Renamed from
      `sly--move-to-source-location'
      
      * contrib/sly-fancy-inspector.el (sly-edit-inspector-part) Removed.
      (define-sly-contrib sly-fancy-inspector): Remove :on-load and
      :on-unload hooks use this contrib. `sly-edit-inpector-part'
      covered by "." in inspector
      
      * contrib/sly-package-fu.el (sly-goto-package-source-definition): Use
      `sly-move-to-source-location'.
      1b4ad7bc
    • João Távora's avatar
      Frames in the debugger have right-click mouse menus, too · 1cd11fb9
      João Távora authored
      * sly.el (sldb-frame-menu-map): New keymap.
      (sldb-frame): Use it heree.
      (sldb-frame-button-near-point): First try button with
      `sly-button-at' only then use `nearby-frame-button'
      
      * lib/sly-buttons.el (sly-button-popup-part-menu): Add indirection and
      fetch menu from the button.
      (sly-part): Add `part-menu-keymap' prop
      1cd11fb9
  8. 13 Aug, 2014 1 commit
    • João Távora's avatar
      New M-S-RET "Copy call to REPL" action for sldb and trace-dialog · 788eb21f
      João Távora authored
      * sly.el (sldb-frame-map): Set `sly-part-button-keymap' as parent
      of `sly-frame-keymap'.
      (sldb-frame): Make this button type inherit from `sly-part', not
      `sly-button'.
      (sldb-frame-button): Add `part-args' and `part-label' props to
      `sldb-frame' buttons.
      
      * contrib/sly-mrepl.el (define-sly-contrib sly-mrepl): Define a new
      "part-action" `sly-mrepl-copy-call-to-repl'. Put this is
      `sldb-frame' and `sly-trace-dialog-spec' button types. Rename
      previous `sly-mrepl-copy-to-repl' action to
      `sly-mrepl-copy-part-to-repl'
      (sly-inspector-copy-part-to-repl): Renamed from
      `sly-inspector-copy-down-to-repl'
      (sldb-copy-part-to-repl): Renamed from `sldb-copy-down-to-repl'.
      (sly-trace-dialog-copy-part-to-repl): Renamed from
      `sly-trace-dialog-copy-down-to-repl'
      (sly-mrepl--insert-call, sldb-copy-call-to-repl)
      (sly-trace-dialog-copy-call-to-repl): New functions.
      
      * contrib/sly-trace-dialog.el (sly-trace-dialog-spec):
      `sly-button-inspect' method takes more (ignored) arguments.
      (sly-trace-dialog-spec-button): `sly-trace-dialog-spec' buttons
      have more props.
      (sly-trace-dialog--insert-trace): Pass trace to
      `sly-trace-dialog-spec-button'
      
      * contrib/swank-trace-dialog.lisp (trace-arguments): New function.
      788eb21f
  9. 12 Aug, 2014 6 commits